| 1 |
The Hints Menu |
| 2 |
============== |
| 3 |
|
| 4 |
This menu is only present in the outline glyph view and the font view. |
| 5 |
|
| 6 |
.. _hintsmenu.AutoHint: |
| 7 |
|
| 8 |
.. object:: AutoHint |
| 9 |
|
| 10 |
The Auto Hint command causes FontForge to throw away any existing hints for |
| 11 |
the glyph and guess an new ones. In the outline view this operates on the |
| 12 |
current glyph, in the font view it operates on all selected glyphs. |
| 13 |
|
| 14 |
FontForge will do a better job hinting a font if you have previously set the |
| 15 |
BlueValues, StdVW and StdHW fields in |
| 16 |
:ref:`Element->Font Info->PS Private <fontinfo.Private>`. These in turn |
| 17 |
depend on the hints so it is best to autohint the entire font, then set the |
| 18 |
above values, and then autohint the font again. |
| 19 |
|
| 20 |
If you wish to use AutoInstr below you should first AutoHint your font with |
| 21 |
:ref:`File->Preferences->PS Hints->Detect Diagonal Stems <prefs.DetectDiagonalStems>` |
| 22 |
enabled. |
| 23 |
|
| 24 |
.. _hintsmenu.SubstitutionPt: |
| 25 |
|
| 26 |
.. object:: Hint Substitution Pts |
| 27 |
|
| 28 |
In the font view this figures substitution points for all selected glyphs. In |
| 29 |
the outline glyph view, this figures substitution points for the current |
| 30 |
glyph using the current hint set. |
| 31 |
|
| 32 |
.. _hintsmenu.Counter: |
| 33 |
|
| 34 |
.. object:: Auto Counter |
| 35 |
|
| 36 |
Attempt to figure out counter groups for the selected glyphs (font view) or |
| 37 |
the current glyph (outline glyph view). |
| 38 |
|
| 39 |
.. _hintsmenu.DontAutoHint: |
| 40 |
|
| 41 |
.. object:: Don't AutoHint |
| 42 |
|
| 43 |
Tells FontForge not to do any implicit hinting on the selected glyphs. |
| 44 |
(FontForge will normally perform an autohint on a glyph if the glyph's |
| 45 |
contours have changed since it was last hinted and the user has not |
| 46 |
explicitly changed the hints). The user may turn this flag off by invoking |
| 47 |
AutoHint explicitly. |
| 48 |
|
| 49 |
In the outline glyph view, behavior is a bit more complicated. This command |
| 50 |
will toggle the current setting of the "Don't AutoHint" flag. If the flag is |
| 51 |
currently on the menu entry will be checked. |
| 52 |
|
| 53 |
.. _hintsmenu.AutoInstr: |
| 54 |
|
| 55 |
.. object:: AutoInstr |
| 56 |
|
| 57 |
The Auto Instr command is only available in quadratic fonts and is used to |
| 58 |
generate truetype instructions. It is designed to produce instructions based |
| 59 |
on PostScript information, so please insure that all glyphs are correctly |
| 60 |
hinted and that the :ref:`PostScript private dictionary <fontinfo.Private>` |
| 61 |
has been filled in. (I know the instructions aren't used by PostScript, but |
| 62 |
the information needed to generate the instructions is clearly expressed in |
| 63 |
the PostScript data). |
| 64 |
|
| 65 |
If you are using AutoHint to generate hints, please insure that the diagonal |
| 66 |
hint preference item is turned on |
| 67 |
(:ref:`File->Preferences->PS Hints->Detect Diagonal Stems) <prefs.DetectDiagonalStems>` |
| 68 |
|
| 69 |
.. _hintsmenu.EditInstrs: |
| 70 |
|
| 71 |
.. object:: Edit Instructions... |
| 72 |
|
| 73 |
Only available in the outline and font views, and only in quadratic fonts. |
| 74 |
:doc:`This dialog </ui/dialogs/ttfinstrs>` shows any truetype instructions associated |
| 75 |
with this glyph, and allows you to edit them. |
| 76 |
|
| 77 |
Note there are some glyphs for which you cannot write instructions if they |
| 78 |
contain references that cannot be represented in TrueType. If a glyph |
| 79 |
contains a reference that is scaled by a factor of 2 or more, or if a glyph |
| 80 |
contains both a reference and a contour then you may not generate |
| 81 |
instructions for it. You can either: |
| 82 |
|
| 83 |
* Unlink all references |
| 84 |
* (in the case of a glyph with references and contours) Place all the contours |
| 85 |
into a new glyph and make a reference to that glyph. (So the composite glyph |
| 86 |
will now contain only references). |
| 87 |
|
| 88 |
.. _hintsmenu.Debug: |
| 89 |
|
| 90 |
.. object:: Debug... |
| 91 |
|
| 92 |
Only available in the outline view, and only if you have linked with a |
| 93 |
version of freetype with the bytecode interpreter and only in quadratic |
| 94 |
fonts. This allows you to |
| 95 |
:ref:`debug truetype programs <charview.Debugging>`. |
| 96 |
|
| 97 |
.. _hintsmenu.Editfpgm: |
| 98 |
|
| 99 |
.. object:: Edit fpgm... |
| 100 |
|
| 101 |
Only available in the font view, and only in quadratic fonts. |
| 102 |
:doc:`This dialog </ui/dialogs/ttfinstrs>` shows any truetype instructions in the 'fpgm' |
| 103 |
table, and allows you to edit them. |
| 104 |
|
| 105 |
.. _hintsmenu.Editprep: |
| 106 |
|
| 107 |
.. object:: Edit prep... |
| 108 |
|
| 109 |
Only available in the font view, and only in quadratic fonts. |
| 110 |
:doc:`This dialog </ui/dialogs/ttfinstrs>` shows any truetype instructions in the 'prep' |
| 111 |
table, and allows you to edit them. |
| 112 |
|
| 113 |
.. _hintsmenu.Editcvt: |
| 114 |
|
| 115 |
.. object:: Edit cvt... |
| 116 |
|
| 117 |
Only available in the font view, and only in quadratic fonts. |
| 118 |
:ref:`This dialog <ttfinstrs.cvt>` shows the initial values in the 'cvt ' |
| 119 |
table, and allows you to edit them. You can also add a brief comment to |
| 120 |
describe what each entry is used for. |
| 121 |
|
| 122 |
.. _hintsmenu.Deltas: |
| 123 |
|
| 124 |
.. object:: Suggest Deltas... |
| 125 |
|
| 126 |
Brings up a :doc:`dialog </techref/SuggestDeltas>` which will help you search for |
| 127 |
places where truetype delta instructions might be useful. |
| 128 |
|
| 129 |
.. _hintsmenu.RmTables: |
| 130 |
|
| 131 |
.. object:: Remove Instr Tables |
| 132 |
|
| 133 |
If the font contains a 'fpgm', 'prep', 'cvt ' or 'maxp' table, then this |
| 134 |
command will remove them. This should be done in conjunction with |
| 135 |
:doc:`Hints->Clear Instructions </ui/menus/hintsmenu>`, otherwise any remaining |
| 136 |
instructed glyphs will fail to work. |
| 137 |
|
| 138 |
.. _hintsmenu.ClearHints: |
| 139 |
|
| 140 |
.. object:: Clear Hints |
| 141 |
|
| 142 |
Clears all hints in all selected glyphs. |
| 143 |
|
| 144 |
.. _hintsmenu.ClearInstrs: |
| 145 |
|
| 146 |
.. object:: Clear Instructions |
| 147 |
|
| 148 |
Clears any truetype instructions associated with the selected glyphs. |
| 149 |
|
| 150 |
.. _hintsmenu.Clear: |
| 151 |
|
| 152 |
.. object:: Clear HStem |
| 153 |
|
| 154 |
Removes all Horizontal Stem hints from the current glyph. |
| 155 |
|
| 156 |
.. _hintsmenu.ClearV: |
| 157 |
|
| 158 |
.. object:: Clear VStem |
| 159 |
|
| 160 |
Removes all Vertical Stem hints. |
| 161 |
|
| 162 |
.. _hintsmenu.ClearD: |
| 163 |
|
| 164 |
.. object:: Clear DStem |
| 165 |
|
| 166 |
Removes all Diagonal Stem hints. |
| 167 |
|
| 168 |
.. _hintsmenu.HHint: |
| 169 |
|
| 170 |
.. object:: Add HHint |
| 171 |
|
| 172 |
If there are two points selected (exactly two) and if they have different y |
| 173 |
positions, then this will create a Horizontal Stem Hint starting at the lower |
| 174 |
one of the two going up to the upper one. |
| 175 |
|
| 176 |
.. _hintsmenu.VHint: |
| 177 |
|
| 178 |
.. object:: Add VHint |
| 179 |
|
| 180 |
If there are two points selected (exactly two) and if they have different x |
| 181 |
positions, then this will create a Vertical Stem Hint starting at the |
| 182 |
leftmost one of the two going right to the rightmost one. |
| 183 |
|
| 184 |
.. _hintsmenu.DHint: |
| 185 |
|
| 186 |
.. object:: Add DHint |
| 187 |
|
| 188 |
If there are exactly 4 points selected and they can describe a diagonal stem |
| 189 |
hint then this menu item will be active and will add it. |
| 190 |
|
| 191 |
.. _hintsmenu.Create: |
| 192 |
|
| 193 |
.. object:: Create HHint |
| 194 |
|
| 195 |
Brings up a dialog allowing you to specify exactly where and how wide you |
| 196 |
want a Horizontal Stem Hint. |
| 197 |
|
| 198 |
.. _hintsmenu.CreateV: |
| 199 |
|
| 200 |
.. object:: Create VHint |
| 201 |
|
| 202 |
Brings up a dialog allowing you to specify exactly where and how wide you |
| 203 |
want a Vertical Stem Hint. |
| 204 |
|
| 205 |
.. _hintsmenu.Review: |
| 206 |
|
| 207 |
.. object:: Review Hints |
| 208 |
|
| 209 |
.. image:: /images/ReviewHints.png |
| 210 |
:align: right |
| 211 |
|
| 212 |
Brings up a dialog allowing you to examine (and modify) all |
| 213 |
horizontal/vertical stem hints (not diagonal). The currently active hint is |
| 214 |
picked out in either dark blue or dark green. |
| 215 |
|
| 216 |
|
| 217 |
.. _hintsmenu.Histogram: |
| 218 |
|
| 219 |
The Histograms SubMenu |
| 220 |
---------------------- |
| 221 |
|
| 222 |
.. _hintsmenu.HStem-Hist: |
| 223 |
|
| 224 |
.. object:: HStem |
| 225 |
|
| 226 |
Brings up a :doc:`dialog </ui/dialogs/histogram>` displaying a histogram of the |
| 227 |
horizontal stem widths of all selected glyphs. |
| 228 |
|
| 229 |
.. _hintsmenu.VStem-Hist: |
| 230 |
|
| 231 |
.. object:: VStem |
| 232 |
|
| 233 |
Brings up a :doc:`dialog </ui/dialogs/histogram>` displaying a histogram of the vertical |
| 234 |
stem widths of all selected glyphs. |
| 235 |
|
| 236 |
.. _hintsmenu.Blue-Hist: |
| 237 |
|
| 238 |
.. object:: BlueValues |
| 239 |
|
| 240 |
Brings up a :doc:`dialog </ui/dialogs/histogram>` displaying a histogram of the vertical |
| 241 |
maxima and minima of all selected glyphs. |
| 242 |
|