| 1 |
Get Info |
| 2 |
======== |
| 3 |
|
| 4 |
In the Outline View the Get Info command can generate one of four different |
| 5 |
dialogs depending on what is selected. If a single thing is selected, and that |
| 6 |
thing is a point then the :ref:`point info <getinfo.Point>` dialog is brought |
| 7 |
up, if it is a reference then the |
| 8 |
:ref:`reference dialog <getinfo.GetReferenceInfo>` is brought up, if it is a |
| 9 |
background image then the :ref:`image dialog <getinfo.Image>` is brought up. If |
| 10 |
it is an anchor point then the :ref:`anchor point <getinfo.Anchors>` dialog is |
| 11 |
brought up. |
| 12 |
|
| 13 |
|
| 14 |
.. _getinfo.Point: |
| 15 |
|
| 16 |
Point Info |
| 17 |
---------- |
| 18 |
|
| 19 |
.. image:: /images/pointinfo.png |
| 20 |
:align: right |
| 21 |
|
| 22 |
This shows information about the current point. The Base position is where the |
| 23 |
point itself is. |
| 24 |
|
| 25 |
The Next CP shows both the location of the next control point, and the offset to |
| 26 |
that point from the base (and whether this setting is the default for that |
| 27 |
point, if this point is the last on an open contour then the [] Default button |
| 28 |
will be grey), underneath the offsets it shows the same information in a |
| 29 |
different format -- as a distance from the point itself, and the angle to it. |
| 30 |
|
| 31 |
The Prev CP does the same for the previous control point. |
| 32 |
|
| 33 |
You may change any of these and the change is reflected in the outline view. |
| 34 |
Your changes are constrained by the point type (for instance with tangent |
| 35 |
points, you may not change the angle fields as these are fixed). |
| 36 |
|
| 37 |
FontForge also shows you the curvature of the two splines on either side of the |
| 38 |
point. In a perfect world these will be equal for curve points and the join will |
| 39 |
appear smooth. It also shows the difference between the two. The curvature is |
| 40 |
the reciprical of the radius of the circle tangent to the curve (a straight line |
| 41 |
has curvature 0 because it is a circle with infinite radius so its reciprical is |
| 42 |
0). For most curves in letters this radius is fairly large when expressed in |
| 43 |
em-units (and its reciprical is correspondingly small). To make it easier to |
| 44 |
read, FontForge scales it by the em-size of the font -- this is equivalent to |
| 45 |
expressing it in units where 1 corresponds to an em (rather than 1000 or 2048). |
| 46 |
|
| 47 |
.. image:: /images/pointinfo-interp.png |
| 48 |
:align: right |
| 49 |
|
| 50 |
You may also change whether a point is a curve, corner or tangent point |
| 51 |
(Caution: Changing from a corner point to a curve point and back to a corner |
| 52 |
point is NOT a no op. It may change the control points) You may move on to the |
| 53 |
next or previous point on the path, or the next/previous point of the current |
| 54 |
contour. If you cancel then all changes to all points are canceled. |
| 55 |
|
| 56 |
The colors of the labels reflect the colors of the items they refer to. The |
| 57 |
point itself will be drawn in red, the previous control point will be drawn in |
| 58 |
magenta and the next control point will be drawn in dull cyan. |
| 59 |
|
| 60 |
When editing truetype interpolated points it is more important to view the |
| 61 |
control points and let the base point continue to be interpolated. The <> Normal |
| 62 |
and <>Interpolated radio buttons control which view is active. |
| 63 |
|
| 64 |
Pressing <> Interpolated may move the point to position it correctly for |
| 65 |
interpolation. |
| 66 |
|
| 67 |
|
| 68 |
.. _getinfo.HintMask: |
| 69 |
|
| 70 |
Hint Mask |
| 71 |
^^^^^^^^^ |
| 72 |
|
| 73 |
.. image:: /images/charwithhintmask.png |
| 74 |
.. image:: /images/hintmaskinfo.png |
| 75 |
|
| 76 |
If you want to control what hints are active at a given point (and at all |
| 77 |
subsequent points until an new hintmask is given) you can use the hint mask |
| 78 |
pane. This provides you with a list of all hints in the current glyph, you |
| 79 |
should select the ones which you want active. |
| 80 |
|
| 81 |
As you select hints, the glyph view will darken those hints so you can see what |
| 82 |
you've selected. |
| 83 |
|
| 84 |
Points with circles drawn around them have hintmasks. |
| 85 |
|
| 86 |
According to Adobe's documentation you should never have two hints which |
| 87 |
conflict active at the same time. FontForge will warn you if you do this. |
| 88 |
Unfortunately there are fonts (even fonts from Adobe) which do not follow this |
| 89 |
rule, so I have made this a warning rather than an error. |
| 90 |
|
| 91 |
Remember to hold the control key down when making disjoint selections. |
| 92 |
|
| 93 |
Sadly the direction in which hintmasks apply is backwards from what you would |
| 94 |
expect (the hintmask applies to this point an all previous points on the |
| 95 |
contour, rather than all subsequent ones). |
| 96 |
|
| 97 |
|
| 98 |
Active Hints |
| 99 |
"""""""""""" |
| 100 |
|
| 101 |
This looks just like the hint mask, except you cannot change anything it in. It |
| 102 |
shows you what hints are currently selected at this point. If a point has a hint |
| 103 |
mask then the two will be identical. |
| 104 |
|
| 105 |
|
| 106 |
.. _getinfo.Spiro: |
| 107 |
|
| 108 |
Spiro Point Info |
| 109 |
---------------- |
| 110 |
|
| 111 |
.. image:: /images/spiropointinfo.png |
| 112 |
:align: right |
| 113 |
|
| 114 |
If you are editing in spiro (clothoid) mode rather than Bezier mode, then there |
| 115 |
are no control points and the get info dialog is much simpler. Just the location |
| 116 |
of the point and the point type. |
| 117 |
|
| 118 |
.. container:: clearer |
| 119 |
|
| 120 |
.. |
| 121 |
|
| 122 |
|
| 123 |
.. _getinfo.Anchors: |
| 124 |
|
| 125 |
Anchor Points Info |
| 126 |
------------------ |
| 127 |
|
| 128 |
.. image:: /images/agetinfo.png |
| 129 |
:align: right |
| 130 |
|
| 131 |
This dialog shows the selected :ref:`anchor point <overview.Anchors>` with the |
| 132 |
anchor class, location, type and (for ligatures) the ligature index. You may |
| 133 |
change any of these attributes (as long as your changes are reasonable). You may |
| 134 |
create new points or delete the current one. As with normal points above you may |
| 135 |
step through all the anchor points in your glyph. |
| 136 |
|
| 137 |
In a truetype font you can force the anchor to track a contour point in the |
| 138 |
truetype glyph. This point can then be manipulated with truetype instructions to |
| 139 |
grid fit it properly with the current rasterization. |
| 140 |
|
| 141 |
Anchor points may also be created with the |
| 142 |
:ref:`Point->Add Anchor <pointmenu.AddAnchor>` command. |
| 143 |
|
| 144 |
.. container:: clearer |
| 145 |
|
| 146 |
.. |
| 147 |
|
| 148 |
|
| 149 |
.. _getinfo.GetReferenceInfo: |
| 150 |
|
| 151 |
Reference Info |
| 152 |
-------------- |
| 153 |
|
| 154 |
.. image:: /images/rgetinfo.png |
| 155 |
:align: right |
| 156 |
|
| 157 |
This dialog shows the name of the selected reference, its encoding in the font |
| 158 |
and its postscript transformation matrix. You may alter the transformation |
| 159 |
matrix if you desire. |
| 160 |
|
| 161 |
.. container:: clearer |
| 162 |
|
| 163 |
.. |
| 164 |
|
| 165 |
The transformation matrix maps points in the glyph being referred to into their |
| 166 |
location in the current glyph: |
| 167 |
|
| 168 |
.. math:: |
| 169 |
|
| 170 |
x_{\mathrm{current}} &= TM_{1,1}\cdot x_{\mathrm{ref}} + TM_{2,1}\cdot y_{\mathrm{ref}} + TM_{3,1} \\ |
| 171 |
y_{\mathrm{current}} &= TM_{1,2}\cdot y_{\mathrm{ref}} + TM_{2,2}\cdot y_{\mathrm{ref}} + TM_{3,2} |
| 172 |
|
| 173 |
The Use My Metrics checkbox is useful in truetype fonts where it forces the |
| 174 |
metrics (width) of a composite glyph (for exampe acute a) is the same as the |
| 175 |
metrics of one of its components (for example a). This is especially important |
| 176 |
in fonts containing instructions that might modify a glyph's width. |
| 177 |
|
| 178 |
The Round To Grid checkbox is also used in truetype hints and indicates that the |
| 179 |
translation should be rounded to the rasterizer's grid before being applied to |
| 180 |
the points of the reference. This means that the grid-fitting done by the |
| 181 |
reference's instructions will still be useful in the composite. |
| 182 |
|
| 183 |
In a truetype font a reference may be positioned by matching two points, one in |
| 184 |
the base character, and one in the reference itself. In the example at right, |
| 185 |
the reference to "acute" will be moved until point 12 in "acute" is at the same |
| 186 |
place as point 33 in the base glyph. The glory of this method is that the |
| 187 |
truetype instructions associated with the glyphs can move these points around to |
| 188 |
an appropriate location for the current pixelsize. |
| 189 |
|
| 190 |
Points in a composite glyph are numbered by counting the points of the first |
| 191 |
component, adding 4 (for the 4 phantom (metric) points), then counting the |
| 192 |
points in the second composite, adding 4, etc. The first composite is the one |
| 193 |
which is drawn first, not the one which is added first. The Base numbering |
| 194 |
scheme is from the full composite, while the reference point is numbered by the |
| 195 |
current reference. The current reference must be drawn after the base point. You |
| 196 |
may use :ref:`Element->Order <elementmenu.Order>` to reorder the references. |
| 197 |
|
| 198 |
(You should probably not set Round To Grid when doing point matching) |
| 199 |
|
| 200 |
The bounding box information is informative only and displays the current |
| 201 |
location and size of the reference. |
| 202 |
|
| 203 |
The [Show] button will open a glyph outline view showing the glyph being |
| 204 |
referred to. |
| 205 |
|
| 206 |
|
| 207 |
.. _getinfo.Image: |
| 208 |
|
| 209 |
Image Info |
| 210 |
---------- |
| 211 |
|
| 212 |
This dialog gives the offset to the lower left corner of the image and the scale |
| 213 |
factors applied to the image. Currently you may not alter anything here, it is |
| 214 |
purely informational. |
| 215 |
|
| 216 |
See Also: |
| 217 |
|
| 218 |
* :doc:`The font info dialog <fontinfo>` |
| 219 |
* :doc:`The glyph info dialog <charinfo>` |