How to Test Mark Positioning in FontForge
Testing mark positioning features inside FontForge allows type
designers to verify that combining diacritics and accents attach
properly to base glyphs and other marks without exporting the font. This
guide covers how to set up, preview, and adjust OpenType GPOS
mark-to-base (mark) and mark-to-mark (mkmk)
lookups directly within FontForge using built-in preview and metrics
tools.
1. Verify Lookups and Anchor Classes
Before testing, ensure your font has the appropriate GPOS features and anchor classes defined:
- Go to Element > Font Info > Lookups.
- Select the GPOS tab.
- Confirm that you have a Mark-to-Base Attachment
(
mark) or Mark-to-Mark Attachment (mkmk) lookup configured. - Verify that an anchor class is assigned to that lookup and that base
characters and diacritics share matching anchor names (for example, a
base glyph containing
topand a diacritic containing_top).
2. Use the Metrics Window for Live Previews
The Metrics Window is the primary environment for live feature testing:
- Open the window by navigating to Metrics > New Metrics
Window (or press
Ctrl+K/Cmd+K). - Type or paste the sequence of characters you want to test (for
example, type the base letter
afollowed by the combining markacutecomb). - Ensure OpenType features are active by selecting
Features in the Metrics Window menu bar. Verify that
the relevant mark positioning features (such as
markandmkmk) are checked. - If configured correctly, the mark will automatically snap to the base glyph according to your anchor rules rather than rendering side-by-side.
3. Adjust Positions Using the Anchor Control Dialog
If an accent is misaligned, you can test and correct the placement interactively:
- Double-click the base glyph or mark in the font view to open the Glyph Window.
- Right-click the anchor point you wish to test and select Anchor Control. Alternatively, go to Point > Anchor Control.
- In the Anchor Control window, choose the matching glyph combination from the list.
- Drag the mark to the desired position or use the arrow keys for fine adjustments. The numerical offsets for the anchor points will update automatically.
- Close the window to save the updated anchor placement.
4. Test Multiple Script and Language Combinations
Anchor behaviors can vary depending on language systems:
- In the Metrics Window, go to View > Complex Script.
- Set the appropriate Script and Language tags corresponding to your GPOS lookup rules.
- Test right-to-left (RTL) or cursive behavior alongside mark positioning if working with scripts like Arabic or Hebrew by toggling text direction under the Metrics menu.