Debian Codegraph @

doc/sphinx/ui/dialogs/fontinfo.rst

raw
1 Font Info
2 =========
3
4 .. toctree::
5 :hidden:
6
7 histogram
8
9 .. figure:: /images/fontinfo.png
10
11 The Font Info dialog is available from all views. It allows you to name your
12 font and various other useful bits of information. In a
13 :ref:`CID keyed font <fontview.CID>`, things are more complex. Each CID keyed
14 font is composed of man sub-fonts; this command works on the current sub-font
15 while there is a :ref:`separate command <cidmenu.FontInfo>` to access the
16 information for the font as a whole -- that dialog looks the same. The dialog is
17 composed of many different sub dialogs.
18
19 .. _fontinfo.Names:
20
21 Names
22 -----
23
24 PostScript fonts have several different names, but basically there are two
25 important ones: the family name (like Times) and the fontname (which is the
26 family name with a bunch of modifiers like Bold Italic Condensed tacked on to
27 the end. The FullName is designed to be read by humans, while the others are for
28 machines, this name can contain spaces (like "New Century Schoolbook-Bold
29 Condensed"). Finally there is the weight name. All of these names should be in
30 ASCII. If you wish to enter names with characters outside this range look at the
31 :ref:`TTF Names <fontinfo.TTF-Names>` Section.
32
33 The copyright field can contain whatever you want to put there, but it's a good
34 place to put a copyright.
35
36 In most fonts the version field is a string (and so has minimal constraints on
37 it), but in CID keyed fonts it must be a floating point number.
38
39 You may also specify a separate version number to be used in any sfnt generated
40 from this database; this should be a floating point number. Or you may leave
41 this field blank. If you leave it blank FontForge will generate a default value
42 based on other version information specified elsewhere.
43
44 Normally when :doc:`generating a font, </ui/dialogs/generate>` FontForge will use the
45 fontname as the base for the default filename of the font file (the base to
46 which the extension is added). But that is not always what you want. You may
47 wish to attach a version string to the fontname, or abbreviate it, etc. The
48 ``Base Filename`` field allows you to specify this to fontforge.
49
50 Many of these names are similar to the english names of the
51 :ref:`TTF Names <fontinfo.TTF-Names>` section. If nothing is specified in that
52 section then the names specified here will be used by default in ttf files.
53
54
55 .. _fontinfo.PS-General:
56
57 General
58 -------
59
60 .. figure:: /images/fontinfo-general.png
61
62 This sub dialog contains a rather random collection of settings.
63
64 The Ascent and Descent are (in this current definition) Macintosh concepts
65 rather than PostScript, their sum, however, provides the size of the em-square
66 and that is very much a postscript concept. For postscript fonts this number is
67 set by strong convention to be 1000, while in most TrueType fonts it will be
68 2048 (also a convention, but TrueType claims rasterization is faster if the sum
69 is a power of 2). Since both TrueType and Type1 (postscript) fonts represent
70 numbers as 16-bit integers ascent and descent must be less than 32767. TrueType
71 is more restrictive and requires their sum to be less than 16384.
72
73 If you change the size of the Em you may choose to have all the outlines (and
74 kerning info) scaled to have the same proportion to the new value that they had
75 to the old.
76
77 .. warning::
78
79 If your font has truetype instructions scaling may break the font as entries
80 in the ``'cvt '`` table will not be
81
82 The Italic Angle indicates the slant of the font. FontForge can attempt to guess
83 a good value for you by looking at the stems of certain letters ("I" for
84 instance).
85
86 The underline position and height provide a program using this font a hint as to
87 where it should place a line if it wants to underline text printed in this font.
88
89 .. _fontinfo.vertical:
90
91 If you want your font to have vertical metrics (generally this means you are
92 working on a CJK font) then check the ``[*] Has Vertical Metrics`` checkbox.
93 This will enable the Vertical Origin field, and will mean that when you generate
94 a truetype or opentype font a vertical metrics table will be added. The Vertical
95 Origin is the vertical offset from the origin of the design coordinate system to
96 the origin for the purposes of vertical metrics.
97
98 .. _fontinfo.Interpretation:
99
100 Sadly the encoding is not always sufficient for understanding the font's
101 behavior. For example a unicode font designed for a chinese system will look
102 very different from a unicode font for a japanese system (The same unicode
103 character may map to very different chinese or japanese glyphs). To handle this
104 FontForge has the concept of "Interpretation".
105
106 When you create a new glyph in a font, fontforge will assign it a name based on
107 the current :ref:`namelist <encodingmenu.namelist>`.
108
109
110 .. _fontinfo.Layers:
111
112 Layers
113 ------
114
115 .. figure:: /images/fontinfo-layers.png
116
117 You may control how many and what types of layers are available in your font.
118
119 Fonts may be either outlined, stroked, or type3. You may choose which kind of
120 font you want.
121
122 You may also decide what kind of splines you want in the font in general, often
123 all the layers will use the same type of splines (so there are radio buttons to
124 make that easy), but it isn't required each layer may be in its own format.
125
126 If you mark a layer as quadratic (or check ``[*] All layers Quadratic)`` then
127 FontForge will use quadratic :ref:`Bézier <overview.spline>` splines for this
128 layer rather than cubic Béziers, this means that FontForge will be using the
129 native spline format of truetype rather than postscript (or opentype). When
130 FontForge generates a font it will convert from whatever format is used
131 internally to whatever format is required for the font, so there will be no
132 problem if this is set incorrectly, but setting it correctly for your font means
133 you get a clearer idea of what the outlines will look like. I find quadratic
134 splines harder to edit with because each spline is less flexible, but the
135 advantage of actually seeing what your truetype font will look like may outweigh
136 that.
137
138 You may also mark a layer as a foreground layer or a background layer.
139 Background layers can hold images. Pasting into an empty glyph in a background
140 layer will not set the width. Splines in background layers do not make a glyph
141 worth outputting.
142
143
144 .. _fontinfo.PSUID:
145
146 PostScript Unique ID
147 --------------------
148
149 .. note::
150
151 :doc:`Adobe now says </techref/UniqueID>` that both XUID and UniqueID are unnecessary.
152
153 .. image:: /images/fontinfo-psuid.png
154 :align: right
155
156 The XUID field is a collection of numbers separated by spaces and enclosed in
157 brackets. This allows you to specify the extended unique ID of the font. If you
158 have set the XUID preference entry then FontForge will assign values to all new
159 fonts (by appending a number unique to this font to the end of your preference
160 item). Adobe recommends that the XUID be changed every time the font is changed,
161 so each time you generate a postscript font, that font's XUID (if present) will
162 be incremented by 1 (This incrementing does not happen in CID-keyed fonts, where
163 the XUID behavior is too complex for this simple trick). (The XUID field is only
164 meaningful in PostScript fonts).
165
166 The UniqueID field is an older convention for the same purpose as XUID. If you
167 do not fill in this field then FontForge will pick a random number for you in
168 the allowable range. If you want your font to have no unique id then give this
169 the value of -1. If you have talked to Adobe and been assigned a real UniqueID
170 then you may use this field, otherwise leave it blank. (The UniqueID field is
171 only meaningful in PostScript fonts)
172
173
174 .. _fontinfo.Private:
175
176 Private -- :small:`(font-wide postscript hinting)`
177 --------------------------------------------------
178
179 .. image:: /images/fontinfo-private.png
180 :align: right
181
182 This sub-dialog shows most entries in the font's Private dictionary. The
183 interesting things in this dictionary are mostly concerned with hints
184 appropriate for the entire font. I shall not go into detail about the meanings
185 of the various entries, that is best understood by reading
186 `Adobe's Type1 specification <http://partners.adobe.com/asn/developer/PDFS/TN/T1_SPEC.PDF>`__.
187
188 Don't try to change these until you understand what they mean.
189
190 The dialog is shown at right. It consists of a list of dictionary key/value
191 pairs. The keys are on the left, values on the right. Generally you will want to
192 use the standard PostScript keys (these are available from a pulldown list that
193 appears when you press one of the little grey buttons).
194
195 Note: The values must be things which PostScript can parse. This means that
196 ``ForceBold`` must have a value of "false" or "true", and "False" or "faux" will
197 not work. Similarly the decimal point in numbers must be "." (not ","). If you
198 enter a "," by mistake FontForge will convert it for you.
199
200 For example the ``BlueValues`` entry specifies certain key regions of the font
201 in a vertical direction. For instance it might contain the baseline serif, the
202 x-height serif, the cap-height serif. It is expressed as an array of numbers,
203 grouped in pairs. The first number of a pair is the low end of the region and
204 the second is the high end. So in the example at right, the value of
205 ``BlueValues`` is ``[-20 0 437 457 583 603 623 643``.
206
207 When the ``[Guess]`` button is enabled FontForge thinks it can make a reasonable
208 guess for the value of the currently selected entry.
209
210 The ``[Histogram]`` button is similar, it will bring up a
211 :doc:`dialog showing a histogram </ui/dialogs/histogram>` of the values of an attribute of
212 the font. The hope is that this will allow you to pick a good value for the
213 entry.
214
215 You may also delete an entry from the dictionary with the ``[Delete]`` button.
216 Some entries (such as ``BlueValues``) must be present in any type1 font, but you
217 may still delete them. FontForge will simply guess at a reasonable value when it
218 needs to generate the font.
219
220 Certain keys affect things other than hints. The ``lenIV`` entry controls how
221 much random padding is placed around the type1 strings when the font is
222 generated. Normally this will be 4, but if you want to save space (4 bytes per
223 glyph in pfb format, 8 bytes in pfa) you may choose another value. The UniqueID
224 key represents the font's Unique postscript ID. If you provide a value here then
225 FontForge will copy it into the UniqueID field in the Font Dictionary. (this is
226 different from True Type's UniqueID. They perform the same function but are
227 formatted differently).
228
229 Some of these entries are only meaningful for PostScript fonts, others will be
230 used by the truetype autoinstructor.
231
232
233 .. _fontinfo.TTF-Values:
234
235 OS/2
236 ----
237
238 .. image:: /images/fontinfo-ttfvals.png
239 :align: right
240
241 This sub dialog contains settings important for Windows platforms, most of these
242 settings live in the 'OS/2' table of a truetype or opentype font. The pane also
243 includes a few pieces of data that do not live in the 'OS/2' table but are
244 logically related.
245
246 The weight class provides a numeric value describing the boldness of the font. A
247 normal face will usually have a boldness of 400, and a bold face will usually be
248 700. This must be a number between 100 and 900.
249
250 The width class allows you to provide a numeric value saying how condensed or
251 expanded this font is.
252
253 The PFM Family is used when generating PFM files and classifies the font into
254 some rather broad categories (Serif, Sans, Monospace, Script, Decorative).
255
256 You can control whether you want to allow your font to be embedded into other
257 documents (most commonly pdf). You can restrict it so that it can never be
258 embedded, it can be embedded into documents that can be printed (but not
259 edited), it can be embedded into documents that can be edited, or it can be
260 embedded into an editable document and later extracted and installed on a
261 different system. You can also control whether the document producer is allowed
262 to extract the glyphs it needs and make a new font from them (which saves space)
263 or whether they must include the entire font if they use any of it. Finally you
264 can restrict the embedding so that only bitmap versions of the font may be
265 embedded. (meaningful in CID keyed postscript fonts as well as TTF and OTF).
266
267 The "Vendor ID" is a four character ASCII field used to identify the creator of
268 the font.
269
270 The IBM Family is another classification scheme for fonts.
271
272 Finally you may order lookups in the GSUB (or morx) table.
273
274 These entries are only meaningful in TrueType and OpenType fonts (though the
275 Embeddable entry (generally called FSType) will be set on CID keyed fonts even
276 if they are not in an OpenType wrapper.
277
278
279 .. _fontinfo.Order:
280
281 GSUB/morx Ordering
282 ^^^^^^^^^^^^^^^^^^
283
284 .. image:: /images/GSUB-Order.png
285 :align: right
286
287 This dialog allows you to control the order features in which are to be executed
288 by the word processing program. If you have loaded an opentype or truetype font
289 then the original order will be maintained. As you add more features they will
290 appear at the bottom of the list (which may not be appropriate). You may select
291 a feature name and use the buttons to move it up and down in the list. Things at
292 the top of the list are executed first, things at the bottom last.
293
294 .. container:: clearer
295
296 ..
297
298 .. note::
299
300 Although the OpenType spec claims that the execution of features (actually
301 lookups) will be ordered by their appearance in the lookup table, MicroSoft
302 claims that they will apply features in the order that they think best. So
303 the order specified in the font may be ignored.
304
305
306 .. _fontinfo.TTF-Metrics:
307
308 OS/2 Metrics
309 ^^^^^^^^^^^^
310
311 .. image:: /images/fontinfo-ttfmetrics.png
312 :align: right
313
314 The Windows Ascent and Descent fields are badly defined in the OpenType spec,
315 which says that they should express the maximum range of the Windows "ANSI"
316 glyphs. If one uses this definition, non-"ANSI" glyphs are cropped. These should
317 be the maximum range of all glyphs to avoid cropping. But even that will not
318 always work. If you have a line with marks which are repositioned with GPOS,
319 then the marks may be cropped, so Windows Ascent should include the maximum
320 possible height of repositioned marks (or any other GPOS vertical repositioning
321 feature).
322
323 This is too complex (and too ill defined) for FontForge to figure out, instead
324 FontForge gives you a couple of options.
325
326 #. You may set WinAscent and WinDescent directly. Turn off the "[ ] Is Offset"
327 checkboxes and any value you provide will be used as is.
328 #. Or you may specify an offset to be added to the maximum ascent and descent of
329 the font (which FontForge will compute for you when it saves the font). If you
330 don't have a mark to base feature, then I recommend that you set the offsets to
331 0, and check the "[*] Is Offset" checkboxes.
332
333 Both WinAscent and WinDescent should be positive numbers.
334
335 The Typographic Ascent and Typographic Descent are *supposed* to represent the
336 line spacing of the font on the windows platform. Sadly very few applications
337 actually use them (most applications use the Windows Ascent/Descent described
338 above).
339
340 In traditional (Latin) typography, the unleaded line spacing should be 1em, and
341 that is what Adobe recommends for these fields (they should sum to the Em-Size
342 specified in the :ref:`General <fontinfo.PS-General>` pane). The Typographic
343 Ascent should be the same as the font's Ascent, and the Typographic Descent
344 should be the (negative) of the font's descent.
345
346 The "[*] Is Offset" checkboxes behave much as they do above, except they specify
347 offsets from the font's ascent and descent rather than its bounding box.
348
349 The Typographic descent should be a negative number, the ascent a positive
350 number.
351
352 You can also specify the default line gap, or leading between lines.
353
354 The mac uses a different set of fields for the same concepts, and stores them in
355 the 'hhea' table rather than the 'OS/2'. The HHead Ascent and Descent are used
356 to specify clipping (in some applications) and line spacing. They behave very
357 much the way the Win Ascent & Descent behave (they are based on bounding box
358 values). And the 'hhea' table has its own line gap field.
359
360 And if your font has vertical metrics enabled (See
361 :ref:`General <fontinfo.PS-General>` above) you will be able to set the default
362 spacing between vertical columns of text. (the equivalent to LineGap in vertical
363 text).
364
365 :ref:`See the FAQ <faq.linespace>` for a discussion on the complexities involved
366 in setting the line spacing. :doc:`The 'BASE' table </ui/dialogs/baseline>` provides a more
367 precise method for setting line spacing.
368
369
370 .. _fontinfo.TTF-SubSuper:
371
372 OS/2 Sub/Superscripts
373 ^^^^^^^^^^^^^^^^^^^^^
374
375 .. image:: /images/fontinfo-subsup.png
376 :align: right
377
378 The OS/2 table also contain information on scaling and positioning subscripts
379 and superscripts.
380
381 Most fonts don't really need this control. If you leave the [*] Default check
382 box on, then FontForge will generate some reasonable values on output (if
383 nothing significant changes, it will use the values shown here). If you want
384 control of these values, turn off the checkbox and the text fields will be
385 enabled for you to change.
386
387 .. container:: clearer
388
389 ..
390
391
392 .. _fontinfo.Panose:
393
394 PANOSE
395 ^^^^^^
396
397 .. image:: /images/fontinfo-panose.png
398 :align: right
399
400 This sub-dialog allows you to describe your font in 10 different dimensions. The
401 exact meanings of many of these entries vary from script to script, and even the
402 Latin ones are not clear to me, I have merely typed them in as specified in the
403 `true type docs <http://fonts.apple.com/TrueType-Reference-Manual/RM06/Chap6OS2.html>`__. Better
404 information is available from `HP <http://panose.com/>`__,
405 `MS <https://msdn.microsoft.com/en-us/library/windows/desktop/dd162774(v=vs.85).aspx>`__,
406 `RS <https://www.w3.org/Printing/stevahn.html>`__,
407 `JJ <http://spectrum.library.concordia.ca/981753/>`__ and
408 `this discussion <http://forum.high-logic.com/viewtopic.php?t=941>`__.
409
410 If you leave the [*] Default checkbox set then FontForge will generate
411 reasonable values when the font is output, otherwise you may set these values
412 manually.
413
414 These entries are only meaningful for TrueType, OpenType and SVG fonts.
415
416 .. container:: clearer
417
418 ..
419
420
421 .. _fontinfo.Charsets:
422
423 Charsets
424 ^^^^^^^^
425
426 .. figure:: /images/fontinfo-charsets.png
427
428 The OS/2 table contains two fields which give some information about the
429 characters in the font. Windows is very picky about using fonts if the proper
430 code page bits are not set. If you leave the [*] Default checkboxes set then
431 FontForge will generate reasonable values when the font is output. Sometimes you
432 need to override that behavior if you wish Windows to use a font with an
433 incomplete code page.
434
435 These entries are only meaningful for TrueType, and OpenType fonts.
436
437
438 .. _fontinfo.TTF-Names:
439
440 TTF Names
441 ---------
442
443 .. figure:: /images/fontinfo-ttfname.png
444
445 TrueType (and OpenType) fonts are allowed to have different names in different
446 languages. So a French user might see CaslonItalic displayed as CaslonItalique
447 in a font menu, while a German user might see CaslonKursive. There are about 20
448 different strings which may be customized into various different languages.
449 Customizing one string does not mean that you must customize the others (indeed,
450 often only the Style string will be customized).
451
452 The image at right shows the dialog, displaying all the strings set for the
453 given font. You may order these strings based on type of string (ordered as
454 below), on language (ordered by unicode), or by a variation of language which
455 displays strings for the language of the current locale first, then English
456 strings (because, in general, these will be the most important for the user) and
457 then ordered by language thereafter.
458
459 Certain strings in English (Copyright, Family, Styles, Fullname, Version) will
460 always be present. If you do not set them explicitly they will be taken
461 (possibly with modifications) from the equivalent postscript strings on the
462 :ref:`Names <fontinfo.Names>` pane. You may not remove these strings, and if you
463 wish to modify them you must first detach them from the PostScript. In the
464 example at right the strings bound to PostScript are shown in red (Copyright,
465 Family, Styles), while Fullname and Version have been detached and modified.
466
467 You may change the language of a string by clicking the mouse on the language
468 field of that string -- a popup menu will appear giving you a choice of all
469 supported locale/languages. (You may not modify the language of the special
470 English strings mentioned above).
471
472 You may change the string type in a similar manner, again you may not change the
473 special English strings.
474
475 If you click with the right button on a string you will bring up a different
476 popup menu which will allow you to:
477
478 * Detach a string from its PostScript equivalent if any (so you can modify it)
479 * Delete a string entirely (except for the special strings bound to PostScript)
480 * Edit a string in a larger window.
481
482 If you click with the left button on a string value you may edit that string in
483 line, if it is small enough,
484
485 .. image:: /images/fontinfo-ttfname-bigedit.png
486 :align: right
487
488 otherwise in a larger window.
489
490 If you wish to add a new string, click on the <New> entry at the bottom. You
491 will be given the standard language popup and it will create a new string for
492 you.
493
494 The various strings and a brief description of their meanings are:
495
496 .. object:: Copyright
497
498 Allows you to specify the copyright message
499
500 .. object:: Family
501
502 The font's family name
503
504 .. object:: Styles (SubFamily)
505
506 This should (in English) have values like "BoldItalicCondensed". This is the
507 most likely string to change in different languages.
508
509 .. object:: Fullname
510
511 The concatenation of the Family name and the Styles name
512
513 .. object:: UniqueID
514
515 This is a string that uniquely identifies the font in a human readable
516 fashion. Its format is quite different from postscript's UniqueID and
517 FontForge will create an appropriate string if you don't specify one (rather
518 than copying from postscript).
519
520 .. object:: Version
521
522 A string containing the version number of the font.
523
524 .. object:: PostScript Name
525
526 (FontForge will not let you set this directly. It will be set automatically
527 to the postscript fontname, only one instance of this tag is allowed in the
528 font and it must be ASCII)
529
530 .. object:: Trademark
531
532 A string containing any trademark information for the font.
533
534 .. object:: Manufacturer
535
536 The name of the company that distributes the font.
537
538 .. object:: Designer
539
540 The name of the person who designed the font.
541
542 .. object:: Descriptor
543
544 A description of the font and its characteristics.
545
546 .. object:: VendorURL
547
548 An URL pointing to the font's vendor.
549
550 .. object:: DesignerURL
551
552 An URL (often an e-mail address) pointing to the font's designer
553
554 .. object:: License
555
556 A string describing the license terms under which the font is marketed.
557
558 If you want to use the
559 `SIL Open Font License <http://scripts.sil.org/OFL/>`__, there is a button at
560 the bottom of the dialog which will add that directly (so you don't need to
561 type it in).
562
563 .. object:: License URL
564
565 An URL pointing to a page describing the terms of the license
566
567 .. object:: Preferred Family
568
569 This is to get around a quirk of windows where only four Style names are
570 allowed per family, so font families with more than four styles would get
571 different family names above, but the preferred family name would be the
572 same. This should only be specified if it differs from the family
573
574 .. object:: Preferred Style
575
576 This is similar to the above, except it applies to the style.
577
578 .. object:: Compatible Full
579
580 This is to get around a quirk on the Mac.
581
582 .. object:: Sample Text
583
584 Whatever.
585
586 These are described in the
587 `original true type docs <http://fonts.apple.com/TrueType-Reference-Manual/RM06/Chap6name.html>`__,
588 but they apply to
589 `open type <http://partners.adobe.com/asn/tech/type/opentype/recom.jsp>`__ as
590 well.
591
592 These settings specify strings for the windows platform with unicode encoding.
593
594 Generally fonts will have a fairly complete set of strings in the American
595 English entry, with the Style string (and nothing else) translated into
596 different languages.
597
598 When you create a Style entry for an language, FontForge will attempt to
599 translate the American English style into something appropriate for that
600 language. It understands languages in
601 :doc:`the table on the font styles page </appendices/fontstyles>`, but not others so it
602 won't always work.
603
604 So if your style in American English is "BoldItalic" then after you create the
605 appropriate strings FontForge will default to "GrasItalique" for French,
606 "FettKursiv" for German, "NigritaCursiva" for Spanish, etc.
607
608 These names are only meaningful for TrueType and OpenType fonts.
609
610
611 .. _fontinfo.SSNames:
612
613 StyleSet Names
614 --------------
615
616 .. figure:: /images/fontinfo-ssnames.png
617
618 The OpenType features 'ss01'-'ss20' are magic, and you are allowed to provide
619 more interesting names for them than the default "Style Set 01"... This table
620 allows you to assign names, in various languages to the various features. It is
621 very similar to, though less complicated than, the previous pane.
622
623
624 .. _fontinfo.gasp:
625
626 Grid Fit ('gasp' table)
627 -----------------------
628
629 .. figure:: /images/fontinfo-gasp.png
630
631 The TrueType 'gasp' table gives you control over whether the rasterizer should
632 do grid-fitting or anti-aliasing at any given pixel size. Note that this table
633 only applies to *TrueType* fonts, it does not apply to Type2 PostScript (fonts
634 with .otf extension).
635
636 The table consists of a set of pixel sizes with corresponding flags. For each
637 entry in the table the flags apply to all pixel sizes bigger than the previous
638 entry but less than or equal to the current entry. The table must be terminated
639 with a pixel size of 65535.
640
641 Pressing the [Default] button will provide you with a default 'gasp' table. If
642 your font contains no instructions this will be different than the 'gasp' table
643 for a font with instructions.
644
645 MS has recently expanded the table. Version 0 of the table had two bits for each
646 pixel value, version 1 has four bits, two of which control the behavior of their
647 ClearType rasterizer. They have also added a bit to the 'head' table called
648 optimized_for_cleartype; if this bit is not set then some fonts will not be
649 hinted.
650
651 In the table above:
652
653 * All pixel sizes less than or equal to 8 will not be grid-fit but will have
654 anti-alias applied
655 * All pixel sizes between 9 and 16 (inclusive) will be grid-fit but not
656 anti-aliased.
657 * All pixel sizes above 16 will be both grid-fit and anti-aliased, and will have
658 Cleartype Symmetric Smoothing done.
659
660
661 .. _fontinfo.TeX:
662
663 TeX
664 ---
665
666 .. image:: /images/fontinfo-tex.png
667 :align: right
668
669 This allows you to set the TeX font parameters (which are described in Appendix
670 F, pp 98-100 of the MetaFont Book). There seem to be 3 different types of font
671 parameters, those for text fonts, those for math fonts and those for math
672 extension fonts. The later two have additional parameters which are accessible
673 through the [More Params] button. The default values for the Math parameters are
674 probably reasonable.
675
676 .. container:: clearer
677
678 ..
679
680 .. warning::
681
682 The default values for the Math Extension parameters are probably
683 unreasonable
684
685 These values are stored in tfm files (should you generate a tfm file with your
686 font).
687
688
689 .. _fontinfo.Size:
690
691 Size
692 ----
693
694 .. image:: /images/fontinfo-size.png
695 :align: right
696
697 This allows you to set the design size of a font, the design range, and provide
698 a style name for this class of font.
699
700 In traditional typography every point size of a given font would be slightly
701 different -- generally small point sizes would have proportionally more
702 white-space around the glyph and wider stems inside the glyph. This made small
703 point sizes more readable than they would otherwise be. Conversely large
704 pointsizes would tend to have less white space around them, otherwise the
705 letters would appear too far apart.
706
707 :doc:`Multi-master fonts </ui/dialogs/multiplemaster>` provide one method to avoid this
708 problem. This dialog provides another. Suppose you have a series of font-faces
709 designed for different point-sizes.
710
711 .. list-table::
712
713 * - Ambrosia-Regular-Small
714 - <9pt
715 * - Ambrosia-Regular-Text
716 - 9-13pt
717 * - Ambrosia-Regular-Heading
718 - 14-23pt
719 * - Ambrosia-Regular-Display
720 - >=24pt
721
722 Then you would fill in this dialog to allow the font system to figure out which
723 font was appropriate for which point size. The dialog displays the font's
724 optimal size -- its design size, and the point range within which it can be
725 used.
726
727 In the example above all the different fonts would have the same "Style-ID" this
728 is an arbetrary number that links all fonts with this ID together (all fonts in
729 the same family, that is). However, Ambrosia-Italic-Text would have a different
730 Style ID. All fonts with the same Style ID should have the same Style Name. Note
731 that font names are now something like "Ambrosia-Regular-Heading" -- the user
732 should not be subjected to that complication, as far as s/he is concerned there
733 is just a font called "Ambrosia-Regular" and all four of the above fonts are
734 just instances of it. So the Style Name of all four fonts above should be
735 "Regular".
736
737 Adobe allows two forms of size information. In one, only the design size field
738 is specified, in the other all the fields must be specified. This means that if
739 you want to supply a design range you are also required to provide a style id
740 and name.
741
742
743 .. _fontinfo.Comment:
744
745 Comment
746 -------
747
748 .. image:: /images/fontinfo-comment.png
749 :align: right
750
751 This allows you to keep track of arbitrary comments inside your font database.
752 It does not correspond to any postscript or truetype entity. It is intended to
753 store a changelog for the font itself, but could be used for other purposes...
754
755 Various font formats allow a random comment to be placed in the font, but no
756 format makes use of it. This is primarily to be used inside FontForge. The
757 comment should be in ASCII.
758
759 .. container:: clearer
760
761 ..
762
763 .. _fontinfo.FontLog:
764
765 FONTLOG
766 -------
767
768 This has the same interface as the Comment above. The FONTLOG is an idea stolen
769 from the Open Font License. It is description of the font and a log of changes
770 made to it over time and includes some more information about the font as well
771 (see the `OFL FAQ) <http://scripts.sil.org/OFL-FAQ_web>`__. This pane allows you
772 to store this information within the font itself where it won't get lost.
773
774
775 .. _fontinfo.MarkClass-MarkSets:
776
777 Mark Classes & Mark Sets
778 ------------------------
779
780 .. figure:: /images/fontinfo-markclasses.png
781
782 Font Info Mark Classes
783
784 The various marks in your font may be divided into classes or sets. As I write
785 (spring 2009) there is essentially no support for mark sets, but that will
786 change (Both Adobe and MicroSoft say their next releases will support it).
787
788 The idea behind both is similar: In many lookups it is important to be able to
789 ignore some mark glyphs, but not others. For example when forming an arabic
790 ligature, the vowel marks are (usually) irrelevant to the ligature and you would
791 want to ignore all marks. In situations where you are positioning marks on a
792 base glyph you might in one case, want to ignore all marks that position on top
793 of the glyph while paying attention to those underneath it. And then in another
794 lookup, the reverse might be true.
795
796 At any rate, in some cases it is important to be able to categorize marks. Both
797 classes and sets let you do this. In the example right, latin marks have been
798 divided into those above the glyph and those below.
799
800 A glyph may appear in at most one class, while it may appear in many sets. So
801 when implemented, sets will be more versatile. On the other hand classes can be
802 stored more compactly in the font file (a slight advantage).
803
804 Once you have created your classes (or sets, or both) you may use them in the
805 :ref:`Add Lookup <lookups.Add-Lookup>` dialog from the
806 :ref:`Lookup <fontinfo.Lookups>` pane.
807
808 The Mark Set pane looks almost exactly like the Mark Class pane, and functions
809 similarly. From these panes you may add new classes, or edit old ones.
810
811
812 .. _fontinfo.Lookups:
813
814 Lookups
815 -------
816
817 .. figure:: /images/fontinfo-lookups.png
818
819 Font Info Anchors
820
821 This pane is so complex that it merits its :doc:`own section </ui/dialogs/lookups>`.
822
823 Briefly, lookups contain the data to do the work needed for complex typography.
824 There are two main classes of lookups, those which substitute glyphs (ligatures
825 for example) and live in the GSUB table, and those which position glyphs
826 (kerning for example) and live in the GPOS table.
827
828 Each lookup is composed of one or many subtables.
829
830 There are buttons to the side to create (add) new lookups and subtables, and to
831 edit their attributes (metadata) and their commands (data).
832
833 The order in which the lookups appear in this dialog is the order in which they
834 will be applied. The order of the subtables within each lookup is the order in
835 which they will be applied. There are buttons to the side which will reorder
836 things.
837
838 It is possible to merge two lookups (if they are of the same type) or to merge
839 two subtables (if they are in the same lookup and are similar enough).
840
841 It is possible to import lookups from other fonts (which must already be loaded
842 into fontforge.
843
844 It is possible to drag and drop lookups to reorder them, or to copy them from
845 one font to another (by dragging them into the other font's
846 :menuselection:`Font Info --> Lookups` pane).
847
848 There is a popup menu, available by right clicking on an entry, which provides
849 these functions as well as:
850
851 .. object:: Save Lookup
852
853 Saves the currently selected lookup to an
854 :doc:`Adobe Feature File </techref/featurefile>` of its very own.
855
856 .. object:: Add 'aalt' features
857
858 FontForge can automagically generate an 'aalt' feature consisting of every
859 single and alternate substitution of each glyph.
860
861 .. object:: Add 'DFLT' script
862
863 Add the DFLT script to all selected lookups
864
865 .. object:: Add language to script
866
867 Add the specified language to the specified script in all selected lookups.
868
869 .. object:: Remove Language from script
870
871 Removes the specified language from the specified script in all selected
872 lookups.
873
874 .. object:: Save Feature File
875
876 Saves all lookups (both GSUB and GPOS) to an
877 :doc:`Adobe Feature File </techref/featurefile>`.
878
879
880 .. _fontinfo.WOFF:
881
882 WOFF (Web Open Font Format)
883 ---------------------------
884
885 .. figure:: /images/fontinfo-woff.png
886
887 Font Info WOFF
888
889 This sub-dialog allows you to specify additional information which may be stored
890 in a woff file. A woff file is very similar to a standard sfnt except that its
891 tables are compressed, and it has a few additional data fields. It has version
892 number fields for the WOFF file, a major and a minor version. If you leave these
893 fields blank then fontforge will generate defaults based on some of the other
894 font version information available to it.
895
896 It also has a metadata string. This is a small xml document (which ff does not
897 currently parse), stored in utf8. Its internal format is specified in
898 `a document from Mozilla <http://people.mozilla.com/~jkew/woff/woff-2009-09-16.html>`__.
899
900
901 .. _fontinfo.Mac-Style:
902
903 Mac Style & FOND
904 ----------------
905
906 .. image:: /images/fontinfo-macstyle.png
907 :align: right
908 :alt: Font Info Mac Styles
909
910 This sub-dialog allows you to set the mac style of your font. Normally FontForge
911 will be able to guess the style from the fontname (and various other clues), but
912 sometimes the name will be non-standard (or perhaps just in a language FontForge
913 doesn't know about), and other times you may wish to override this default
914 setting.
915
916 If you are happy with the default, just leave the Automatic button checked, if
917 you wish to override check the button next to the list box. You may select any
918 combination of styles (remember to hold down the control key to get multiple
919 selections) except for one containing both "Condense" and "Expand".
920
921 Note: If you want the style to be "Regular" then leave all styles unselected.
922
923 The mac style is stored in the header of an sfnt (truetype or opentype font
924 file), but is most important in creating mac font families.
925
926 .. _fontinfo.FONDName:
927
928 The FOND name is only used for generating mac families. It is a grouping level
929 underneath the family level. See the :ref:`FAQ <faq.How-family>` for a
930 discussion on when to use this.
931
932
933 .. _fontinfo.Mac-Features:
934
935 Mac Features
936 ------------
937
938 .. image:: /images/fontinfo-macfeat.png
939 :align: right
940 :alt: Font Info Mac Features
941
942 This sub-dialog allows you to create and remove Mac features from your font.
943 This will override the Mac features specified in the
944 :ref:`preferences dialog <prefs.Mac>` for this particular font (for example to
945 give a more appropriate but local name to a certain feature setting).
946
947
948 .. container:: clearer
949
950 ..
951
952 .. _fontinfo.Dates:
953
954 Dates
955 -----
956
957 Displays what fontforge thinks is the create date and modification date of the
958 font data. FontForge started retaining those dates in August of 2006, any prior
959 dates are conjectural and based on a best guess -- usually from the modification
960 time of the sfd file. When loading a font from something other than an sfd file,
961 FontForge will again make the best guess it can.
962
963
964 .. _fontinfo.Unicode:
965
966 Unicode Ranges
967 --------------
968
969 .. figure:: /images/fontinfo-unicode.png
970
971 Displays information about the various unicode character ranges included in the
972 font.
973
974 If you click on a range, the font view will select all characters in that range
975 and scroll to one of them.
976
977 If you double click on a range, the font view will select any characters not
978 defined in the font within that range, and scroll to one of them.
979
980 See Also:
981
982 * :doc:`The char info dialog </ui/dialogs/charinfo>`
983 * :doc:`The get info dialogs </ui/dialogs/getinfo>`
984 * :doc:`The contextual / chaining dialog <contextchain>`