RE: [flexcoders] Re: downloading fonts dynamically

2005-11-17 Thread Philippe Maegerman
I remember a post about that written a few months ago by Darron Schall:
http://www.darronschall.com/weblog/archives/000168.cfm
 
I hope this helps ;))
 
//Philippe



From: flexcoders@yahoogroups.com on behalf of pkleppner
Sent: Thu 17/11/2005 0:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: downloading fonts dynamically


Roger, thanks for the suggestions.  Yes, I had found and been playing 
with the embedded font list used by by the Flex UI controls; and I've 
also been using the lower level TextField API's directly. So far, I've 
had no luck at all in getting dynamically loaded fonts to be 
recognized.

You said:
 Fonts in RSLs are available to the application because 
 they are loaded to the same application domain as the app 
 itself. Fonts in child application domains are (probably? 
 I should check this...) not accessible to the application.

This is certainly consistent with everything I've found 
experiementally with Flex 1.5.   And in Flex 2.0 alpha I'm stopped by 
the following error when trying to load a child SWF, if it has an 
embedded font in it:

TypeError: Error #1009: null has no properties.
  at mx.managers::SystemManager/set fontList()
  at _LoadChild_FlexInit$/init()
  at mx.managers::SystemManager/SystemManager$71
$private::handleFrameEnd()

I'm assuming this is a bug that will eventually be fixed, but what 
will the final behavior be?  Will the same issue I'm seeing in Flex 
1.5 -- fonts in child application domains are not accessible to the 
application --remain in Flex 2.0?  And if so, is there any work-around?







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 




SPONSORED LINKS 
Web site design development 
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer software development 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software design and development 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
 
Macromedia flex 
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
 Software development best practice 
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
   



YAHOO! GROUPS LINKS 



*Visit your group flexcoders 
http://groups.yahoo.com/group/flexcoders  on the web.
  
*To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  
*Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
http://docs.yahoo.com/info/terms/ . 






--
**STATEMENT OF CONFIDENTIALITY** 

This e-mail and any attached files are confidential and intended solely for the 
use of the individual to whom it is addressed. If you have received this email 
in error please send it back to the person that sent it to you. Any views or 
opinions presented are solely those of author and do not necessarily represent 
those the Emakina Company. Unauthorized publication, use, dissemination, 
forwarding, printing or copying of this email and its associated attachments is 
strictly prohibited.

We also inform you that we have checked that this message does not contain any 
virus but we decline any responsability in case of any damage caused by an a 
non detected virus.
--



 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo

[flexcoders] Re: downloading fonts dynamically

2005-11-17 Thread pkleppner
Thanks, but although the Darron Schall piece on embedding fonts in 
RSL's is related to this topic, it doesn't address my issue here, 
since the RSL's can't be selected at runtime (as far as I can tell).

I think the key here is the child and application SWF domains that 
Roger Gonzalez hinted at in his previous response, but I can't figure 
out exactly what the rules are, or how they might apply in Flex 2.0.






 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] Re: downloading fonts dynamically

2005-11-17 Thread Roger Gonzalez
 And in Flex 2.0 alpha I'm stopped by 
 the following error when trying to load a child SWF, if it has an 
 embedded font in it:
 
 TypeError: Error #1009: null has no properties.
   at mx.managers::SystemManager/set fontList()
   at _LoadChild_FlexInit$/init()
   at mx.managers::SystemManager/SystemManager$71
 $private::handleFrameEnd()

Could you make a small repro and file a bug?  I haven't seen this one.

Are you compiling with -optimize=false?  There are bugs in the alpha
w.r.t. dynamic loading if the optimizer is enabled.

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]
 


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




[flexcoders] Re: downloading fonts dynamically

2005-11-16 Thread pkleppner
Roger, thanks for the suggestions.  Yes, I had found and been playing 
with the embedded font list used by by the Flex UI controls; and I've 
also been using the lower level TextField API's directly. So far, I've 
had no luck at all in getting dynamically loaded fonts to be 
recognized.

You said:
 Fonts in RSLs are available to the application because 
 they are loaded to the same application domain as the app 
 itself. Fonts in child application domains are (probably? 
 I should check this...) not accessible to the application.

This is certainly consistent with everything I've found 
experiementally with Flex 1.5.   And in Flex 2.0 alpha I'm stopped by 
the following error when trying to load a child SWF, if it has an 
embedded font in it:

TypeError: Error #1009: null has no properties.
at mx.managers::SystemManager/set fontList()
at _LoadChild_FlexInit$/init()
at mx.managers::SystemManager/SystemManager$71
$private::handleFrameEnd()

I'm assuming this is a bug that will eventually be fixed, but what 
will the final behavior be?  Will the same issue I'm seeing in Flex 
1.5 -- fonts in child application domains are not accessible to the 
application --remain in Flex 2.0?  And if so, is there any work-around?







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/