We'll check it out - have looked at the code before and am very grateful it was all in one place. <br><br>Thanks<br>ma<br><br><div class="gmail_quote">On Mon, Nov 22, 2010 at 4:33 PM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>A global 'font anti alias' option ought to be doable. How hard it is depends on where it needs to apply: the Text icon, obviously, but elsewhere too. Maybe set TextField.prototype.antAliasType once if a condition (i.e. your option) is met? That would take
only a few minutes, but not sure it it would work. I'll look tomorrow. </div>
<div> </div>
<div>You are more than capable of taking XMLEngine.fla and trying some stuff yourself: just compile it over your XMLEngine.swf. To go back, just take your old one back again. In XMLEngine.fla are two (count 'em) frames of code. The first contains all the icon
classes, other useful or startup stuff, the second the XML (.rlo) parser: it dives the xml and initalises the icon classes in frame 1 in its main loop.
</div>
<div> </div>
<div>There is voodoo in places, embedding fonts at runtime being amongst the darkest of the arts. You can always get the most recent XMLEngine.fla from the .svn.</div>
<div dir="ltr"><font size="2" color="#000000" face="Tahoma"></font> </div>
<div style="direction: ltr;">
<hr>
<font size="2" color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Mary Ann Ahearn [<a href="mailto:maryann@moberg.com" target="_blank">maryann@moberg.com</a>]<br>
<b>Sent:</b> 22 November 2010 17:03<div><div></div><div class="h5"><br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> Re: [Xerte] Text anti-alias question - Xerte 2 desktop<br>
</div></div></font><br>
</div><div><div></div><div class="h5">
<div></div>
<div>Just checked with a colleague who used:<span style="font-size: 10pt;"><br>
<br>
TextField.</span><font size="2" face="Arial">antiAliasType = "advanced" <br>
</font><font size="2" face="Arial"><br>
This made the text more crisp via Action Script in a past project. We had to publish for Flash 8 player for this to work.</font><br>
<div><font size="2" face="Arial">It would be very cool if something like this could be an optional property of the LO, similar to the embedFonts property, but which could also be overridden for an individual text field just as embedFonts can be.<br>
<br>
We probably could alter the source code but hate to touch it and haven't had to yet.
<br>
<br>
Thanks!<br>
ma<br>
</font></div>
<br>
<br>
<div class="gmail_quote">On Mon, Nov 22, 2010 at 10:59 AM, Julian Tenney <span dir="ltr">
<<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">
<div lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">So you can set myIcon.txt.antiAliasType but I’m not sure what you need to set it with? That is confusing…</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span> </p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Probably the property inspector settings are applied at compile time, and at runtime there are less options available?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span> </p>
<div style="padding: 3pt 0cm 0cm; border-width: 1pt medium medium; border-style: solid none none; border-color: -moz-use-text-color;">
<p class="MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> 22 November 2010 13:50<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> Re: [Xerte] Text anti-alias question - Xerte 2 desktop</span></p>
</div>
<div>
<div></div>
<div>
<p class="MsoNormal" style="margin-left: 36pt;"> </p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt;">It's a property of text fields.
<br>
<br>
So I thought I'd consult Flash 8 help to see what it has to say. Now I'm very confused because the property panel seems to offer different options than those available via action script.<br>
<b><br>
>From Flash 8 Professional help file - </b><br>
<br>
public <b>antiAliasType</b>: string The type of anti-aliasing used for this TextField instance.<br>
<br>
(TextField.antiAliasType property)<br>
<br>
Help goes on to say the following:</span></p>
<p style="margin-left: 36pt;"><span style="font-size: 10pt;">The type of anti-aliasing used for this TextField instance. Advanced anti-aliasing is available only in Flash Player 8 and later. You can control this setting only if the font is embedded (with the
</span><code><span style="font-size: 10pt;">embedFonts</span></code><span style="font-size: 10pt;"> property set to
</span><code><span style="font-size: 10pt;">true</span></code><span style="font-size: 10pt;">). For Flash Player 8, the default setting is
</span><code><span style="font-size: 10pt;">"advanced"</span></code><span style="font-size: 10pt;">.
</span><span></span></p>
<p style="margin-left: 36pt;"><span style="font-size: 10pt;">To set values for this property, use the following string values:</span><span></span></p>
<table style="margin-left: 36pt; width: 468pt;" border="0" cellpadding="0" cellspacing="0" width="624">
<tbody>
<tr>
<td style="padding: 0cm;">
</td>
<td style="padding: 0cm;">
</td>
</tr>
<tr>
<td style="padding: 0cm;">
</td>
<td style="padding: 0cm;">
<p><code><span style="font-size: 10pt;">"normal"</span></code></p>
<p>Applies the regular text anti-aliasing. This matches the type of anti-aliasing that Flash Player used in version 7 and earlier.</p>
</td>
</tr>
<tr>
<td style="padding: 0cm; background: none repeat scroll 0% 0% rgb(248, 248, 248);">
</td>
<td style="padding: 0cm; background: none repeat scroll 0% 0% rgb(248, 248, 248);">
<p> </p>
<p><code><span style="font-size: 10pt;">"advanced"</span></code></p>
<p>Applies advanced anti-aliasing, which makes text more legible. (This feature is available as of Flash Player 8.) Advanced anti-aliasing allows for high-quality rendering of font faces at small sizes. It is best used with applications that have a lot of small
text. Advanced anti-aliasing is not recommended for fonts that are larger than 48 points.</p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left: 36pt;"><br>
<br>
Help for the properties panel for text gives the following options:</p>
<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; font-family: Symbol;"><span>·<span style="font: 7pt 'Times New Roman';">
</span></span></span>In the Property inspector, choose one of the following options from the Anti-Aliasing pop-up menu:
</p>
<p style="margin-left: 72pt;"><b>Use Device Fonts </b>specifies that the SWF file use the fonts installed on the local computer to display the fonts. Although this option has the least impact on the size of the SWF file, it also forces you to rely on the fonts
installed on the user's computer for font display. For example, if you specify the font Times Roman as a device font, the Times Roman font must be installed on the computer playing back the content for the text to display. For this reason, when using device
fonts, choose only commonly installed font families.</p>
<p style="margin-left: 72pt;"><b>Bitmap Text (No Anti-Alias) </b>turns off anti-aliasing and provides no text smoothing. The text is displayed using sharp edges, and the resulting SWF file size is increased because the font outlines are embedded in the SWF.
Bitmap text is sharp at the exported size, but scales poorly.</p>
<p style="margin-left: 72pt;"><b>Anti-Alias for Animation</b> creates a smoother animation. This is possible in part because Flash ignores alignment and kerning information. Specifying Anti-Alias for Animation creates a larger SWF file, because font outlines
are embedded.</p>
<table style="margin-left: 72pt; width: 432pt;" border="0" cellpadding="0" cellspacing="0" width="576">
<tbody>
<tr>
<td style="padding: 0cm; width: 34.05pt;" width="45">
<p><b>NOTE</b></p>
</td>
<td style="padding: 0cm; width: 0.75pt;" width="1">
</td>
<td style="padding: 0cm;">
<p>Fonts rendered using Anti-Alias for Animation are less legible at smaller font sizes. for this reason, it is recommended that you use 10 point or larger type when specifying Anti-Alias for Animation.</p>
</td>
</tr>
</tbody>
</table>
<p style="margin-left: 72pt;"><b>Anti-Alias for Readability</b> uses a new anti-aliasing engine that improves the readability of fonts, particularly at small sizes. Specifying Anti-Alias for Readability creates a larger SWF file, because font outlines are embedded.
In order to use the Anti-Alias for Readability setting you must publish to Flash Player 8.</p>
<table style="margin-left: 72pt; width: 432pt;" border="0" cellpadding="0" cellspacing="0" width="576">
<tbody>
<tr>
<td style="padding: 0cm; width: 34.05pt;" width="45">
<p><b>NOTE</b></p>
</td>
<td style="padding: 0cm; width: 0.75pt;" width="1">
</td>
<td style="padding: 0cm;">
<p>Anti-Alias for Readability creates a highly legible typeface even at small sizes. However, it animates poorly, and may cause performance problems. If you intend to animate text, use Anti-Alias for Animation.
</p>
</td>
</tr>
</tbody>
</table>
<p style="margin-left: 72pt;"><b>Custom Anti-Alias (Flash Professional only) </b>lets you modify the font's properties as you see fit. The custom anti-aliasing properties are Sharpness and Thickness.</p>
<p class="MsoNormal" style="margin-bottom: 12pt; margin-left: 36pt; margin-right: 0cm;">
</p>
<div>
<p class="MsoNormal" style="margin-left: 36pt;">On Mon, Nov 22, 2010 at 5:45 AM, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Not sure: how do you do it in Flash?</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span> </p>
<div style="padding: 3pt 0cm 0cm; border-width: 1pt medium medium; border-style: solid none none; border-color: -moz-use-text-color;">
<p class="MsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> 19 November 2010 22:35<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Text anti-alias question - Xerte 2 desktop</span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left: 72pt;"> </p>
<p class="MsoNormal" style="margin-left: 72pt;">Is there a way to set Xerte text to Anti-alias for readability?
<br>
<br>
We're using embedded fonts with style sheets for formatting and all is well but it could be a little crisper. Looks like it's the flash default - anti-alias for animation.<br>
<br>
Couldn't find much in the archives.<br>
<br>
Thanks!<br>
ma</p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-left: 36pt;"> </p>
<p style="margin-left: 36pt;">This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
</p>
<p style="margin-left: 36pt;">This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University
of Nottingham may be monitored as permitted by UK legislation. </p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt; margin-left: 36pt; margin-right: 0cm;">
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
</p>
</div>
<p class="MsoNormal" style="margin-left: 36pt;"> </p>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</div></div></div><div><div></div><div class="h5">
<br>
<p>
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment.
Any views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham.
</p>
<p>
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
</p>
</div></div></div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>