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
makeotf 2.7.8 and 2.7.9 produces probably incorrect Code Page Character Range value #1040
Comments
@tamcy to aid us in debugging, can you please supply the commands you are using to build? Also any fontinfo or other files used for your modified build (that are changed from those in https://github.com/adobe-fonts/source-han-sans)? |
@tamcy We were able to reproduce the problem, so there's no need for you to provide the info that @josh-hadley requested above. Thanks for reporting this issue. |
- added `cidfont.ps` (Adobe Blank), plus 4 modified CMaps for Japanese, Simplified Chinese, Traditional Chinese, and Korean - added expected OS/2 table TTX dumps - added test to confirm that makeotfexe generates expected OS/2 tables for above
As @cjchapman mentions, we were able to reproduce the issue and have settled on a fix which should get merged soon. The underlying issue was actually in |
- added `cidfont.ps` (Adobe Blank), plus 4 modified CMaps for Japanese, Simplified Chinese, Traditional Chinese, and Korean - added expected OS/2 table TTX dumps - added test to confirm that makeotfexe generates expected OS/2 tables for above
In this issue, when I say "old version" I refer to the following setup:
And when I say "new version" I mean the followings:
I have also tested building the font with
makeotf.py v2.7.9 Sep 24 2019
. The result is the same as 2.7.8.I ran
makeotf -v
to get themakeotf.py
version. Versions ofhotconv
andmakeotfexe
were taken from the built font.I found this issue when trying to build my own modified version of Source Han Sans. I had been successfully used the "old version" to build my font, but not anymore after updating to the "new version" along with OS reinstallation. It looks like the problem is caused by the incorrect
ulCodePageRange1
value in the OS/2 table when building the font with the new version of AFDKO.Here's the OS/2 table built by the old version of AFDKO:
While the OS/2 table built by the new version of AFDKO looks like this:
As you see bit 17 (JIS/Japan), 19 (Korean Wansung), 20 (Chinese: Traditional) and 21 (Korean Johab) are all zeros.
I tried building the original, official version of Source Han Sans using this "new version", and it yields similar result:
(Left: official release; Right: built with new version of AFDKO. The JIS/Japan, Korean (Wansung & Johab) and Chinese: Traditional codepages are unchecked.)
The problem is that the font no longer works correctly in Windows (not sure about other OSes). For instance, when using it in MS Word,
The text was updated successfully, but these errors were encountered: