source: branches/2.2/filemanager/tp/dompdf/lib/ttf2ufm/ttf2ufm-src/other/README @ 3019

Revision 3019, 4.7 KB checked in by amuller, 14 years ago (diff)

Ticket #1135 - Corrigindo CSS e adicionando filemanager

Line 
1Supplements for True Type to PostScript Type 1 Converter
2
3(Do not edit this file, it is generated from README.html!!!)
4
5bz
6--
7
8A small program to draw the Bezier curves on an alphanumeric display.
9The recommended way of uing it is to run it from xterm with "Tiny"
10(if you want higher magnification) or "Unreadable" (if you want
11higher resolution) font and as big window size as possible. The size
12of the window can be obtained by running "stty -a". For everything else
13just "Use the source, Luke!"
14
15cmpf
16----
17
18A small program to compare the rendering of two supposedly
19nearly-identical fonts at low resolutions. It requires the
20T1LIB library. This program may be used to compare the
21effect of various options of the converter on the resulting
22fonts. Create two .pfa files, one with one set of options,
23another with another set of options, then use this program
24to compare them.
25
26dmpf
27----
28
29A small program to dump the bitmaps of all glyphs of the font
30at low pixel sizes, up to 20 pixels. It requires the
31T1LIB library. This program may be used to compare the
32effect of changes in the T1LIB rasterizer and just for visual
33search for rendering anomalies.
34
35lst.pl
36------
37
38A simple PERL script that generates an HTML file
39with the full list of all characters in all
40possible styles of the Variable-width and Fixed-width
41fonts. This file is quite convenient to look
42at the converted fonts in Netscape (or other
43graphical browser).
44
45cntstems.pl
46------
47
48A simple PERL script that counts the required hint stack in the
49interpreter to rasterize the glyphs of the font. May be quite
50useful in search for missing glyphs which may be aborted due to
51insufficient stack depth.
52
53showg
54-----
55
56A PERL script that draws the glyphs and their interesting
57metrics (such as coordinates of the dots, hints and blue zones)
58in PostScript. It works only with un-encoded font files generated
59by ttf2pt1. The intended use is like:
60
61  showg [-c <fontfile.t1a>]...  <fontfile.t1a> <glyph-to-draw>... >file.ps
62  gv file.ps # start the Ghostscript viewer
63
64As you can see, multiple glyphs may be specified. The glyphs may be
65specified in one of three ways:
66  - as a decimal code (for example, 43 )
67  - as a glyph name preceded by a slash (for example, /plus )
68  - as a literal character preceded by a dot (for example, .+ )
69
70So for example the following command would draw the same glyph "left
71parenthesis" three times:
72
73  showg file.t1a 40 /parenleft .\( >/file.ps
74
75Don't forget that some characters have to be protected from the shell
76by backslash as shown above, or else the shell would try to interpret
77them before passing to the program.
78
79One file (given as the first argument) is considered the main file
80but multiple files can be specified with option -c for visual comparison
81of the outlines. The glyphs from the main file are drawn in black
82and supplemented with coordinate grid and sidebars for hints. The
83glyphs from the comparison files are drawn in slightly lighter colors
84(red, cyan, brown) and no supplemental information is provided for them.
85Each use of option -c adds one comparison file, this option may be used
86multiple times. If there are more than 3 comparison files the colors
87repeat cyclically.
88
89So for example the following command would draw the same glyph "left
90parenthesis" from three files on the same page:
91
92  showg -c fileA.t1a -c fileB.t1a file.t1a .\( >/file.ps
93
94This program is quite valuable it you want to take a close-up view at
95the font.
96
97The outlines are drawn in black, the ends of the curves and
98lines are marked as dots, the first dots of the outlines
99are fatter. The Blue Zones are drawn in light blue. The
100substituted hints are marked in red, the global hints are
101marked in blue. The coordinate grid is drawn in green.
102The stems and the values of coordinates are for convenience
103marked twice, on each size of the picture.
104
105showdf
106------
107
108A Perl script to find a list of differing glyphs in two versions of a font
109file (for example, converted with different versions of ttf2pt1 or
110with different options given to ttf2pt1) and feed this list into the showg
111program for display.  The intended use is like:
112
113  showdf <showg-location> <fontfile1.t1a> <fontfile2.t1a> >file.ps
114  gv file.ps # start the Ghostscript viewer
115
116If both showdf and showg scripts are located in the
117same directory, the command would look like:
118
119  ./showdf ./showg font1.t1a font2.t1a >file.ps
120
121For decent results both font files should be converted from the same original
122font and contain the same glyphs with the same names in the same order.
123Otherwise most probably all the glyphs will be included, or a failure may
124happen if some glyph is not found in one of the files. It is also a good
125idea to convert the fonts for comparison with hinting disabled, otherwise
126the differences in hinting may trigger the otherwise equal glyphs to be shown.
127
Note: See TracBrowser for help on using the repository browser.