Debian Codegraph @

texmf-dist/doc/fonts/gnu-freefont/notes/features.txt

raw
1 OpenType features in GNU FreeFont
2
3 The OpenType font standard specifies numerous "features", which describe
4 how glyphs should be rendered under certain circumstances.
5
6 Some features, such as ligatures, substitute one glyph (or glyphs) with
7 others. Other features such as kerning adjust the positioning of glyphs.
8
9 A feature may be activated for text of a certain script (such as Cyrillic
10 or Arabic) in a certain language or region (as can be specified in HTML
11 elements with the "lang" attribute), and some are activated only in case
12 other features are not activated.
13
14 The actual rendering of these features is not by the font itself but rather
15 by font rendering software in the operating system or application or printer.
16 As of this writing, feature support is far from perfect in many environments.
17
18 The features are encoded in the font's "lookup tables". Each table has
19 a four-byte name.
20
21 The feature lookup tables used in FreeFont include:
22
23 Substitution (GSUB)
24 ============
25
26 rlig required ligature
27 liga standard ligature
28 hlig historic ligature
29 dlig discretionary ligature
30
31 hist historic form
32 locl localized form
33
34 smcp lowercase to small capitals
35 c2sc captials to small capitals
36
37 frac diagonal fractions
38 zero slashed zero
39 onum oldstyle figures
40
41 ccmp glyph decomposition (multiple replacement)
42 contextual chained substitution
43
44 aalt access all alternates
45 calt contextual alternates
46
47 Arabic
48 ------
49 init initial forms
50 medi medial forms
51 fina final formes
52
53 Indic scripts
54 -------------
55 (these are always applied in exactly the following order)
56 nukt nukta forms
57 akhn akhand
58 rphf reph form
59 blwf below base forms
60 half half form
61 vatu vattu variants
62 pres pre base substitutions
63 abvs above base substitutions
64 blws below base substitutions
65 psts post base substitutions
66 haln halant forms
67
68 Positioning (GPOS)
69 ===========
70
71 kern kerning
72 mark mark-to-base
73 mkmk mark-to-mark
74
75 Indic scripts
76 -------------
77 dist distance (similar to kern)
78 abvm above mark
79 blwm below mark
80
81 Use and Policies
82 ================
83
84 kerning
85 -------
86
87 Kerning is viewed as a delicate adjustment of horizontal positioning of
88 letters based on the relative shapes of adjacent letters.
89
90 The first goal of kerning is to enhance the appearance of coherence in
91 words, by reducing apparent spaces beteen adjacent letters.
92 The second is to make the spacing appear somehow "smooth".
93
94 A few pairs of letters are strongly kerned, for example 'AV'. With very few
95 exceptions, one letter should not visually intrude on the horizontal space of
96 another. (Exceptions might include the hooks on f and y.)
97 For instance, in serifed fonts, the serifs of most letters should have a
98 visible space between them, and should not visually intrude on one another
99 horizontally.
100
101 For most others, the policy is "err on the conservative side".
102 A common mistake is to try to minimize the area between the letters
103 -- this has a poor effect on the appearance of the text.
104
105 After kerning, bulk text should be carefully inspected both in print and on
106 the screen in different resolutions, that the letters appear evenly-spaced,
107 and never crash into one another.
108
109 mark positioning
110 ----------------
111 It is conceptually more direct, and in principle easier, to position marks
112 relative to letters using the various mark positioning lookups.
113 Unfortunately, the implementation of these features has been rather spotty.
114
115 Especially in cases where multiple marks appear on the same base, it can
116 get just too messy to be practical. Unfortunately, often pre-composed
117 components are a necessary fallback.
118
119 $Id: features.txt,v 1.1 2011-07-16 11:24:10 Stevan_White Exp $