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
Outdated or wrong CIDMaps? #1831
Comments
|
It would be nice if |
|
What's happening is that the Source CJK fonts / Noto CJK fonts have about 400 glyphs having more than 2 coding points; actually about a dozen have 3. All but one is silently dropped by fontforge. So you get about 400 coding points missing when re-encoding. The worst part of fontforge behaviour is that it uses the last one it sees as authoritative - that's often the CJK Compat variant range, rather than the lower CJK Unified region. So the lower and more often-used CJK Unified code range ended up having about 400 glyphs missing. |
|
fontforge cannot cope with glyphs mapping to multiple encoding points. In summary. |
|
The cidmap is not wrong - it is just that fontforge cannot currently cope. The author(s) of fontforge seems not to be able to comprehend the need for one glyph to multiple coding points properly. Source CJK/Noto CJK have about 400 of those, and the glyphs are missing from the lower CJK Unified range, as fontforge prefers to use the upper Compat variant as authoritative encoding for such glyphs. When you list the glyphs by the encoding vector (i.e. Unicode). |
|
My freetype-py script to fix fontforge's encoding problem is up at https://github.com/HinTak/freetype-py/blob/fontval-diag/examples/subfonts-script-generate.py |
|
@yg8ijvjvjv OpenType OTF and CID are not mutually exclusive concepts. https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5149.OTFname_Tutorial.pdf |
There's no reason not to do this. We already distribute them as part of the repository. * Closes fontforge#4411. * Closes fontforge#4350. * Related also to fontforge#1831. After we make it so we're installing the cidmaps in the repo, it would make sense to assure that they're actually the most up-to-date ones.
I noticed that some glyphs are missing when I use Fontforge to open Noto Sans CJK SC. The fonts can be downloaded at https://www.google.com/get/noto/cjk.html .
An example would be the character '量', which, according to all systems and applications, are present in Noto Sans CJK SC. Also it's a commonly used character in all variants of CJK languages. But If you use fontforge to import the fonts you won't be able to find this character.
I am still using the old CIDMaps from the old fontforge website. Does anyone know of a newer version, or is there any potential fix to this problem?
The text was updated successfully, but these errors were encountered: