On 1/31/07, Ralf Bokelberg <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> i wonder if there is a possibility to specify the characters of a font
> numerically, eg.
> <font id="fontId" import="Arial" glyphs="&#123;&#4567;"/>

Yes, and it even works exactly like you suggested. :)

This example displays "hellwl" ("hello world!" with only the "hel" and
the "w" as "&x119;", tested with the shiny new swfmill 0.2.12:

<?xml version="1.0" encoding="iso-8859-1"?>

<movie width="320" height="240" framerate="12">
    <background color="#ffffff"/>
    <frame>
      <font id="test" name="test" import="/home/m/.fonts/arial.ttf"
glyphs="hel&#119;" />
      <textfield id="hellobox" width="200" height="50" size="12"
font="test" useOutlines="1"  text="hello world!"/>
      <place id="hellobox" name="text_out"  depth="10" x="50" y="50" />
    </frame>
</movie>

(Note the useOutlines="1", it's needed -- same as TextField.embedFonts)

HTH,
Mark

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to