Skip to content

Modifying CFF Glyph points ( From existing .otf ) #3267

Answered by ivangrozny
ivangrozny asked this question in Q&A
Discussion options

You must be logged in to vote

For thoses interested there is an even better way to keep a maximum of originals data ecept vectors :
replacing only the compiled glyph bytecode into the CFF table

char_string = pen.getCharString()
char_string.compile()
font['CFF '].cff.topDictIndex[0].CharStrings[glyph].bytecode = char_string.bytecode

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ivangrozny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant