Skip to content

Writting "Metadata" to new OTF Font File #620

Answered by Connum
palmavilluan asked this question in Q&A
Discussion options

You must be logged in to vote

You'll want to use the meta table, the use of which is exactly that, to add meta data. :)
According to the name table specification, private tags (that is any arbitrary custom tags like in your case) MUST

begin with an uppercase letter (0x41 to 0x5A), and must use only uppercase letters or digits

So there's no guarantee that your tag might not collide with another tag of the same name from a different font authoring software, but if you pick one that's speaking enough for your app name (as far as possible with only 4 ASCII chars), that should be relatively unlikely.

In order to add metadata to the table using opentype.js, you can do something like this:

// make sure that the table exists

Replies: 1 comment

Comment options

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