> Has anyone been able to embed a font in a shared library to 
> use across 
> multiple Flex-created .swf files?  Specifically, I have this line of 
> code in a .sws file:
> 
> <embed source="../fonts/Arial.ttf" newSymbol="mainFont" />

Unfortunately, we don't support embedding TTF like that.  (I wish I
could have added it, but fonts are a bit funky in Flash.)  We only
support specifying the font details through stylesheets.

So, I think that if you were to make a dummy component with a style
sheet that embeds the font you want, and then put that component into
your RSL, you should be in good shape.  

(There's a possibility it still won't work, though.  I'm not positive it
will handle the RSL'ed font case correctly, becuase there is a list of
"embedded fonts" codegenned into the main app to get around the issue
that the player doesn't provide a query API for finding out what fonts
were included.  If it doesn't work, post back to the list, and I will
give you the magic code to put in your app to fool it.  You might be
able to figure it out on your own; its an array up on _global or _root
or something.  Patch in your font name early (initialize?
creationComplete?  Maybe even in a preloader?) and you should be in good
shape.)

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]
 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to