[tex-live] tlgs on windows, cjk-gs-integrate support

Hironobu YAMASHITA h.y.acetaminophen at gmail.com
Thu Apr 20 15:30:33 CEST 2017

Dear tex-live list members (especially Reinhard),

I'm currently considering about improving CJK opentype/truetype font
support for tlgs (that is, ghostscript bundled with texlive win32),
and some questions arised.

Here is what I learned about current tlgs:

* distributed with pre-generated cidfmap (called cidfmap.TeXLive)
* Resource directory is built into the binary

IMHO, this framework cannot fully support CJK fonts available on
TeX Live or Windows.

[1] How can we embed CJK opentype fonts with dvips+ps2pdf?

An example:

kanji-config-updmap-sys --sc fandol
uplatex chinese-test
dvips chinese-test
ps2pdf chinese-test.ps

% ===== chinese-test.tex
% =====

(the command "kanji-config-updmap-sys" is used for choosing
  "fandol" preset of font mapping.)
the resulting PDF file is wrong, because it does not show any
Kanji characters. This is because ghostscript is not set up
properly. To get a correct result, we should tell tlgs the path
of opentype fonts to be embedded:


However, I cannot find any way of doing that.

[2] Can current distribution support both windows7 and windows10?

An example: on windows 7, "MicrosoftYahei" family is bundled in ttf format,
but on windows 10, it is bunled in ttc format. Current cidfmap.TeXLive
has an entry for ttf format, so it fails on windows 10.

p.s. Norbert and I are considering about adding windows support
for "cjk-gs-integrate"; it is a perl script to generate symlinks
and resources required for ghostscript to use CJK opentype/
truetype fonts. It would be better if we can determine which
font file (ttf or ttc) should be used for each installation.


Hironobu Yamashita,
a member of Japanese TeX Development Community

More information about the tex-live mailing list