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