forked from fontforge/fontforge
-
Notifications
You must be signed in to change notification settings - Fork 36
How To Create Anchors
davelab6 edited this page Sep 9, 2012
·
1 revision
This is a step by step tutorial by Peter Baker for adding anchor features to glyphs.
The learning curve for advanced typographical features is steep, if you want to understand them. But here is a step-by-step procedure for adding anchors to a font.
- Open the Element --> Font Info dialog.
- Highlight "Lookups" in the list on the left.
- Click the "GPOS" tab, indicating that the lookup you want to add is for positioning glyphs.
- Click the "Add Lookup" button. The "Lookup" dialog will now appear.
- In the "Type" list at the top of the dialog, select "Mark to Base Position."
- In the list below that, under "Feature," select "Mark." You can probably just accept the script/language list that appears on the right.
- Click "Okay" to close the "Lookup" dialog.
- Back in the "Font Info" dialog, under "GPOS," there should now be a line that reads something like "'Mark' Mark Positioning lookup 1. Make sure it is highlighted and click the "Add Subtable" button.
- In the "Please name this subtable" dialog, either accept the offered name or supply a new one. Click "Okay."
- An "Anchor class" dialog appears. Click "New Anchor Class" and type a name (say "MyAnchor") in the blank that appears.
- Click "Okay" to close the "Anchor Class" dialog and "Okay" again to close the "Font Info" dialog.
Now open any glyph in an editing window. Let's say "e."
- Right-click above the "e" glyph, and in the pop-up menu that appears select "Add Anchor."
- In the "Anchor Point Info" dialog that appears, select the anchor class "MyAnchor."
- From among the buttons below, make sure "Base glyph" is checked (it probably is already).
- Close the dialog.
Now open a mark character--say the breve (uni0306) from the Combining Diacritics range.
- Do what you did for the "e," but make sure that "Mark" is checked instead of "Base glyph."
Now play with your new toy:
- While still in the editing window for the breve, type Ctrl-K to open the "Kerning Metrics" window.
- Type the left-arrow key to position the cursor in the text-entry field in front of the breve.
- Type "e." The breve should appear over the "e" in the big display below.
- Leave the "Kerning Metrics" window open and return to the editing window for breve. Position the editing window so you can still see the e+breve combination in "Kerning Metrics."
- Drag the anchor around in the editing window and see what happens in the "Kerning Metrics" window.