Skip to content

Does TTX merge have an upper limit of complexity? Failing to merge large COLR table into a variable font. #2374

Answered by justvanrossum
arrowtype asked this question in Q&A
Discussion options

You must be logged in to vote

Reading the COLR spec and fonttools code, it seems that the total number of layers used by the font is limited to 65536.

The numLayerRecords field is 16 bit, as well as the firstLayerIndex field of BaseGlyphRecord (from https://docs.microsoft.com/en-us/typography/opentype/spec/colr)

(Btw. this is unrelated to how you assemble the font: the fact that you use ttx -m does not seem to be relevant)

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by khaledhosny
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
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
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2364 on July 23, 2021 17:09.