Debian Codegraph @

texmf-dist/doc/fonts/cm-unicode/FAQ

raw
1 How to add new glyphs to existing scripts?
2
3 Usually one wants to add accented glyphs. In that case fontforge
4 script commands (for example, AddAccent, BuildComposite) may be used.
5 Fontforge can produce more or less satisfactory character. It may be
6 adjusted by fontforge preferences. For such simple batch editions it
7 has not to build everything from scratch. You can create simple
8 fontforge script, for example:
9
10 #!/usr/local/bin/fontforge
11 fontname=$1
12 Open(fontname+".sfd")
13 SetPref("AccentOffsetPercent",5)
14 SetPref("AccentCenterLowest",0)
15 SetPref("CharCenterHighest",0)
16 Select("imacron")
17 BuildAccented()
18 Save(fontname+"-my.sfd")
19 Close()
20 Quit()
21
22 You may insert here if commands for specific fonts:
23
24 if (font_var == "bl")
25 SetPref("CharCenterHighest",1)
26 else
27 ...
28
29 Look at mergefonts.pe for more examples.
30 Then run it with name of some sfd font file from
31 cm-unicode-*-sfd.tar.bz2 without sfd extension, e. g.
32
33 $fontforge -script aaa.ff `basename cmunrm.sfd .sfd`
34
35 Then send me required commands from this script, I shall include them
36 into mergefonts.pe
37
38 If you are dissatisfied by the quality of glyph created by the
39 fontforge or you created totally new glyph:
40
41 Create new font with glyphs will be added to cm-unicode and their
42 dependencies, when these glyphs contain references.
43
44 Save this font with additions with filename containing some prefix
45 and cm-unicode suffix (basename of sfd file from
46 cm-unicode-*-sfd.tar.bz2 without initial "cmun"), e. g.: aaarm.sfd
47
48 And send me these sfd files.
49
50 How to print using opentype fonts from KDE 3.5?
51
52 At first install the fonts for ghostscript.
53 As a workaround for printing with Qt 3.3 call Fontmap.CMU.alias after
54 Fontmap.CMU in ghostscript's Fontmap file. It would substitute some
55 fonts.