Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Resset / change unicode char in private area /PUA to default (glyphs character) in font info #3406
Resset / change unicode char in private area /PUA to default (glyphs character) in font info
Hi, folks, I have the problem with Unicode char in pua for alternate glyphs, I don't know how to fix it. How to reset to default Unicode char in glyph info. I'm placing the glyph in private area for OpenType features, coz if I generate the font this Unicode chart change to forming my own glyph and can't to back default again. Than if i open new page this Unicode chart still all ready not back to default. i attached the problem.
1.This my own glyphs...and all Unicode char forming like my own glyphs.
Thanks you in advance
Having read through your description, I am not quite sure what problem you face, and whether it is more of a bug in the software or a question about normal practice. So I'll make a few suggestions from both perspectives.
The most common practice for alternate glyphs, at least in FontForge, is to give them unique names but assign all of them "-1" as a unicode value. This is equivalent to each not having any associated unicode slot. Only the standard or "default" glyphs should have their associated unicode values in the font. Alternates are then substituted by name, not unicode value, in GSUB lookup tables, which can be accessed in FontForge from the
If this does not solve your problem, it would be helpful if you could update this issue with a description of a specific sequence of steps that reproduce your problem in FontForge. Whether your issue is related to a software bug or a misunderstanding of how FontForge is intended to work, that more detailed description would likely clarify your problem.
No, glyphs with a -1 unicode value will be treated as unmapped on the Unicode level.
If you need glyphs included in the private use area I believe you should be able to set their unicode values explicitly by typing in the "Unicode Value" box and hitting "OK" at the bottom of the dialog. But then you need to be careful not to "remap" those values based on glyph name, either in that dialog or font-wide.