| 1 |
The Element Menu |
| 2 |
================ |
| 3 |
|
| 4 |
There are also two menu entries which are not part of the default build but |
| 5 |
which may be configured by modifying ``configure-fontforge.h`` before compiling |
| 6 |
FontForge. |
| 7 |
|
| 8 |
* :ref:`Tile Path <elementmenu.TilePath>` |
| 9 |
* :ref:`Non Linear Transform... <elementmenu.NonLinear>` |
| 10 |
|
| 11 |
.. _elementmenu.Font: |
| 12 |
|
| 13 |
.. object:: Font Info |
| 14 |
|
| 15 |
In all views this brings up the :doc:`Font Info dialog </ui/dialogs/fontinfo>`. |
| 16 |
|
| 17 |
CID keyed fonts can set information on the CID font as a whole (rather than |
| 18 |
just the current sub-font, which is what this command does) from |
| 19 |
:ref:`CID->CID Font Info <cidmenu.FontInfo>`. |
| 20 |
|
| 21 |
.. _elementmenu.CharInfo: |
| 22 |
|
| 23 |
.. object:: Glyph Info |
| 24 |
|
| 25 |
In the all views this brings up the |
| 26 |
:ref:`Glyph Info dialog <charinfo.Character>`. |
| 27 |
|
| 28 |
.. _elementmenu.MATH: |
| 29 |
|
| 30 |
.. object:: MATH Info... |
| 31 |
|
| 32 |
Brings up the :doc:`MATH Info dialog </ui/dialogs/math>`. |
| 33 |
|
| 34 |
.. _elementmenu.BDF-Info: |
| 35 |
|
| 36 |
.. object:: BDF Info |
| 37 |
|
| 38 |
If you have bitmaps in your font, then in the font view or bitmap view this |
| 39 |
command will bring up the :doc:`BDF Info dialog. </ui/dialogs/bdfinfo>` |
| 40 |
|
| 41 |
.. _elementmenu.HBase: |
| 42 |
|
| 43 |
.. object:: Horizontal Baselines... |
| 44 |
|
| 45 |
This :doc:`dialog </ui/dialogs/baseline>` gives you control over the OpenType 'BASE' |
| 46 |
table which allows you to specify different baselines for different scripts, |
| 47 |
and how to align those baselines with each other. It also provides fine |
| 48 |
control over the inter-baseline spacing (the line height). |
| 49 |
|
| 50 |
.. _elementmenu.VBase: |
| 51 |
|
| 52 |
.. object:: Vertical Baselines... |
| 53 |
|
| 54 |
This :doc:`dialog </ui/dialogs/baseline>` gives you control over the OpenType 'BASE' |
| 55 |
table which allows you to specify different baselines for different scripts, |
| 56 |
and how to align those baselines with each other. It also provides fine |
| 57 |
control over the inter-baseline spacing (the column width). |
| 58 |
|
| 59 |
.. _elementmenu.Justify: |
| 60 |
|
| 61 |
.. object:: Justification Information... |
| 62 |
|
| 63 |
This :doc:`dialog </ui/dialogs/justify>` allows you to examine and provide the |
| 64 |
information needed for the OpenType JSTF table -- information which helps |
| 65 |
layout engines do text justification. |
| 66 |
|
| 67 |
.. _elementmenu.Info: |
| 68 |
|
| 69 |
.. object:: Get Info |
| 70 |
|
| 71 |
In the outline view this brings up |
| 72 |
:doc:`one of four different dialogs </ui/dialogs/getinfo>` (Point Info, Image Info, |
| 73 |
Reference Info, Anchor Point Info) depending on what is selected. |
| 74 |
|
| 75 |
.. _elementmenu.Dependents: |
| 76 |
|
| 77 |
.. object:: Show Dependencies |
| 78 |
|
| 79 |
.. _elementmenu.Dependencies: |
| 80 |
|
| 81 |
.. object:: References... |
| 82 |
|
| 83 |
This dialog is not available in the bitmap view. It shows you what glyphs |
| 84 |
contain a reference to the current glyph. You can open a window looking at |
| 85 |
any of the dependent glyphs by selecting that glyph and pressing the |
| 86 |
[Show] button. |
| 87 |
|
| 88 |
.. _elementmenu.DepSubs: |
| 89 |
|
| 90 |
.. object:: Substitutions... |
| 91 |
|
| 92 |
Show any glyphs that have substitutions (ligatures, multiple subs, etc.) |
| 93 |
which depend on the current glyph. So if you select "i", you might see |
| 94 |
that "fi" depended on it as a ligature, and if you select "A.swash" you |
| 95 |
might see that "A" depended on it as a 'swsh' alternate subs. |
| 96 |
|
| 97 |
.. _elementmenu.MassRename: |
| 98 |
|
| 99 |
.. object:: Mass Glyph Rename... |
| 100 |
|
| 101 |
.. image:: /images/MassRename.png |
| 102 |
:align: right |
| 103 |
|
| 104 |
This allows you to rename a bunch of selected glyphs. It can be used in two |
| 105 |
ways, either: |
| 106 |
|
| 107 |
* You want to rename all the selected glyphs by adding a suffix to their names |
| 108 |
(this might be useful if you are working with a small caps Type1 font that |
| 109 |
you wanted to convert to an otf font, where the old convention was just to |
| 110 |
name the glyphs as "a", "b" and so forth rather than "a.sc", "b.sc", etc.). |
| 111 |
* Or you can select a block of glyphs, and specify another glyph somewhere in |
| 112 |
the encoding, then the selected glyphs would get be named by appending the |
| 113 |
suffix to the sequence of glyphs starting with the one identified in the |
| 114 |
dialog. (This might be useful if you wanted to add a small caps collection to |
| 115 |
an existing font). In this case you may also specify a lookup subtable so |
| 116 |
that the base glyphs would get substituted by the appropriate renamed glyphs |
| 117 |
when that subtable was activated (this can't be done in the previous case, |
| 118 |
because there are no longer any base glyphs) |
| 119 |
|
| 120 |
.. _elementmenu.Problems: |
| 121 |
|
| 122 |
.. object:: Find Problems... |
| 123 |
|
| 124 |
This command is not present in the bitmap view. It will search for several |
| 125 |
common problems. In the glyph view it will select anything that needs to be |
| 126 |
fixed, in the font view it will check all selected glyphs and if any have |
| 127 |
problems will open them and select the problems. It will post a message |
| 128 |
telling you of each problem found. It brings up the |
| 129 |
:doc:`Find Problem </ui/dialogs/problems>` dialog to let you choose what problems to look |
| 130 |
for. |
| 131 |
|
| 132 |
.. _elementmenu.Validate: |
| 133 |
|
| 134 |
.. object:: Validate... |
| 135 |
|
| 136 |
Rather similar to Find Problems, but works with a much smaller set of things |
| 137 |
which are definitely errors, and provides an overview of the problems found |
| 138 |
in all glyphs of the font. See the :doc:`validation page </ui/dialogs/validation>` for |
| 139 |
more info. |
| 140 |
|
| 141 |
.. _elementmenu.Bitmaps: |
| 142 |
|
| 143 |
.. object:: Bitmap Strikes Available... |
| 144 |
|
| 145 |
This brings up a list of pixel sizes for bitmap fonts. |
| 146 |
|
| 147 |
.. image:: /images/bitmapsavail.png |
| 148 |
:align: right |
| 149 |
|
| 150 |
If you have bitmap fonts this will show their pixel sizes. If you remove a |
| 151 |
size that is in the list then that font will be deleted from the sfd file. If |
| 152 |
you add a size then that size font will be created and stored in the sfd |
| 153 |
file. |
| 154 |
|
| 155 |
FontForge deals in pixel sizes, not point sizes. The conversion between |
| 156 |
pixels and points differs on different systems and indeed on different |
| 157 |
screens. A typographic point is 1/72 of an inch, a pixel is however big a |
| 158 |
pixel happens to be on your screen. Usually pixels range from about 1/72 of |
| 159 |
an inch to about 1/144 of an inch. |
| 160 |
|
| 161 |
.. list-table:: Some conversions between points and pixels |
| 162 |
:header-rows: 1 |
| 163 |
:stub-columns: 1 |
| 164 |
|
| 165 |
* - Screen Resolution |
| 166 |
|
| 167 |
Point Size |
| 168 |
- 72dpi |
| 169 |
|
| 170 |
Mac |
| 171 |
- 75dpi |
| 172 |
|
| 173 |
X |
| 174 |
- 96dpi |
| 175 |
|
| 176 |
Win |
| 177 |
- 100dpi |
| 178 |
|
| 179 |
X |
| 180 |
- 120dpi |
| 181 |
|
| 182 |
Win |
| 183 |
* - 10pt |
| 184 |
- 10 |
| 185 |
- 10 |
| 186 |
- 13 |
| 187 |
- 14 |
| 188 |
- 17 |
| 189 |
* - 12pt |
| 190 |
- 12 |
| 191 |
- 12~13 |
| 192 |
- 16 |
| 193 |
- 17 |
| 194 |
- 20 |
| 195 |
* - 18pt |
| 196 |
- 18 |
| 197 |
- 19 |
| 198 |
- 24 |
| 199 |
- 25 |
| 200 |
- 30 |
| 201 |
* - 24pt |
| 202 |
- 24 |
| 203 |
- 25 |
| 204 |
- 32 |
| 205 |
- 33 |
| 206 |
- 40 |
| 207 |
|
| 208 |
Most modern monitors report their resolution to the OS. This dialog provides |
| 209 |
the conversion between pixel sizes and point sizes at your resolution, and |
| 210 |
for the typical 96 PPI monitor. |
| 211 |
|
| 212 |
Normally the new glyphs are created by rasterizing the outline font. |
| 213 |
FontForge uses the FreeType rasterizer to generate bitmaps. If you have no |
| 214 |
outline font then the new glyphs will be created by scaling the (bitmap) |
| 215 |
font displayed in the font view. |
| 216 |
|
| 217 |
If you want to generate a blank strike (one containing no glyphs) then turn |
| 218 |
off the ``[] Create Rasterized Strikes`` checkbox. |
| 219 |
|
| 220 |
In CID keyed fonts there will not be a set of bitmaps for each sub font, |
| 221 |
instead the entire complex of sub-fonts share bitmaps. |
| 222 |
|
| 223 |
.. image:: /images/greymapsavail.png |
| 224 |
:align: right |
| 225 |
|
| 226 |
FontForge also supports anti-aliased bitmap fonts, and you can use this |
| 227 |
dialog to generate them. If you want to generate a 12 point anti-aliased font |
| 228 |
with 8 bits per pixel you would type 12@8 into the dialog above. FontForge |
| 229 |
supports 1, 2, 4 and 8 bit per pixel fonts (a 1 bit per pixel font is a |
| 230 |
standard bitmap, the others are greymaps). |
| 231 |
|
| 232 |
(New greymaps can not be created by scaling old greymaps, if you wish to |
| 233 |
generate a greymap font, you must have an outline font). |
| 234 |
|
| 235 |
.. _elementmenu.Regenerate: |
| 236 |
|
| 237 |
.. object:: Regenerate Bitmap Glyphs... |
| 238 |
|
| 239 |
If you have changed the outline that a bitmap is based one then you should |
| 240 |
(at some point) look into changing the bitmap too. This command allows you to |
| 241 |
regenerate a subset of the glyphs in a given bitmap font. In the font view |
| 242 |
you can regenerate all selected glyphs, while in the bitmap and outline views |
| 243 |
you can regenerate the current glyph. You can pick what pixel sizes should be |
| 244 |
regenerated too (unlike the above command, removing a bitmap size from the |
| 245 |
regenerate list will not delete it). |
| 246 |
|
| 247 |
As before, if you wish to change a greymap you should refer to it by |
| 248 |
<pixel-size>@<bits-per-pixel>. |
| 249 |
|
| 250 |
.. _elementmenu.RemoveBitmaps: |
| 251 |
|
| 252 |
.. object:: Remove Bitmap Glyphs... |
| 253 |
|
| 254 |
This command will remove one or several bitmap glyphs from a strike (while |
| 255 |
leaving the strike otherwise intact). The dialog is similar to the above two. |
| 256 |
Any indicated glyphs will be removed from the specified strikes. |
| 257 |
|
| 258 |
.. _elementmenu.Style: |
| 259 |
|
| 260 |
.. object:: Styles |
| 261 |
|
| 262 |
There are many :doc:`standard variations </ui/dialogs/Styles>` on Latin (Greek, Cyrillic) |
| 263 |
fonts. Some of them apply to other scripts -- making a font darker (bolder) |
| 264 |
is common to many scripts, though the actual mechanics differ from script to |
| 265 |
script) Others -- such as Italic -- are more specialized. |
| 266 |
|
| 267 |
.. _elementmenu.Embolden: |
| 268 |
|
| 269 |
.. object:: Change Weight... |
| 270 |
|
| 271 |
This is a simplistic command to make the stems of glyphs darker or |
| 272 |
lighter. It sometimes works. |
| 273 |
|
| 274 |
For CJK glyphs it simply expands the strokes of the font outward. |
| 275 |
|
| 276 |
For LCG (Latin, Cyrillic, Greek) glyphs it expands the stroke outward and |
| 277 |
then moves everything below a certain point up, and everything above |
| 278 |
another point down. This is based on heuristics and will fail if a glyph |
| 279 |
is even the slightest bit unexpected. |
| 280 |
|
| 281 |
For other writing systems FontForge will do something, currently it will |
| 282 |
fall into one of the two cases above. |
| 283 |
|
| 284 |
See the :ref:`Change Weight dialog <Styles.Embolden>`. |
| 285 |
|
| 286 |
.. _elementmenu.Italic: |
| 287 |
|
| 288 |
.. object:: Italic |
| 289 |
|
| 290 |
An italic font is different from and more complex than an oblique font. |
| 291 |
Traditionally fonts with serifs are made italic and fonts without serifs |
| 292 |
are made oblique. This will change some letterforms, change the serifs, |
| 293 |
condense the font and slant things. See the |
| 294 |
:ref:`Italic dialog. <Styles.Italic>` |
| 295 |
|
| 296 |
.. _elementmenu.Oblique: |
| 297 |
|
| 298 |
.. object:: Oblique |
| 299 |
|
| 300 |
An oblique font is different from and simpler than an italic font. |
| 301 |
Traditionally fonts with serifs are made italic and fonts without serifs |
| 302 |
are made oblique. This will slant the letters. |
| 303 |
|
| 304 |
.. _elementmenu.Condense: |
| 305 |
|
| 306 |
.. object:: Condense/Extend |
| 307 |
|
| 308 |
Allows you to change the width of the counters and side bearings of a |
| 309 |
glyph. The algorithm only works on simple latin glyphs, and it has |
| 310 |
problems with diagonal stems. See the |
| 311 |
:ref:`Condense/Extend dialog <Styles.Condense>`. |
| 312 |
|
| 313 |
.. _elementmenu.xheight: |
| 314 |
|
| 315 |
.. object:: Change X-Height |
| 316 |
|
| 317 |
Allows you to change the x-height of a font |
| 318 |
|
| 319 |
.. _elementmenu.changeglyph: |
| 320 |
|
| 321 |
.. object:: Change Glyph... |
| 322 |
|
| 323 |
Allows you to make very general changes to a glyph's shape. |
| 324 |
|
| 325 |
.. _elementmenu.SmallCaps: |
| 326 |
|
| 327 |
.. object:: Add Small Caps |
| 328 |
|
| 329 |
This is a little different from the previous menu items as it does not |
| 330 |
change the selected characters themselves. Instead it creates a new glyph |
| 331 |
(or reuses an old one) with the appropriate name. So if you selected "A", |
| 332 |
"B", and "C" it would create glyphs "a.sc", "b.sc" and "c.sc". It will |
| 333 |
create two lookups one bound to 'c2sc' which maps capital letters to small |
| 334 |
caps, and the other bound to 'smcp' which maps lower case letters to small |
| 335 |
caps. It will build the appropriate small caps glyphs in the new glyph |
| 336 |
slots. This only applies to upper and lower case letters in the latin, |
| 337 |
greek and cyrillic scripts. |
| 338 |
:ref:`See the Small Caps dialog <Styles.Smallcaps>`. |
| 339 |
|
| 340 |
.. _elementmenu.SubSuper: |
| 341 |
|
| 342 |
.. object:: Add Subscripts/Superscripts |
| 343 |
|
| 344 |
Like the previous command this creates new glyphs based on the selected |
| 345 |
ones. The outlines of the selected glyphs will be scaled (with stems |
| 346 |
potentially being scaled differently from the glyph as a whole), and moved |
| 347 |
vertically. Then a new lookup will be created mapping the original glyph |
| 348 |
to the newly created one under control of the appropriate feature. |
| 349 |
:ref:`See the Subscript/Superscript dialog <Styles.SubSuper>`. |
| 350 |
|
| 351 |
.. _elementmenu.Outline: |
| 352 |
|
| 353 |
.. object:: Outline |
| 354 |
|
| 355 |
.. image:: /images/OutlineInline.png |
| 356 |
:align: right |
| 357 |
|
| 358 |
Changes the selected glyphs so that instead of being a solid block, only |
| 359 |
the outline of the glyph is visible. The glyphs' bounding boxes will not |
| 360 |
change. |
| 361 |
|
| 362 |
.. _elementmenu.Inline: |
| 363 |
|
| 364 |
.. object:: Inline |
| 365 |
|
| 366 |
Changes the selected glyphs so that the glyph is surrounded by an outline. |
| 367 |
The glyphs' bounding boxes will not change. |
| 368 |
|
| 369 |
.. _elementmenu.Shadow: |
| 370 |
|
| 371 |
.. object:: Shadow |
| 372 |
|
| 373 |
Changes the selected glyphs to give them each a shadow. |
| 374 |
|
| 375 |
.. image:: /images/ShadowWireframe.png |
| 376 |
:align: right |
| 377 |
|
| 378 |
The user has control over the shadow size and angle. |
| 379 |
|
| 380 |
.. _elementmenu.Wireframe: |
| 381 |
|
| 382 |
.. object:: Wireframe |
| 383 |
|
| 384 |
Changes the selected glyphs to give them a 3D wireframe look. |
| 385 |
|
| 386 |
.. object:: Transformations |
| 387 |
|
| 388 |
This sub-menu has rather different choices in the bitmap view from the other |
| 389 |
views. (Because bitmaps are discrete and the continuous transformations of |
| 390 |
splines are not meaningful). |
| 391 |
|
| 392 |
.. _elementmenu.Transform: |
| 393 |
|
| 394 |
.. object:: Transform... |
| 395 |
|
| 396 |
:doc:`In the Font and Outline Views this brings up the transform dialog </ui/dialogs/transform>`. |
| 397 |
This provides the standard linear transformations you expect to have |
| 398 |
available (rotation, scaling, translation, skewing). |
| 399 |
|
| 400 |
.. _elementmenu.PoV: |
| 401 |
|
| 402 |
.. object:: Point of View Projection |
| 403 |
|
| 404 |
:ref:`This dialog <transform.PoV>` allows you to perform a perspective |
| 405 |
transformation on your glyphs. (This is a non-linear transformation) |
| 406 |
|
| 407 |
.. _elementmenu.Non-Linear: |
| 408 |
|
| 409 |
.. object:: Non-Linear Transform... |
| 410 |
|
| 411 |
:ref:`This dialog <transform.Non-Linear>` allows you to perform a general |
| 412 |
transformation (which could be linear or which can be non-linear). |
| 413 |
Essentially you provide two equations for how x and y should be mapped. |
| 414 |
|
| 415 |
.. _elementmenu.Flip: |
| 416 |
|
| 417 |
.. object:: Flip Horizontally |
| 418 |
|
| 419 |
Flips the bitmap horizontally. (Only in bitmap view) |
| 420 |
|
| 421 |
.. _elementmenu.FlipV: |
| 422 |
|
| 423 |
.. object:: Flip Vertically |
| 424 |
|
| 425 |
Flips the bitmap vertically. (Only in bitmap view) |
| 426 |
|
| 427 |
.. _elementmenu.Rotate: |
| 428 |
|
| 429 |
.. object:: Rotate 90° CW |
| 430 |
|
| 431 |
Rotates the bitmap 90° clockwise. (Only in bitmap view) |
| 432 |
|
| 433 |
.. _elementmenu.Rotate90CCW: |
| 434 |
|
| 435 |
.. object:: Rotate 90° CCW |
| 436 |
|
| 437 |
Rotates the bitmap 90° counter-clockwise. (Only in bitmap view) |
| 438 |
|
| 439 |
.. _elementmenu.Rotate180: |
| 440 |
|
| 441 |
.. object:: Rotate 180° |
| 442 |
|
| 443 |
Rotates the bitmap 180° (Only in bitmap view) |
| 444 |
|
| 445 |
.. _elementmenu.Skew: |
| 446 |
|
| 447 |
.. object:: Skew |
| 448 |
|
| 449 |
Allows you to specify a ratio by which to skew the bitmap 1:3 means for |
| 450 |
every 3 pixel rise in y, skew the bitmap one pixel horizontally. (Only in |
| 451 |
bitmap view) |
| 452 |
|
| 453 |
.. _elementmenu.NonLinear: |
| 454 |
|
| 455 |
.. object:: Non Linear Transform... |
| 456 |
|
| 457 |
This command is not available in the default build, you must modify the file |
| 458 |
``configure-fontforge.h`` and then rebuild FontForge. This command allows the |
| 459 |
user to specify a non-linear transformation as a pair of expressions (the |
| 460 |
first specifies the transformation for the x coordinate, the second for the y |
| 461 |
coordinate). These expressions may be fairly general functions of x and y. |
| 462 |
See the :ff:func:`scripting page <NonLinearTransform>` for a description of |
| 463 |
the syntax. |
| 464 |
|
| 465 |
.. _elementmenu.Expand: |
| 466 |
|
| 467 |
.. object:: Expand Stroke... |
| 468 |
|
| 469 |
Not in the bitmap view. In the font view it applies to all foreground splines |
| 470 |
in all selected glyphs. In the outline view it applies to all paths that have |
| 471 |
at least one point selected (or if no points are selected then it applies to |
| 472 |
all paths). |
| 473 |
|
| 474 |
The remaining documentation on this facility is on its |
| 475 |
:doc:`own page </techref/stroke>`. |
| 476 |
|
| 477 |
.. _elementmenu.TilePath: |
| 478 |
|
| 479 |
.. object:: Tile Path |
| 480 |
|
| 481 |
This command is not available in the default build, you must reconfigure $ |
| 482 |
``configure --with-tilepath`` and then rebuild FontForge. Not available in |
| 483 |
quadratic (truetype) fonts. This command brings up a :doc:`dialog </ui/dialogs/tilepath>` |
| 484 |
which allows you to specify a tile to be applied to any selected contours. |
| 485 |
|
| 486 |
.. _elementmenu.TilePattern: |
| 487 |
|
| 488 |
.. object:: Tile Pattern... |
| 489 |
|
| 490 |
Also not available in the default build, also controlled by $ |
| 491 |
``configure --with-tilepath``. :ref:`This command <tilepath.Pattern>` allows |
| 492 |
you to design a pattern which will be layed down on the current layer m*n |
| 493 |
times (where m is the number of horizontal repeats and n the number of |
| 494 |
vertical repeats. |
| 495 |
|
| 496 |
.. object:: Overlap |
| 497 |
|
| 498 |
None of these is available in the bitmap view. |
| 499 |
|
| 500 |
.. _elementmenu.Remove: |
| 501 |
|
| 502 |
.. object:: Remove Overlap |
| 503 |
|
| 504 |
Not in the bitmap view, not available when the font has quadratic splines. |
| 505 |
If two closed paths intersect then there will be overlap. This will get |
| 506 |
rid of it, leaving one closed path behind. |
| 507 |
|
| 508 |
Make sure paths have the correct orientation. Consider the letter "O" with |
| 509 |
two contours. If both contours run in the same direction then the inner |
| 510 |
path will be removed (because the outer path overlaps it everywhere), but |
| 511 |
if the contours run in opposite orientations then the inner path will be |
| 512 |
retained. Things get very strange if you have intersecting paths with |
| 513 |
different orientations. |
| 514 |
|
| 515 |
.. image:: /images/expandedlines.png |
| 516 |
|
| 517 |
.. image:: /images/overlappedlines.png |
| 518 |
|
| 519 |
This command is probably the buggiest in FontForge. So before FontForge |
| 520 |
invokes the command it will save the state to the error recovery file. |
| 521 |
|
| 522 |
.. warning:: |
| 523 |
|
| 524 |
Splines which are tangent (or nearly so) cause problems. Points which |
| 525 |
are close together can cause problems. |
| 526 |
|
| 527 |
.. _elementmenu.Intersect: |
| 528 |
|
| 529 |
.. object:: Intersect |
| 530 |
|
| 531 |
.. flex-grid:: |
| 532 |
|
| 533 |
* - .. image:: /images/exclude-pre.png |
| 534 |
|
| 535 |
- .. image:: /images/intersect-post.png |
| 536 |
|
| 537 |
This will remove everything not in the intersection of two regions. |
| 538 |
|
| 539 |
.. _elementmenu.Exclude: |
| 540 |
|
| 541 |
.. object:: Exclude |
| 542 |
|
| 543 |
.. flex-grid:: |
| 544 |
|
| 545 |
* - .. image:: /images/exclude-pre.png |
| 546 |
|
| 547 |
- .. image:: /images/exclude-post.png |
| 548 |
|
| 549 |
This will remove the selected contours from the unselected ones. Only |
| 550 |
available in the outline glyph view. |
| 551 |
|
| 552 |
.. object:: Find Intersections |
| 553 |
|
| 554 |
This finds the places where overlapping contours intersect and inserts |
| 555 |
points at those locations. |
| 556 |
|
| 557 |
.. object:: Simplify |
| 558 |
|
| 559 |
.. _elementmenu.Simplify: |
| 560 |
|
| 561 |
.. object:: Simplify |
| 562 |
|
| 563 |
Not in the bitmap view. If you have lots of points on a path, some of |
| 564 |
which do not materially add to the path's shape, then this command will |
| 565 |
remove the extraneous points. (It will not remove points where the slope |
| 566 |
at the point is horizontal or vertical as postscript likes to have these |
| 567 |
points present). |
| 568 |
|
| 569 |
:ref:`How is this done? <pfaeditmath.Approximating>` |
| 570 |
|
| 571 |
.. _elementmenu.SimplifyMore: |
| 572 |
|
| 573 |
.. object:: Simplify More |
| 574 |
|
| 575 |
This is a variant of the simplify command. It brings up a dialog which |
| 576 |
gives you control over what sorts of errors this simplification is allowed |
| 577 |
to induce. You can control: |
| 578 |
|
| 579 |
* How far the simplified contour is allowed to stray from the original |
| 580 |
* Whether to allow removal of extreme points |
| 581 |
* Whether to allow the slope to change at points. |
| 582 |
* Whether to make corner points into curve points (by adjusting the control |
| 583 |
points) |
| 584 |
* Whether to flatten small bumps off of lines |
| 585 |
* Whether to try to simplify straight lines at all |
| 586 |
|
| 587 |
Finally, you may specify whether this set of values should become the |
| 588 |
default value for future Simplify commands |
| 589 |
|
| 590 |
.. _elementmenu.Cleanup: |
| 591 |
|
| 592 |
.. object:: Cleanup Glyph |
| 593 |
|
| 594 |
This is a special case of the simplify command. In this case if there is a |
| 595 |
spline which actually traces out a line but none the less has control |
| 596 |
points, then this command will remove the control points. It will also |
| 597 |
cleanup zero length splines. |
| 598 |
|
| 599 |
.. _elementmenu.CanonicalSP: |
| 600 |
|
| 601 |
.. object:: Canonical Start Points |
| 602 |
|
| 603 |
This will change the start point of the contour (or of all selected |
| 604 |
contours) to be the leftmost point on the contour. If there are several |
| 605 |
points with the same horizontal coordinate it will pick the one closest to |
| 606 |
the baseline. There are two reasons for doing this: |
| 607 |
|
| 608 |
* In a PostScript Type1 or Type2 font it will (usually) reduce the size of |
| 609 |
the code expressing the glyph slightly. (I don't think it can increase the |
| 610 |
code, but there are certainly cases where the optimization will have no |
| 611 |
effect). |
| 612 |
* It will enable FontForge to find more reusable bits of code which it can |
| 613 |
put in subroutines |
| 614 |
|
| 615 |
.. _elementmenu.CanonicalContours: |
| 616 |
|
| 617 |
.. object:: Canonical Contour Order |
| 618 |
|
| 619 |
Order the contours so that the contour with the leftmost point comes |
| 620 |
first, then the contour whose leftmost point is a little further right and |
| 621 |
so forth. Again, this should decrease the code size slightly in a Type1 |
| 622 |
font. |
| 623 |
|
| 624 |
.. _elementmenu.Add-Extrema: |
| 625 |
|
| 626 |
.. object:: Add Extrema |
| 627 |
|
| 628 |
Not in the bitmap view. Both TrueType and Type1 say that there should be |
| 629 |
points on the contour where it reaches its extreme horizontal and vertical |
| 630 |
values. In the outline view, if any points are selected, this will add points |
| 631 |
at all extrema on splines between selected points. In the font view, metrics |
| 632 |
view (or if nothing is selected in the outline view) it will add extrema to a |
| 633 |
spline if: 1) The spline is longer than the em-size/32, or 2) the entire |
| 634 |
contour (rather than just the current spline) attains its maximum/minimum |
| 635 |
value at this point. If the added extrema is extremely close to an already |
| 636 |
existing point, fontforge may remove that point to avoid creating tiny |
| 637 |
splines. |
| 638 |
|
| 639 |
.. _elementmenu.Add-Inflections: |
| 640 |
|
| 641 |
.. object:: Add Points Of Inflection |
| 642 |
|
| 643 |
Not in the bitmap view. In the outline view, if any points are selected, |
| 644 |
this will add points at all points of inflection on splines between |
| 645 |
selected points. In the font view, metrics view (or if nothing is selected |
| 646 |
in the outline view) it will add all points of inflection to the splines. |
| 647 |
|
| 648 |
.. _elementmenu.AutoTrace: |
| 649 |
|
| 650 |
.. object:: AutoTrace |
| 651 |
|
| 652 |
This command is only available if you have downloaded Martin Weber's |
| 653 |
`autotrace program <http://sourceforge.net/projects/autotrace/>`__, or Peter |
| 654 |
Selinger's `potrace <http://potrace.sf.net/>`__. If you have a background |
| 655 |
image in a glyph then autotrace will automagically trace the outlines of that |
| 656 |
image. See :doc:`the section on autotracing </techref/autotrace>` for more |
| 657 |
information. |
| 658 |
|
| 659 |
.. _elementmenu.Align: |
| 660 |
|
| 661 |
.. object:: Align menu |
| 662 |
|
| 663 |
This submenu is only present in the outline view, it allows you to align |
| 664 |
points or to space them out along an axis. |
| 665 |
|
| 666 |
.. _elementmenu.Average: |
| 667 |
|
| 668 |
.. object:: Average Points |
| 669 |
|
| 670 |
This will look at all the selected points and find the coordinate with the |
| 671 |
least change. Then it will average find the median point on that axis and |
| 672 |
set all the selected points to have that value for the appropriate |
| 673 |
coordinate. |
| 674 |
|
| 675 |
So if you have a line which is almost horizontal, and select its endpoints |
| 676 |
and apply this command it will be horizontal. |
| 677 |
|
| 678 |
.. image:: /images/Constrain2_1.png |
| 679 |
|
| 680 |
.. image:: /images/Constrain2_2.png |
| 681 |
|
| 682 |
(if you select exactly two points, and they lie close to a 45 diagonal, |
| 683 |
then they will be forced to the diagonal rather than to |
| 684 |
horizontal/vertical) |
| 685 |
|
| 686 |
.. _elementmenu.Space-Pts: |
| 687 |
|
| 688 |
.. object:: Space Points |
| 689 |
|
| 690 |
If you have three or more points selected then FontForge will figure out |
| 691 |
the coordinate that has the greatest change and will space the points out |
| 692 |
regularly along that axis. |
| 693 |
|
| 694 |
If you select one point (and that point is in the middle of a path) then |
| 695 |
(internally) the point's location will be expressed in a coordinate system |
| 696 |
which is rotated so that one axis is parallel to the line between the two |
| 697 |
points that surround the selected point. The selected point will be moved |
| 698 |
mid-way between the two on this axis, while its other coordinate remains |
| 699 |
fixed. |
| 700 |
|
| 701 |
That's an extremely complicated way of saying: If the selected point is |
| 702 |
connected to two points which are on a horizontal line, then the selected |
| 703 |
point's x coordinate will be midway between the two, while its y |
| 704 |
coordinate remains unchanged. |
| 705 |
|
| 706 |
.. image:: /images/Constrain1_1.png |
| 707 |
|
| 708 |
.. image:: /images/Constrain1_2.png |
| 709 |
|
| 710 |
.. _elementmenu.Space-Regions: |
| 711 |
|
| 712 |
.. object:: Space Regions |
| 713 |
|
| 714 |
This is similar to the above command except that it allows you to make a |
| 715 |
rather simple definition of a collection of points which should be moved |
| 716 |
together. Each of these regions will be regularly spaced along the chosen |
| 717 |
axis. A region is defined as a collection of points, each one of which is |
| 718 |
within some maximum distance of at least one other point in the region. |
| 719 |
The purpose of this is to allow you to space out the stems of the letter |
| 720 |
"m" so that they regularly spaced horizontally. Sadly it won't work in |
| 721 |
many cases because in a serifed font the serifs will often be closer to |
| 722 |
each other than to their respective stems. |
| 723 |
|
| 724 |
.. image:: /images/Spacem_1.png |
| 725 |
|
| 726 |
.. image:: /images/Spacem_2.png |
| 727 |
|
| 728 |
.. _elementmenu.Parallel: |
| 729 |
|
| 730 |
.. object:: Make Parallel |
| 731 |
|
| 732 |
If four points are selected, and there are two lines between them, then |
| 733 |
FontForge will make those lines parallel. If there are four lines between |
| 734 |
them (ie. they form a quadrilateral, then FontForge will turn it into a |
| 735 |
parallelogram. (note, this only works on lines, not on curved splines) |
| 736 |
|
| 737 |
The last point selected will be the one moved (sometimes FontForge doesn't |
| 738 |
remember which point was selected last, then it will just pick one |
| 739 |
randomly. If you don't want that to happen, select your points and then |
| 740 |
single click on the one you want moved). |
| 741 |
|
| 742 |
.. _elementmenu.Balance: |
| 743 |
|
| 744 |
.. object:: Balance |
| 745 |
|
| 746 |
Not in the bitmap view. In the outline view, if any points are selected, |
| 747 |
this will make the line between the control points parallel to the chord |
| 748 |
such that the area is preserved. This is an improved version of the algorithm |
| 749 |
known as "tunnify". In the font view, metrics view (or if nothing is selected |
| 750 |
in the outline view) it will balance all cubic splines. |
| 751 |
|
| 752 |
.. _elementmenu.Harmonize: |
| 753 |
|
| 754 |
.. object:: Harmonize |
| 755 |
|
| 756 |
Not in the bitmap view. In the outline view, if any points are selected, |
| 757 |
this will move the smooth on-curve points between its adjacent control |
| 758 |
points such that the adjacent curvatures become equal (except for sign |
| 759 |
at points of inflection). In the font view, metrics view (or if nothing |
| 760 |
is selected in the outline view) it will harmonize all smooth spline points. |
| 761 |
|
| 762 |
.. object:: Round |
| 763 |
|
| 764 |
.. _elementmenu.Round: |
| 765 |
|
| 766 |
.. object:: Round to Int |
| 767 |
|
| 768 |
Not in the bitmap view. FontForge stores point locations as real numbers |
| 769 |
(ie. it retains fractional values). TrueType only supports integral values |
| 770 |
(And much of the time you want integral values in Type1 and Type2 fonts |
| 771 |
also -- using real numbers makes font files bigger), so when generating |
| 772 |
the font points are rounded to integral values. This command will round |
| 773 |
all selected locations to the closest integer. |
| 774 |
|
| 775 |
.. _elementmenu.Hundredths: |
| 776 |
|
| 777 |
.. object:: Round to Hundredths |
| 778 |
|
| 779 |
Not in bitmap or metrics views. FontForge's Type1 output is limited to |
| 780 |
hundredths of an em-unit, even when rounding is turned off in the Generate |
| 781 |
[Options] dialog. |
| 782 |
|
| 783 |
.. _elementmenu.Cluster: |
| 784 |
|
| 785 |
.. object:: Round to Cluster |
| 786 |
|
| 787 |
Occasionally you want to make sure that coordinates which are close |
| 788 |
together have the same value. This command will do that. |
| 789 |
|
| 790 |
.. _elementmenu.Order: |
| 791 |
|
| 792 |
.. object:: Order |
| 793 |
|
| 794 |
This changes the order in which contours, references and images are drawn. It |
| 795 |
is almost useless because this order of contours and references does not |
| 796 |
affect the final appearance of the glyph. The only relevance it has is when |
| 797 |
interpolating fonts and in multiple master fonts. Here similar contours must |
| 798 |
appear in the same order. |
| 799 |
|
| 800 |
If you have a glyph which contains both contours and references, FontForge |
| 801 |
does not specify whether references or contours are drawn first (or whether |
| 802 |
the two are intermixed). If this matters to you, unlink your references. |
| 803 |
|
| 804 |
.. _elementmenu.Clockwise: |
| 805 |
|
| 806 |
.. object:: Clockwise |
| 807 |
|
| 808 |
Only in the outline view. If all selected paths have a clockwise direction |
| 809 |
then this will be checked. Selecting it will make all paths be clockwise. |
| 810 |
|
| 811 |
If not paths are selected, or if all selected paths are open this will be |
| 812 |
greyed out. I a selected path intersects itself results are indeterminate. |
| 813 |
|
| 814 |
.. _elementmenu.Counter: |
| 815 |
|
| 816 |
.. object:: Counter-Clockwise |
| 817 |
|
| 818 |
Only in the outline view. If all selected paths have a counter-clockwise |
| 819 |
direction then this will be checked. Selecting it will make all paths be |
| 820 |
counter-clockwise. |
| 821 |
|
| 822 |
If not paths are selected, or if all selected paths are open this will be |
| 823 |
greyed out. I a selected path intersects itself results are indeterminate. |
| 824 |
|
| 825 |
.. _elementmenu.Correct: |
| 826 |
|
| 827 |
.. object:: Correct Direction |
| 828 |
|
| 829 |
Not in the bitmap view. Sets the direction of outermost paths to be |
| 830 |
clockwise. The next path crossed will be made counter-clockwise, the next |
| 831 |
clockwise, etc. |
| 832 |
|
| 833 |
This command may produce unexpected results if two splines cross. |
| 834 |
|
| 835 |
If a glyph contains a flipped reference, this command will be unable to |
| 836 |
correct the contours inside of the reference directly, instead it will offer |
| 837 |
to unlink the reference after which it can treat its (former) contours like |
| 838 |
any others. |
| 839 |
|
| 840 |
.. _elementmenu.Insert-Text: |
| 841 |
|
| 842 |
.. object:: Insert Text Outlines... |
| 843 |
|
| 844 |
Upon occasion it is useful to be able to insert text into a glyph. The |
| 845 |
:doc:`Insert Text Dialog </ui/dialogs/InsertTextDlg>` lets you do this. |
| 846 |
|
| 847 |
.. _elementmenu.Accented: |
| 848 |
|
| 849 |
.. object:: Build Accented/Composite Glyph |
| 850 |
|
| 851 |
Not in the bitmap view. |
| 852 |
|
| 853 |
The first menu item will only build accented letters, the second will build |
| 854 |
general composite glyphs (fractions, ligatures, digits inside parens, roman |
| 855 |
numerals, etc.) as well. |
| 856 |
|
| 857 |
If the current glyph is an accented glyph (and all the base glyphs and |
| 858 |
accents have already been created) then this command will delete anything |
| 859 |
that is currently in the foreground and put a reference to the base glyph and |
| 860 |
another reference to the accent glyph into the foreground. So if the current |
| 861 |
glyph were "À" then a reference to "A" would be added to it, and a reference |
| 862 |
to "`" would be centered above the "A". |
| 863 |
|
| 864 |
If the current glyph is something like "agrave.sc" then it will be built |
| 865 |
using the rules of "agrave" but with ".sc" variants. So "agrave.sc" would |
| 866 |
contain "a.sc". For accents it will use "grave.sc" if it exists and "grave" |
| 867 |
if it does not. |
| 868 |
|
| 869 |
If :ref:`Copy From <editmenu.From>` is set to All Fonts then any bitmaps will |
| 870 |
have a similar process done -- that is bitmap references will be created |
| 871 |
(even in the outline glyph view). |
| 872 |
|
| 873 |
A more complete description is given in the section on |
| 874 |
:doc:`accented glyphs </techref/accented>`. |
| 875 |
|
| 876 |
.. _elementmenu.BuildDuplicate: |
| 877 |
|
| 878 |
.. object:: Build Duplicate |
| 879 |
|
| 880 |
Only in the font view. |
| 881 |
|
| 882 |
Consider the letters "Alpha" and "A". Often these may be represented by the |
| 883 |
same glyph. This command which change the encoding slightly so that the |
| 884 |
encoding for U+0391 will refer to the glyph named "A". Note that this is |
| 885 |
subtly different from referring to a glyph named "Alpha" which refers to |
| 886 |
another glyph named "A". |
| 887 |
|
| 888 |
Adobe suggests that you use a reference rather than giving to unicode code |
| 889 |
points to one glyph, but it is part of the font format. |
| 890 |
|
| 891 |
.. _elementmenu.Merge: |
| 892 |
|
| 893 |
.. object:: Merge Fonts... |
| 894 |
|
| 895 |
Only in the font view. If you are building a unicode font you will often want |
| 896 |
to merge in other fonts. You can, of course, cut and paste from one to the |
| 897 |
other, but that can be tedious, while this command will do it all in one fell |
| 898 |
swoop. |
| 899 |
|
| 900 |
FontForge does the following when merging CID-keyed fonts: |
| 901 |
|
| 902 |
* If the font in the window (the mergee) is a normal font and the other font |
| 903 |
(the merger) is a CID keyed font, then the merger font is effectively |
| 904 |
flattened and the result merged into the mergee. |
| 905 |
* If the mergee is a CID keyed font and the merger font is a normal font then |
| 906 |
the merger font will be merged into whichever of the mergee's subfonts is |
| 907 |
currently active. |
| 908 |
* If both are CID keyed fonts, then they should: |
| 909 |
|
| 910 |
* Have the same registry and ordering |
| 911 |
* The supplement number of the mergee should be at least as big as that of the |
| 912 |
merger |
| 913 |
* The mergee should have at least as many subfonts as the merger. |
| 914 |
|
| 915 |
If these conditions be met then any CIDs from the merger which are not |
| 916 |
present in the mergee will be merged into the same subfont of the mergee as |
| 917 |
they came from in the merger. |
| 918 |
|
| 919 |
This strikes me as somewhat problematic, but I can't think of a better |
| 920 |
solution. |
| 921 |
|
| 922 |
FontForge will also copy advanced typographic features, kerning, ligatures, |
| 923 |
etc. |
| 924 |
|
| 925 |
If one of the two glyphs of a kerning pair is in the mergee and the other in |
| 926 |
the merger then you will be given the option of either ignoring this kerning |
| 927 |
pair or adding it to the resultant font. This happens if both the mergee and |
| 928 |
the merger contain a glyph, and the kerning pair is in the merger font -- if |
| 929 |
that glyph is the same in both fonts then you would want to include the |
| 930 |
kerning pair, but if it differs then you probably don't. |
| 931 |
|
| 932 |
.. _elementmenu.Interpolate: |
| 933 |
|
| 934 |
.. object:: Interpolate Fonts... |
| 935 |
|
| 936 |
Only in the font view. If you have a bold font and a light font and would |
| 937 |
like to create a medium font, then you can interpolate a font between the two |
| 938 |
(or you can extrapolate a font that's even bolder or lighter). Your two fonts |
| 939 |
must have the same sets of glyphs, and each glyph must have the same number |
| 940 |
of paths (ordered similarly) and each path must have the same number of |
| 941 |
points on it, and must have the same references. |
| 942 |
|
| 943 |
Examples: If you are interpolating from a light font to a bold one, then a |
| 944 |
medium font might be 50% between the two, an extra-bold font might be 200% |
| 945 |
and a thin one -100%. |
| 946 |
|
| 947 |
.. _elementmenu.CompareFonts: |
| 948 |
|
| 949 |
.. object:: Compare Fonts... |
| 950 |
|
| 951 |
.. image:: /images/fontcompdlg.png |
| 952 |
:align: right |
| 953 |
|
| 954 |
Sometimes it is useful to compare two versions of a font and see what has |
| 955 |
changed. This command will allow you to check: |
| 956 |
|
| 957 |
* The addition or removal of glyphs |
| 958 |
* Changes to outline glyphs |
| 959 |
* Changes to bitmap glyphs |
| 960 |
* Changes to the font's names (truetype 'name' table and some postscript names) |
| 961 |
* Changes to the font's glyph substitutions (ligatures and whatnot) |
| 962 |
* Changes to the font's glyph positioning (kerning and whatnot) |
| 963 |
|
| 964 |
You can also use it to compare truetype and postscript versions of the same |
| 965 |
font. Normally fontforge checks to make sure all the splines match exactly, |
| 966 |
but you can also have it test whether a contour in one font is always close |
| 967 |
to the similar contour in another font, or whether a contour in one font is |
| 968 |
inside a reference in another (these are common when comparing PostScript |
| 969 |
fonts where the format loses references). |
| 970 |
|
| 971 |
Comparing PostScript hintmasks is another somewhat iffy topic. There are |
| 972 |
often many equivalent (I think) hint mask possibilities, but I don't have a |
| 973 |
good algorithm for saying that they are equivalent -- especially since Adobe |
| 974 |
uses hints in ways which I find unexpected. |
| 975 |
|
| 976 |
Finally you can have it place the outlines of each differing glyph from the |
| 977 |
second font into the background of the corresponding glyph in the first font. |
| 978 |
This can be helpful in correcting discrepancies. |
| 979 |
|
| 980 |
.. image:: /images/fontcompresults.png |
| 981 |
|
| 982 |
.. _elementmenu.CompareL2L: |
| 983 |
|
| 984 |
.. object:: Compare Layer To Layer... |
| 985 |
|
| 986 |
Only available in the Outline and Font Views. This command allows you to |
| 987 |
specify two layers within the current font and then checks that they are |
| 988 |
similar. In the outline view a message box pops up to say if the layers are |
| 989 |
the same or different. In the Font View, the view will scroll to the first |
| 990 |
glyph which differs, all differing glyphs will be selected and a message box |
| 991 |
pops up. |