Hello, please help write a converter from font file TTF in FFT DefineFont v4.
I need it to real-time import ttf font in AIR app to use this font in the TextFlow.
For this purpose i use ready-made library "actionscript3 - flash - load-and-register-ttf-font-in-runtime", which is located here.
This library converts TTF file in the FFT DefineFont v2 but it is not valid for TextFlow, and I need write converter from TTF in FFT DefineFont v4 for TextFlow.
Converter from TTF to FFT DF2 is located here.
Maybe someone has a ready example or description of the structure DefineFont v4?
Any information would be helpful, thank you!
What are your constraints? Can you install other code besides your AIR app? Each Flex SDK comes with a fontswf utility that runs Java code to convert TTF and OTF files to SWFs with DF tags. I’m pretty sure it can do DF4.
For me, the best option to write a converter on AS3 because it should be used for both AIR and for flash (swf-RIA) application.
But thank you very much for information!