[Papervision3D] PV3D Text3D using flash embedded fonts instead of Font3D class

kiosk (Guojian) guojian at wu-media.com
Sat May 9 07:38:23 PDT 2009


I see what you mean... and yes you can inject DefineFont information at
runtime.

If you know how fonts are stored in the PDF, you can parse them out and
convert them into the format flash uses, then dynamically create a ByteArray
with your DefineFont3 and a class Definition wrapped by a SWF header. Then
use Loader.loadBytes(), Loader.loaderInfo.applicationDomain.getDefinition()
and Font.registerFont()




Weyert de Boer wrote:
> 
> Yes, I am aware of the issue with smaller text. But I have experience  
> when you print out the larger text on the Mac the printing quality
> improves compared to using text fields. I used something similar in my  
> little native PDF/report viewer in AS3 and for larger texts
> the quality was better then text fields when the report gets printed  
> out.
> 
> Would be nice if you could inject DefineFont stuff on runtime so that  
> you can load embedded fonts from a PDF and then use it text fields or
> the new FP10 text engine. Currently, that's not supported in my little  
> viewer for simple PDFs.
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/PV3D-Text3D-using-flash-embedded-fonts-instead-of-Font3D-class-tp23455044p23461149.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list