-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typography.OpenFont.Tables.CFF.CFF.cs #198
Comments
Thank you, I will check it. |
@db300 , could you provide a font that has that glyph-name problem? I want to debug and make sure that the problem is from font-file, or from bug in the library |
Thank you, I download it, and delete the link :) |
I will review it again |
HYCuFangSongJ is CID font. This was fixed, see also => #201 HYCuFangSongJ, no glyphname, but render by glyph index HYCuFangSongJ, Hello |
Great. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 1023:
cff1Glyphs[i]._cff1GlyphData.Name = _uniqueStringTable[sid - Cff1FontSet.N_STD_STRINGS - 1];
If sid - Cff1FontSet.N_STD_STRINGS - 1 >= _uniqueStringTable.Length, throw an exception.
So, I rewrite as following:
var index = sid - Cff1FontSet.N_STD_STRINGS - 1;
if (index < _uniqueStringTable.Length)
cff1Glyphs[i]._cff1GlyphData.Name = _uniqueStringTable[sid - Cff1FontSet.N_STD_STRINGS - 1];
The text was updated successfully, but these errors were encountered: