| 1 |
The Anchor Control dialog |
| 2 |
========================= |
| 3 |
|
| 4 |
.. figure:: /images/anchorcontrol-base.png |
| 5 |
|
| 6 |
You invoke this dialog from the outline glyph view by selecting an anchor point |
| 7 |
in that glyph and selecting :menuselection:`Metrics --> Anchor Control`. In the |
| 8 |
example at right, the arabic letter Hamza was chosen. In the first pane of the |
| 9 |
dialog are various controls, next to that is a pane displaying the letter Hamza |
| 10 |
and showing the anchor point relative to that letter. You may move the anchor |
| 11 |
point around to position it as you wish. |
| 12 |
|
| 13 |
After this there is a scrollable region containing multiple sub-panes. Each |
| 14 |
sub-pane contains one combination of Hamza and a mark that fits on top of it. If |
| 15 |
you click in one of these sub-panes, FontForge changes the dialog to look at the |
| 16 |
mark you selected. |
| 17 |
|
| 18 |
.. image:: /images/anchorcontrol-mark.png |
| 19 |
:align: left |
| 20 |
|
| 21 |
Here we clicked on the Fathatan mark, and we now see all the base letters that |
| 22 |
fit underneath it. This dialog now gives you control of the anchor point in the |
| 23 |
Fathatan mark. |
| 24 |
|
| 25 |
At the top of the control region is a pull down list containing the names of all |
| 26 |
glyphs in this anchor class. You may look at the combinations based on any of |
| 27 |
them. You may also use the Page Up and Page Down keys to cycle through this |
| 28 |
list. |
| 29 |
|
| 30 |
You may control the pixelsize used to display the combinations. Sometimes it is |
| 31 |
important to get a close up view of a small pixelsize (which may be quite |
| 32 |
different from looking at a larger pixelsize) and the Magnification field allows |
| 33 |
for this. |
| 34 |
|
| 35 |
You can also enter the anchor point's location by manual typing in the X,Y |
| 36 |
textfields at right. |
| 37 |
|
| 38 |
|
| 39 |
.. _anchorcontrol.DeviceTable: |
| 40 |
|
| 41 |
Device Tables |
| 42 |
------------- |
| 43 |
|
| 44 |
You can also create something called a "Device Table", a name which is not very |
| 45 |
informative. When a font is rasterized at small pixel sizes rounding errors |
| 46 |
become important, and this is particularly true of mark positioning, where there |
| 47 |
are four things that get rounded: The locations of the each glyph's outlines (to |
| 48 |
fit them to a pixel grid), and the locations of the anchor points of each glyph. |
| 49 |
The result is that something which looks perfectly positioned at 150pixels may |
| 50 |
be either too close or too far apart at 12pixels. |
| 51 |
|
| 52 |
You could adjust the anchor point's location slightly until it looked right at |
| 53 |
12pixels, of course, but that might break it at 14 pixels. So OpenType has the |
| 54 |
concept of a Device Table which allows you to add small corrections at |
| 55 |
particular point sizes. Simply set the Size to a small, but common, value (say |
| 56 |
10-24) and examine the positioning. If the results are ugly then type a value |
| 57 |
into the appropriate ``Cor``\ (rection) field, and this will change the spacing by |
| 58 |
that many pixels at the given display size (and no other). |
| 59 |
|
| 60 |
Note it may sometimes be better to define a correction in the matching glyph |
| 61 |
rather than the current one. Corrections will apply to all glyphs matched with |
| 62 |
the current one. |