Skip to content

TTF to OTF conversion #2836

Answered by justvanrossum
ftCLI asked this question in Q&A
Sep 28, 2022 · 9 comments · 16 replies
Discussion options

You must be logged in to vote

I can't answer your question, but I feel you're going about the conversion the wrong way.

The font doesn't need to change much: just convert the glyf outlines to CFF outlines. See ttFont.getGlyphSet() for outline extraction and fontTools.fontBuilder.FontBuilder for how to build a CFF table with T2 outlines. Make sure to keep the same glyph order, and not a single byte needs changing in GSUB/GPOS and many other tables.

Replies: 9 comments 16 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ftCLI
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ftCLI
Comment options

@justvanrossum
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@justvanrossum
Comment options

@ftCLI
Comment options

Comment options

You must be logged in to vote
11 replies
@ftCLI
Comment options

@anthrotype
Comment options

@anthrotype
Comment options

@ftCLI
Comment options

@ftCLI
Comment options

Comment options

You must be logged in to vote
1 reply
@ftCLI
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants