Debian Codegraph @

doc/sphinx/ui/dialogs/display.rst

raw
1 Display & Print Fonts
2 =====================
3
4 .. image:: /images/DisplayFonts.png
5 :align: right
6
7 This dialog allows you to display text in any fonts you have loaded into
8 FontForge and see how they look on the screen and together. Having done that to
9 your satisfaction you may optionally print the result.
10
11 The textarea should behave like any of FontForge's textarea's (except this one
12 is a lot slower to respond than others), it also allows you to select any piece
13 of text in it and change the font, point size and what OpenType features should
14 be applied to that text.
15
16 First make a selection (or type ^A to select everything), then choose which font
17 you want and how you want it dsplayed.
18
19 You may also select how the font is rasterized. The first three choices (pfb,
20 ttf, otf) will be rasterized by freetype, and the display is very similar to
21 that used by X (so this is an easy way of checking how your fonts will look on
22 the screen without going to the bother of installing them.). The various options
23 specify in what format the font is passed to freetype:
24
25 * pfb -- PostScript Type 1 font
26 * ttf -- Truetype font
27 * otf -- OpenType (PostScript Type 2) font
28
29 The "bitmap" option allows you to pick from any of the generated bitmap (or
30 greymap) fonts that have already been generated and reside in the database.
31
32 The "fontforge" option will invoke FontForge's own rasterizer. FontForge's
33 rasterizer generates appallingly bad bitmaps.
34
35 You can choose whether you want the font to be antialiased or not.
36
37 And different bits of text can have different settings, so you can compare them
38 and decide which is least worse. Also you can compare two different fonts and
39 see how well they work together.
40
41 As with the :doc:`metrics view </ui/mainviews/metricsview>` you may set the script and
42 language of the selected text and then choose which features to apply. Note that
43 if you start typing text in a different script you will probably have to change
44 it manually -- FontForge expects you to set the script explicitly. On the upper
45 left is a list of OpenType features (and Apple feature/settings) which will be
46 applied to the selected text.
47
48 Unlike the metrics view, fontforge will attempt to do baseline alignment if the
49 font being displayed has
50 :ref:`horizontal baseline information. <elementmenu.HBase>`
51
52 FontForge tries to guess the appropriate dots per inch for your display -- it
53 may not get it right (X doesn't always know it either). If it doesn't and the
54 text looks too big or too small you may adjust it manually.
55
56 This display is not modal, so you can edit your font while it is up. However
57 FontForge does not update the display everytime you make a change, if you wish
58 your changes to be reflected in the display you must press the ``[Refresh]``
59 button. (If you make a severe change, like removing a glyph from the font,
60 please, please, please press this button or FontForge may crash if you try to
61 display something which is no longer there).
62
63 There is a popup menu on the right mouse button.
64
65 You may Import text from a file. The file must either be in the current local
66 encoding, or UCS4 (unicode) or UTF8 (unicode). If it is in unicode the first
67 character in the file must be U+FEFF. You can also save the contents of the
68 field into a file (it will be in UTF8 and preceded by U+FEFF) by typing ^S.
69
70 You can also generate an image of this window by typing Ctl-Shft-S.
71
72 Once you have edited in this window to your satisfaction you may print the
73 result. FontForge will produce either PostScript or PDF output (If your fonts
74 are originally truetype they will be output with a PostScript wrapper around
75 them so PostScript can deal with them).
76
77 .. image:: /images/Print.png
78 :align: right
79
80 There are other printing options too. At the top of the dialog are a set of tabs
81 "Display" and "Print". The "Print" pane allows you to print certain standard
82 displays of a single font.
83
84 .. container:: clearer
85
86 ..
87
88 * All the characters of your font, in a rectangular grid:
89
90 .. image:: /images/FontDisplay.png
91
92 * Certain selected characters, one per page, at a scale to fill up the page
93
94 .. image:: /images/CharPrint.png
95
96 * Certain selected characters at various pointsizes (72, 48, 36, 24, 20, 18, 16,
97 15, 14, 13, 12, 11, 10, 9, 8, 7.5, 7, 6.5, 6, 5.5, 5, 4.5, 4)
98
99 .. image:: /images/MultiPrint.png
100
101 * Or the edited display from the other pane.
102
103 .. image:: /images/FontSample.png
104
105 .. image:: /images/Print.png
106 :align: right
107
108 The print pane appears again at right. The three choices are reflected by the
109 radio buttons (the Full Page Character and Multi Size Character buttons will
110 print any selected characters in the font view, the current character in the
111 outline view, and any characters displayed in the metrics view -- they will be
112 greyed out if no characters are selected in the font view).
113
114 The PointSize field applies to the Full Font Display.
115
116 The Setup button allows you to pick a printer, pagesize, etc.
117
118 .. image:: /images/PageSetup.png
119 :align: left
120
121 You may choose to queue the result with lp or lpr, you may also direct it to
122 ghostview, or simply print to a file. Files may be written in either postscript
123 or pdf formats (if you send output to a file you will be prompted for a filename
124 after you click OK in the Print (not the PageSetup) dialog). You can also direct
125 the print run to any command you choose (the "Other" option). This command must
126 expect to find a postscript file on its standard input, if the command needs any
127 arguments (a common example might be the "-" used by many commands to make them
128 read standard input) they should be placed in the text field with the command
129 name.
130
131 FontForge knows about certain standard sizes of paper. If you want to use a size
132 which isn't on the list then enter it as 8.5x11in or 21x29.7cm.
133
134 FontForge will read your printcap file to get a list of printers. It also adds
135 one magic entry "<default>" if you select this (or if you leave the printer
136 blank) then lp or lpr will chose their default printer.
137
138 The Printer and Copies arguments are not meaningful when using ghostview or
139 printing to a file.
140
141 --------------------------------------------------------------------------------
142
143 Obviously my samples are based on european and CJK character sets. If anyone has
144 a small section of text in any language not represented please send me a copy.
145 Copyright free, of course, and preferably in a unicode encoding...
146
147 :doc:`Sources of the samples </appendices/quotations>`...