Skip to content

Glyph Metrics: Fine-Tune xAdvance, xOffset, and yOffset

Optimize character spacing and positioning in your bitmap font by adjusting global and individual glyph metrics like xAdvance, xOffset, and yOffset.

SnowB BMF lets you adjust glyph metrics at the global and individual level, giving you precise control over character spacing and positioning.

Global metrics affect every glyph uniformly. These settings are in the left sidebar.

Global Metric Adjustments

  • xAdvance: Default horizontal space each character occupies, i.e. how far the cursor advances after rendering.
  • xOffset: Shifts all glyphs horizontally. Positive = right, negative = left.
  • yOffset: Shifts all glyphs vertically. Positive = down, negative = up.

All metric values are in pixels and default to 0.

Override global metrics for specific glyphs to fix spacing issues with individual characters.

  1. Activate Preview mode in the workspace.
  2. Type the characters you want to adjust into the preview text field.
  3. Click on a character in the preview area to select it.
  4. The individual adjustment panel will appear at the bottom.

Individual Glyph Adjustments

For any selected glyph, you can override:

  • xAdvance: Custom advance width for the selected character.
  • xOffset: Unique horizontal offset for this glyph.
  • yOffset: Unique vertical offset for this glyph.

Individual adjustments take precedence over global settings.

  • Applying consistent spacing across the entire font.
  • Adjusting the baseline for better alignment.
  • Counteracting platform-specific rendering quirks.
  • Correcting spacing for problematic characters (e.g., “W” or “I”).
  • Repositioning punctuation and special symbols.
  • Creating custom kerning pairs.
  • Balancing visual weight of different characters.
  • Start Globally: Set a baseline with global adjustments first.
  • Adjust Individually: Use per-glyph tweaks for exceptions.
  • Preview Often: Test changes with different text samples in preview mode.
  • Consider the Target: Keep your target platform’s text rendering in mind.