~ubuntu-branches/ubuntu/quantal/cjk/quantal

« back to all changes in this revision

Viewing changes to debian/README.Debian-msgothic

  • Committer: Bazaar Package Importer
  • Author(s): Danai SAE-HAN (韓達耐), README.Debian-msgothic
  • Date: 2008-01-30 18:53:24 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080130185324-53m4h647q3v5nlzf
Tags: 4.7.0+git20080122-1
* The "Shoe polish" release.
* Acknowledge the NMU.  Thanks to Lucas Nussbaum.
* New upstream release:
   - a few fixes for PinYin;
   - fix punctuation in GBK and math mode;
   - dvipdfmx can now make use the correct /ToUnicode CMap;
   - fix a few typo's.
* [latex-cjk-japanese.install] Install DNP.sfd in
   /usr/share/texmf/fonts/sfd/.  Thanks to Gernot Hassenpflug
   (Closes: #434478).
* [README.Debian]
   - change 10cyberbit.cfg into 20cyberbit.cfg.
  [README.Debian-msgothic] Add some DIY information how to get the Japanese
   Gothic font from Microsoft working under CJK.  This is largely based on
   Gernot Hassenplug's HOWTO.  This is a work in progress, however, as I've
   stumbled upon a segmentation fault in Fontforge.
* [control]
   - Bump Standards-Version from 3.7.2.0 tp 3.7.3;
   - make latex-cjk-korean depend on "ko.tex-extra-hlfont" instead of
     the old "hlatex-fonts-extra".  Thanks to Changwoo Ryu
     (Closes: #462025).
* [rules]
   - fix bashism: apparently other shells don't understand the accolade.
     Thanks to Mario Bonino for the report and Lucas Nussbaum for the NMU
     which closed #457710;
   - change /usr/bin/rename to /usr/bin/prename;
   - don't install the empty "CEF/" directory in $TEXMF; the
     hbf-* packages will take care of this in the future.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Japanese Microsoft Gothic TTF
 
2
-----------------------------
 
3
 
 
4
Thanks to Gernot Hassenplug for this HOWTO.
 
5
 
 
6
### Warning: this HOWTO is unfinished; there seems to be a bug in either
 
7
###          Fontforge or vertical.pe, blocking the build process midway.
 
8
###          I hope this will be fixed at the next upload of latex-cjk-japanese.
 
9
 
 
10
This HOWTO will guide you through the process of getting Microsoft's Japanese
 
11
font "Gothic" to work with CJK on TeX (latex, dvipdfmx and pdflatex) in the
 
12
event that you already have a legal copy of the said font.
 
13
 
 
14
On a standard Debian or Ubuntu installation, TEXMFLOCAL can be considered
 
15
the same as /usr/local/share/texmf/.
 
16
 
 
17
As root, make the directories:
 
18
$ mkdir -p  /usr/local/share/fonts/truetype/microsoft
 
19
 
 
20
Still as root, make "msgothic.ttf" available both to X11 and TeX:
 
21
$ cp msgothic.ttf /usr/local/share/fonts/truetype/microsoft/
 
22
$ cd /usr/local/share/texmf/fonts/truetype
 
23
$ ln -s ../../../fonts/truetype/microsoft/
 
24
 
 
25
Linking the font to the TEXMFLOCAL tree will have no effect on latex, dvipdfmx
 
26
or pdflatex, but it is useful if you plan to use the next generation set of
 
27
TeX tools such as XeTeX.
 
28
 
 
29
 
 
30
As a regular user, build the fonts (will take some building time):
 
31
$ mkdir ~/msgothic
 
32
$ cd ~/msgothic
 
33
$ fontforge -script /usr/share/latex-cjk-common/utils/subfonts/subfonts.pe /usr/local/share/fonts/truetype/microsoft/msgothic.ttf msgothic /usr/share/texmf/fonts/sfd/Unicode.sfd
 
34
 
 
35
Now some vertical fonts:
 
36
# PROBLEM: fontforge version 20071110 will segment!  msgothicv.tfm will not be created,
 
37
# rendering the third Perl command below impossible to run.
 
38
$ fontforge -script /usr/share/latex-cjk-common/utils/subfonts/vertical.pe /usr/local/share/fonts/truetype/microsoft/msgothic.ttf msgothicv
 
39
$ fontforge -script /usr/share/latex-cjk-common/utils/subfonts/vertref.pe /usr/local/share/fonts/truetype/microsoft/msgothic.ttf msgothicvr
 
40
# Impossible to make with due to a possible bug in Fontforge:
 
41
$ perl /usr/share/latex-cjk-common/utils/subfonts/clonevf.pl msgothicv msgothv
 
42
$ perl uni2sfd.pl $(uninamestem) $(sfddir)/$(encoding).sfd $(sfdnamestem) $(codingscheme)
 
43
 
 
44
Clean up:
 
45
$ rm -f *.enc
 
46
 
 
47
Create a map file for the Type1 fontsto be embedded successfully:
 
48
$ for i in *.tfm; do echo "${i%.tfm} ${i%.tfm} < ${i%.tfm}.pfb" >> msgothic.map
 
49
 
 
50
Create cXXmsgothic.fd:
 
51
$ # UNTESTED: perl makefdx.pl $(uninamestem)vr.afm $(sfddir)/$(encoding).sfd c$(nfss_fontencoding) $(namestem)
 
52
 
 
53
Create c70msgothic.fd:
 
54
$ # UNTESTED: perl makefdx.pl -u $(uninamestem)vr.afm $(sfddir)/Unicode.sfd c70$ $(namestem)
 
55
 
 
56
% This is c70msgothic.fd for the CJK package
 
57
% created by Gernot Hassenpflug based on the tutorial
 
58
% by Edward G. J. Lee in his blog "LJG Font Notes"
 
59
\ProvidesFile{c70msgothic.fd}
 
60
\DeclareFontFamily{C70}{msgothic}{\hyphenchar \font\m@ne}
 
61
\DeclareFontShape{C70}{msgothic}{m}{n}{<-> CJK * msgothic}{}
 
62
\DeclareFontShape{C70}{msgothic}{bx}{n}{<-> CJKb * msgothic}{\CJKbold}
 
63
\endinput
 
64
 
 
65
Local installation: [change ~/ with TEXMFLOCAL to get a user-wide installation]
 
66
$ mkdir ~/texmf/fonts/map/dvips/microsoft
 
67
$ cp msgothic.map ~/texmf/fonts/map/dvips/microsoft/
 
68
$ mkdir ~/texmf/fonts/{tfm,type1}/microsoft
 
69
$ msgothic*.tfm ~/texmf/fonts/tfm/microsoft/
 
70
$ msgothic*.pfb ~/texmf/fonts/type/microsoft/
 
71
$ cp c70msgothic.fd ~/texmf/tex/latex/CJK/UTF8/
 
72
 
 
73
$ texhash ~/texmf
 
74
$ update-updmap
 
75
$ updmap --enable Map msgothic.map # Use updmap-sys if you are root.