Skip to main content
Participating Frequently
December 5, 2012
Answered

ttf to otf

  • December 5, 2012
  • 1 reply
  • 9304 views

hi

i want to convert ttf font to otf font (i need cff table to create swf font in as3 beacause i use tlf) with makeotfexe.exe trought commanline... is it possible ?

if not how to build cff table with the glyf and loca table of the ttf font in as3...

thanks

Simon

This topic has been closed for replies.
Correct answer MiguelSousa

you're right but when you embed a font like that in flex, it convert the font in swf with flex-fontkit.jar, that create the cff table with java. I can't use this because i need to convert the font when the air application run and not when i create the air application. if you got an idea...

thanks

Simon


OK, I guess you're looking for a way to generate low-level font data in AS3. I can tell you that there's no native solution. You may be able to find a library somewhere that does it, but I don't know of any.

If you want to pursue the approach of running a font converter from the command line, I think you could try FontForge.

Good luck!

1 reply

MiguelSousa
Community Manager
Community Manager
December 5, 2012

Simon,

makeOTF can't convert between font formats. There's no FDK tool that you can use for that.

Also, keep in mind that if these are fonts that you licenced, you should make sure that the license allows you to do such conversions.

dasimonxAuthor
Participating Frequently
December 6, 2012

hi Miguel,

i work for a book editor who have built the font licence for all support (print, web...), do you know a way to create the cff table with the glyf and loca table ?

thanks

Simon

dasimonxAuthor
Participating Frequently
December 6, 2012

I guess I didn't quite understand what you're trying to do.

You want to convert a whole TT font to OT/CFF font at runtime? Why do you need to do that?

TLF supports both TTF and OTF. What it doesn't support is Type 1 fonts.


tlf dont support ttf because ttf doesn't have cff table, tlf need a definefont 4 font definition with the cff table, otf (opentype) have cff table but ttf (truetype) doesn't have this table, the glyph is describe in ttf with glyf and loca table....