[Xerte] Xerte SA (standalone) anti-aliasing

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Dec 14 14:27:26 GMT 2009


Put the gilsans res swf in the Xerte and .rlo dir, restart, new file,
set LO def to gilsans, added text icon, add raw text, set embedFonts to
1, no text appears.

 

You also need to set the textFont to 'gillsans' on the ico, not just
embedFonts,

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 2:22 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 


Put the gilsans res swf in the Xerte and .rlo dir, restart, new file,
set LO def to gilsans, added text icon, add raw text, set embedFonts to
1, no text appears.
Set embedFonts to 0, text appears.

Oh well, not a showstopper.
I'll niggle at it some other time.
Thanks Julian.

Dave



________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 14:11:19 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

I can't remember how it all works, but I think the file is copied for
use into the app dir. Search in the source code for resources.swf (in
Editior.fla to see how it works)

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 2:10 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 

I just noticed that the arial res.swf I compiled also was copied to the
Xerte.exe directory.
So I guess it overwrites any existing swf in the Xerte dir and makes a
copy for uploading in the .rlo dir.

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 14:05:27 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

Erm, I think so. I tend to start Xerte by double clicking an .rlo file -
if there is a resources.swf in the same folder, that is the one that
gets used.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 2:04 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 


Let me get this right so I put it in the correct directory.
I make a resource.swf and it compiles into the .rlo directory.
I restart Xerte, and if there is no res.swf in the Xerte.exe directory,
it waits until I open a .rlo and picks that one up?

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 13:58:59 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

If there isn't one, it is picked up from the application directory when
Xerte starts

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 1:56 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 


Xerte needs to be restarted.
Does that mean the resources.swf is not picked up from the .rlo
directory? Where is it picked up from?

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 13:32:29 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

Get it working without the CSS, lets see where it's breaking.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 1:29 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 

>Restart Xerte to load resoruces.swf.

Did.

 

>How big is the resources.swf - does it look as though the font has
actually compiled into it?

466 KB and the time/date is right.

 

> The name might be important - it's usually (I think) the name of the
ttf file itself, i.e. frutiger.ttf, then the font is futiger in Xerte.

 

frutiger? futiger? what the futiger?

 

>Attached is a resources.swf containing gillsans - try that, I know it
works: in the piece I use it I have the defaultFont on the LO icon set
to 'gillsans'.

 

Will try.

I have the def set to MS Sans Serif, but I thought the embedfonts and
css definition would override it.

Maybe more css funkiness.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 1:18 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 

OK, compiled Arial.ttf's into a resources.swf.
The font in that disp is being set by css:

ss16_text
{
  font-family: Arial, Helvetica;
  font-size:16px;
  color: #000000;
  display: inline;
}

If I set embedFonts to 1 on the disp icon, the text disappears.
My resources.swf is failing?

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 12:47:26 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

What's setStyle()? Not one of mine...

 

iconID.txt is the textfield, yes. Debug(myIcon.txt); or even
debug(typeof(myIcon.txt));

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 12:21 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 


txt is the default textfield label then?
I had tried adding .txt and no change.
Does embedFonts have to be set 1 for the setStyle to function?

 

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 12:09:26 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

You can have more than one tf, but you need to create them yourself
(icon.createTextField...)

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 12:08 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 

Thought about that, but then why does this work?

page_prev_text_clip = icon.previousSibling.clip();
page_prev_text_clip.setText('<pgcounter_text><B>Page ' + page + ' 

It is overriding the text set in the text property of the icon, so I
figured it has to be targeting the textfield, as you can have only 1 TF
per icon.

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 11:48:52 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

Remember: you are trying to talk to the icon not it's textfield:

 

Icon.blah.clip() is an icon, a MovieClip

 

Icon.blah.clip().txt is the text field in there,

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 14, 2009 11:46 AM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 


Pi to the last digit.

I tried a few script attempts:

page_prev_text_clip = icon.previousSibling.clip();
//page_prev_text_clip.setText('<pgcounter_text><B>Page ' + page + ' of '
+ page_count + '</pgcounter_text>');
//page_prev_text_clip.antiAliasType = "normal";
page_prev_text_clip.setStyle("antiAliasType","normal"); 

No joy.

A real situation, so a method would be great.
Or I can just do a function and pass it the textfield

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Mon, 14 Dec 2009 10:51:49 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

Nothing is undoable!

 

Either you can set the properties from Xerte using script, or, more
conveniently, you can call some methods in the engine that we can add.
Is this an actual problem you're trying to solve, or speculation?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Sunday, December 13, 2009 10:12 PM
To: Xerte list
Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing

 

I had looked at the textfield settings, tried a few things, but no go.
Just wanted to know if I was attempting something undoable in Xerte
before I continued bashing about.

Dave  

________________________________

Subject: RE: [Xerte] Xerte SA (standalone) anti-aliasing
Date: Sun, 13 Dec 2009 21:47:56 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

I looked into it. There is quite a lot of detail, but in the end I think
I decided the default settings were in fact pretty optimal for dynamic
text - which we are mostly concerend with. If you embed fonts, those
options might become more meaningful, but, again, you are fine tuning a
pretty good default, if I recall correctly.

 

Read up in the Flash help for the textField.

 

 

 

 

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Dave Burnett
Sent: Sun 13/12/2009 16:36
To: Xerte list
Subject: [Xerte] Xerte SA (standalone) anti-aliasing

Archives do not seem to contain the term.

Am I correct in thinking it requires font embedding, and is therefore a
bit frowned upon due to accessiblity issues?

Cheers,

Dave

________________________________

Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/>  

 

________________________________

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up
now. <http://clk.atdmt.com/GBL/go/171222985/direct/01/> 

 

________________________________

Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/> 

 

________________________________

Hotmail: Powerful Free email with security by Microsoft. Get it now.
<http://clk.atdmt.com/GBL/go/171222986/direct/01/> 

 

________________________________

Hotmail: Powerful Free email with security by Microsoft. Get it now.
<http://clk.atdmt.com/GBL/go/171222986/direct/01/> 

 

________________________________

Hotmail: Powerful Free email with security by Microsoft. Get it now.
<http://clk.atdmt.com/GBL/go/171222986/direct/01/> 

 

________________________________

Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/> 

 

________________________________

Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/> 

 

________________________________

Hotmail: Powerful Free email with security by Microsoft. Get it now.
<http://clk.atdmt.com/GBL/go/171222986/direct/01/> 

 

________________________________

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up
now. <http://clk.atdmt.com/GBL/go/171222985/direct/01/> 

 

________________________________

Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091214/824b5d35/attachment.html


More information about the Xerte mailing list