| 1 |
.. _charinfo.Character: |
| 2 |
|
| 3 |
Glyph Info |
| 4 |
========== |
| 5 |
|
| 6 |
.. figure:: /images/charinfo.png |
| 7 |
|
| 8 |
|
| 9 |
Encoding and Unicode data |
| 10 |
------------------------- |
| 11 |
|
| 12 |
This dialog allows you to set the name and unicode encoding of a given glyph. If |
| 13 |
you know the name of the glyph then FontForge can tell you the encoding (if you |
| 14 |
press Set From Name), similarly if you know the encoding then FontForge can tell |
| 15 |
you the name. |
| 16 |
|
| 17 |
The name field contains a pull down list with (possibly) several synonyms for |
| 18 |
the name of this unicode code point. |
| 19 |
|
| 20 |
It is possible to have one glyph assigned to two unicode code points (This is |
| 21 |
not recommended, but it is possible). If you wish to do this you may enter |
| 22 |
additional unicode values in the "``Alternate Unicode``" area (set the variation |
| 23 |
selector to 0). |
| 24 |
|
| 25 |
Adobe has proposed an extension to OpenType to support unicode variation |
| 26 |
selectors in the 'cmap' table (traditionally they have been done as ligatures in |
| 27 |
the 'GSUB' table). If you wish to take advantage of this mechanism you can also |
| 28 |
use the "``Alternate Unicode/Variation``" section to add 'cmap' data. If you |
| 29 |
wish the current glyph to be the default variation for this font (the one that |
| 30 |
appears in the unicode encoding subtable), then set the ``Unicode Value`` field |
| 31 |
above to the desired code point and add an entry with the same code point and |
| 32 |
the appropriate variation selector (as in the example above). |
| 33 |
|
| 34 |
However if this glyph is not going to be the default glyph for this code point, |
| 35 |
then set the ``Unicode Value`` field to -1, while entering the appropriate code |
| 36 |
point and variation selector below. |
| 37 |
|
| 38 |
The Glyph class field is for the opentype 'GDEF' table. You can usually leave it |
| 39 |
set to automatic. FontForge will then figure out the class, and whether it |
| 40 |
should be output into GDEF. You can see what FontForge does in |
| 41 |
:doc:`View->Show ATT </ui/dialogs/showatt>`. |
| 42 |
|
| 43 |
The ``[] Mark for Unlink, Remove Overlap Before Save`` checkbox sounds absurdly |
| 44 |
complicated. Consider the glyphs Aring, Ccedilla, and Oogonek. In traditional |
| 45 |
design the accent of each of these glyphs will overlap the base letter. |
| 46 |
Unfortunately neither TrueType nor PostScript allows contours to intersect. You |
| 47 |
can solve this problem by unlinking the references that make up the glyph and |
| 48 |
then running :menuselection:`Element --> Remove Overlap`. But that has problems |
| 49 |
of its own... now when you change the base letter (or the accent) the change |
| 50 |
will no longer be reflected in the composite glyph. This little checkbox neatly |
| 51 |
solves that problem. If the glyph is composed of references which overlap, and |
| 52 |
you wish to retain the references, but you wish it to be output without an |
| 53 |
overlap, simply check this box. Then when it comes time to save the font, ff |
| 54 |
will perform the unlink and then run remove overlap, save the font, and then |
| 55 |
restore the glyph to its original condition. |
| 56 |
|
| 57 |
.. _charinfo.comment: |
| 58 |
|
| 59 |
Glyph Comment |
| 60 |
------------- |
| 61 |
|
| 62 |
.. image:: /images/charinfo-comment.png |
| 63 |
:align: right |
| 64 |
|
| 65 |
You can assign an arbitrary (unicode) comment to the glyph. Simply type any text |
| 66 |
into this field. The comment is for your use, it will not go into any generated |
| 67 |
fonts. You may also assign a color to a glyph to make it stand out in the font |
| 68 |
view. |
| 69 |
|
| 70 |
There are 6 separate sub-dialogs to help you edit the :doc:`lookups </ui/dialogs/lookups>` |
| 71 |
of the :doc:`GPOS and GSUB </techref/gposgsub>` tables (some of these data can be |
| 72 |
converted into various of Apple's AAT tables, particularly 'morx'). Lookups and |
| 73 |
their subtables are described in some detail :ref:`here <overview.Lookups>`, and |
| 74 |
may be manipulated and created with the |
| 75 |
:ref:`Element->Font Info <fontinfo.Lookups>` command. |
| 76 |
|
| 77 |
.. _charinfo.position: |
| 78 |
|
| 79 |
Simple Glyph Positioning |
| 80 |
------------------------ |
| 81 |
|
| 82 |
The first of sub-dialogs is the alternate position pane which allows you to |
| 83 |
associate certain modifications to a glyph's metrics with a feature in the GPOS |
| 84 |
table. |
| 85 |
|
| 86 |
.. image:: /images/charinfo-pos.png |
| 87 |
:align: right |
| 88 |
|
| 89 |
In the example at right the first lookup subtable (which is associated with the |
| 90 |
Scientific Inferiors feature) will move the y position of the glyph down by 900 |
| 91 |
em-units, while the second subtable will move it down by 560 em-units. |
| 92 |
Positioning subtables can also move glyphs horizontally and can adjust the |
| 93 |
horizontal and vertical advances of the glyph. You can also add device tables |
| 94 |
for pixel level corrections to these adjustments. Most subtables will use only a |
| 95 |
few of the possibilities open to them and FontForge generally hides unused |
| 96 |
columns -- but if you want to see them just turn off [*] Hide Unused Columns. |
| 97 |
|
| 98 |
A new entry in the list may be created by pressing the <New> button and a popup |
| 99 |
menu will appear with all possible lookup subtables you could add data to. |
| 100 |
|
| 101 |
.. _charinfo.pairwise: |
| 102 |
|
| 103 |
Pair-wise Glyph Positioning (kerning) (GPOS) |
| 104 |
-------------------------------------------- |
| 105 |
|
| 106 |
The pairwise positioning sub-dialog allows you to change the positions of two |
| 107 |
glyphs when they occur next to one another -- better know as kerning. I think |
| 108 |
the :doc:`Metrics View </ui/mainviews/metricsview>` provides a better place to do kerning, but |
| 109 |
you can do it here if you wish. |
| 110 |
|
| 111 |
.. _charinfo.substitution: |
| 112 |
|
| 113 |
Glyph Simple Substitution (GSUB, morx) |
| 114 |
-------------------------------------- |
| 115 |
|
| 116 |
.. image:: /images/charinfo-subs.png |
| 117 |
:align: right |
| 118 |
|
| 119 |
A simple substitution replaces one glyph with another. Here the glyph "one" has |
| 120 |
a series of substitutions to various glyphs depending on what lookup subtable is |
| 121 |
invoked. |
| 122 |
|
| 123 |
.. container:: clearer |
| 124 |
|
| 125 |
.. |
| 126 |
|
| 127 |
.. _charinfo.multiple: |
| 128 |
|
| 129 |
Glyph Multiple & Alternate Substitution |
| 130 |
--------------------------------------- |
| 131 |
|
| 132 |
.. epigraph:: |
| 133 |
|
| 134 |
| "Hello Rabbit," he said, "is that you?" |
| 135 |
| "Let's pretend it isn't," said Rabbit, "and see what happens." |
| 136 |
|
| 137 |
-- Winnie-The-Pooh -- A. A. Milne, 1926 |
| 138 |
|
| 139 |
The multiple and alternate substitution sub-dialogs are very similar to this one |
| 140 |
except that they can take multiple glyph names. In a multiple substitution |
| 141 |
subtable each glyph is replaced by several other glyphs (sort of the reverse of |
| 142 |
a ligature), while in the alternate substitution sub-dialog each glyph is to be |
| 143 |
replaced by exactly one glyph from a list and the user is to be given a choice |
| 144 |
as to which glyph is to be chosen. |
| 145 |
|
| 146 |
.. _charinfo.ligature: |
| 147 |
|
| 148 |
Glyph Ligature Substitution |
| 149 |
--------------------------- |
| 150 |
|
| 151 |
.. image:: /images/charinfo-lig.png |
| 152 |
:align: right |
| 153 |
|
| 154 |
The ligature pane allows you to tell FontForge that the current glyph is a |
| 155 |
ligature composed of several other glyphs. FontForge will sometimes be able to |
| 156 |
fill this in with the right default value, but not always. The value should be a |
| 157 |
list of postscript glyph names separated by spaces. If a glyph may be viewed as |
| 158 |
two different ligatures then they may both be specified in different lines. For |
| 159 |
example "ffi" may be viewed as a ligature of "f" "f" and "i" or of "ff" and "i". |
| 160 |
|
| 161 |
.. _charinfo.CounterMasks: |
| 162 |
|
| 163 |
Counter Masks |
| 164 |
------------- |
| 165 |
|
| 166 |
.. image:: /images/newcountermask.png |
| 167 |
.. image:: /images/charinfo-counters.png |
| 168 |
|
| 169 |
In complicated Asian glyphs, postscript has a mechanism for controlling the |
| 170 |
width of counters between stems. These are called counter mask hints. |
| 171 |
|
| 172 |
In Latin, Cyrillic, Greek fonts only glyphs like "m" are allowed to have |
| 173 |
counter masks, and only in very controlled conditions. See the description of |
| 174 |
:ref:`counter masks <hinting.Counter>`. |
| 175 |
|
| 176 |
.. _charinfo.components: |
| 177 |
|
| 178 |
Components |
| 179 |
---------- |
| 180 |
|
| 181 |
.. image:: /images/charinfo-counters.png |
| 182 |
:align: right |
| 183 |
|
| 184 |
Some glyphs (ligatures, accented glyphs, Hangul syllables, etc.) are built up |
| 185 |
out of other glyphs (at least according to unicode). This pane of the dlg shows |
| 186 |
the components that Unicode says make up the current glyph, if those components |
| 187 |
are in the font then you can use FontForge's |
| 188 |
:menuselection:`Element --> Build --> Build Accented` or |
| 189 |
:menuselection:`Element --> Build --> Build Composite` commands to create the |
| 190 |
current glyph. The information displayed here is informative only, you may not |
| 191 |
change this field directly (it changes when you change the unicode value or |
| 192 |
glyph name associated with this glyph). |
| 193 |
|
| 194 |
|
| 195 |
.. container:: clearer |
| 196 |
|
| 197 |
.. |
| 198 |
|
| 199 |
.. _charinfo.TeX: |
| 200 |
|
| 201 |
TeX & Math |
| 202 |
---------- |
| 203 |
|
| 204 |
.. figure:: /images/charinfo-tex.png |
| 205 |
|
| 206 |
The TeX pane allows you to specify glyph specific information used in TeX tmf |
| 207 |
files. The height and depth fields are often the same as the glyph's bounding |
| 208 |
box (if you don't fill these in that's what fontforge will use by default), but |
| 209 |
they should be corrected for optical distortion, so in glyphs like "o" these |
| 210 |
fields should be clipped to the x-height and baseline (ff will attempt to do |
| 211 |
this when you press ``[Guess]``). |
| 212 |
|
| 213 |
The Italic correction is used by both TeX and the new OpenType |
| 214 |
:ref:`MATH <math.Italic>` table. In the MATH table you may also specify a device |
| 215 |
table to correct rounding errors at small pixel sizes. |
| 216 |
|
| 217 |
The Top Accent Position is another concept from the |
| 218 |
:ref:`MATH table <math.TopAccent>` and provides a horizontal position over which |
| 219 |
to position math accents (vertical positioning is done somewhere else). |
| 220 |
|
| 221 |
For extremely tall glyphs the normal mechanisms for positioning superscripts are |
| 222 |
inappropriate and the ``[] Is Extended Shape`` checkbox alerts the typesetter to |
| 223 |
this fact. |
| 224 |
|
| 225 |
The [Math Kerning] button brings up the |
| 226 |
:ref:`Math Kerning dialog <math.MathKern>` which gives you fine control over the |
| 227 |
placement of subscripts and superscripts near the glyph. |
| 228 |
|
| 229 |
|
| 230 |
.. _charinfo.Variants: |
| 231 |
|
| 232 |
Variants |
| 233 |
-------- |
| 234 |
|
| 235 |
.. figure:: /images/charinfo-variants.png |
| 236 |
|
| 237 |
There are two panes for variants, one for glyphs that get longer horizontally |
| 238 |
and one for glyphs that get longer vertically. |
| 239 |
|
| 240 |
In mathematical typesetting the size of a parenthesis will depend on the vertical |
| 241 |
size of the formula within that parenthesis. As formulae can be arbetarily |
| 242 |
complex they may be arbetarily tall, so there needs to be a way of making |
| 243 |
arbetarily big parentheses. This pane provides two mechanisms. |
| 244 |
|
| 245 |
At the top you may specify a list of prebuilt glyphs each a little bigger than |
| 246 |
the one before. |
| 247 |
|
| 248 |
Underneath you may specify a way of building really big parentheses by combining |
| 249 |
several component glyphs. See the description of this in the |
| 250 |
:ref:`MATH Info dialog <math.GlyphConstruction>` for more details. |
| 251 |
|
| 252 |
|
| 253 |
.. _charinfo.TileSize: |
| 254 |
|
| 255 |
Tile Size |
| 256 |
--------- |
| 257 |
|
| 258 |
.. image:: /images/charinfo-tilesize.png |
| 259 |
:align: right |
| 260 |
|
| 261 |
This only applies when editing type3 fonts. Even then it is only meaningful if |
| 262 |
the current glyph is used as a :ref:`pattern <multilayer.Patterns>` in some |
| 263 |
other glyph. |
| 264 |
|
| 265 |
When a glyph is used as a pattern, the size of the pattern tile defaults to the |
| 266 |
bounding box of the glyph used. This means there will be no whitespace around |
| 267 |
the tile. Sometimes that is desirable (if the tiles are to looks as though they |
| 268 |
touch), sometimes it is not. This provides control over the whitespace that |
| 269 |
surrounds the drawn region of the tile. |
| 270 |
|
| 271 |
You can specify that you want a constant margin of white space around all edges |
| 272 |
of the tile, or you can specify explicitly the coordinates of the tile. |
| 273 |
|
| 274 |
The Next and Prev buttons allow you to move from one glyph to the next (if, for |
| 275 |
example, you need to enter encodings for a range of glyphs). |
| 276 |
|
| 277 |
The Cancel button now cancels all changes made with this instance of the dialog. |
| 278 |
|
| 279 |
See Also: |
| 280 |
|
| 281 |
* :doc:`The font info dialog </ui/dialogs/fontinfo>` |
| 282 |
* :doc:`The get info dialogs </ui/dialogs/getinfo>` |
| 283 |
* :doc:`The MATH info dialog </ui/dialogs/math>` |