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

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

Ticket #1135 - Corrigindo CSS e adicionando filemanager

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