-
Notifications
You must be signed in to change notification settings - Fork 11
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
Missing support for google's Noto CJK and Adobe's SourceHan font families #31
Comments
I already have ones locally, but I don't have enough time to commit it |
Great! So... hopefully you will soon find some time :-) |
Added on 18dcc41, but not tested well yet especially for following reasons:
|
It seems to work, thanks. The created link from e.g., My use-case is the music score typesetting engine Note, however, that I get a far better result if I convert |
Hallo Werner, Thanks for your comments and confirmation that it works. When I first wrote this script I didn't plan it to be a universal font installer for CJK fonts, though over time and with the hard work of Hironobu it has grown a lot. What do you mean with "far better" here, the size difference I suppose, because there shouldn't be a visual difference. Best Norbert |
[Hehe, ich hebe irgendeinen Stein hoch, und darunter sitzt schon ein Projekt, wo du deine Finger drin hast :-)] Yes, I mean the very noticeable size difference if using the current ghostscript version 9.26. Maybe it's worth to investigate whether such size reductions are possible for cjk-gs-support also (i.e., working with CIDFont resource files in addition to CID-keyed OTFs if there is plenty of disk space). Just a note of warning: Currently, XeTeX happily accepts CIDFont resource files as fonts if offered by fontconfig. However, it can't use them, and xdvipdfmx aborts with a wrong error message, cf. https://sourceforge.net/p/xetex/bugs/156. |
Sorry I don't know what "CIDFont resource created by fontforge" looks like, as I've never used fontforge. Could you give me more information on it, or how can I create one? (I'm currently working on macOS, and MacPorts seems to have a port "fontforge" ...) |
Assuming that you make the fontforge's GUI work: Say
(this can take quite a long time, especially if fontforge has to regenerate its fontconfig database), then select 'File->Generate Fonts->PS CID', change the output font name to 'SourceHanSerif-Medium' <selectfont>
<rejectfont>
<pattern>
<patelt name="fontformat" >
<string>CID Type 1</string>
</patelt>
</pattern>
</rejectfont>
</selectfont> |
Installed fontforge using macports, but it does not work on my computer;
Luckily, |
I found that macports can activate fontforge+python27, and it works.
I first write ffscript.pe
and run |
Good to know that you can create such files on the Mac! The generated resource file is similar to a large Type1 PostScript font using the CID framework (i.e., putting the glyphs into various font dictionaries). The font encoding is identical to the data in the OTF's 'CFF ' table ('Adobe-Identity-0', which essentially means unordered). This implies that the metrics and cmaps from the OTF file must be used to generate the PDF; only for Note that it also works if you generate a 'bare CFF CID-keyed font' with fontforge. However, the PDF created by |
It seems that
cjk-gs-integrate
doesn't recognize fonts from the SourceHan or NotoCJK families.The text was updated successfully, but these errors were encountered: