1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
New scigraphica package uses Defoma framework for font configuration.
Available PostScript fonts automatically appears in the font selection
menu, so there's almost nothing left for users to do.
If you have a PostScript printer, you should register the fonts installed
in your printer to defoma through defoma-psfont-installer command. You
may have been noted through Debconf interface during installing psfontmgr.
It is recommended to prepare the PPD file before running the command.
After running the command, the fonts installed in your printer will appear
in the font selection menu. If not, please type
dpkg-reconfigure psfontmgr
and check the rule of registering PostScript fonts.
If you see/print a PostScript file through GhostScript, all font configuration
is done through Defoma framework because gs and gs-aladdin packages are
already Defoma-ized.
Font configuration of scigraphica is stored under
/var/lib/defoma/scigraphica.d/*.fontset.
There may be default.fontset and some locale-specific fontset files.
Each file contains several lines, and each line describes one font definition.
Each line consists of at least three items: PostScript font name, Family and
Shape. They are separated by tab (\t).
Here is an example of one font definition.
CharterBT-BoldItalic Charter -bi
It defines that the PostScript font "CharterBT-BoldItalic" is "Charter"
Family, and its Shape is b(old) and i(talic).
CJK PostScript font definition has two additional items: LatinFamily and
VerticalFlag. CJK texts often contains alphabetic letters, which are usually
printed using Latin font (like Helvetica). LatinFamily specifies which
Latin font is used in a CJK text with a CJK font. VerticalFlag specifies
the direction of a CJK text that the CJK font is used for. Usually a font
whose name ends with '-V' is a vertical font, while a font whose name ends
with '-H' is a horizontal font. If the font is vertical, VerticalFlag is
set to 1, otherwise 0.
Here is an example of one CJK font definition.
Ryumin-Light-EUC-H Ryumin - Times-Roman 0
CJK people usually print CJK PostScript files through gs-cjk, so only
CJK people have to do is apt-get required packages (gs-aladdin,
gs-cjk-resource, cmap-adobe-*, and ttf-*)
|