Skip to content

Using Image Glyphs in Your Bitmap Font

Add custom images, icons, and symbols as glyphs in your bitmap font. Learn how to import, manage, and optimize image glyphs for game and app development.

Image glyphs let you embed custom icons, symbols, or logos directly into your bitmap font. This is useful when your game or application needs visual elements that standard fonts don’t provide.

Image Glyphs Interface

Drag and drop images into the workspace, or use the “Select Images” button:

  1. Select or Drag-and-Drop image files into the image area.
  2. The tool processes and adds them to your image glyph list.
  3. Assign a character to each image.

Transparent pixels are trimmed automatically to save texture atlas space.

You can drag one or multiple image files directly onto the image glyph panel. The panel accepts any standard image format and will filter out non-image files automatically. This is the fastest way to add many images at once.

Click the “Select Images” button to open a file picker. The file picker supports multi-selection (accept="image/*"), so you can choose several images in one go.

For best results, use formats that support transparency:

  • PNG is recommended for images with transparency.
  • JPG/JPEG works for solid, rectangular images.

The image glyph panel has a few workflow features worth knowing about.

The image glyph list is wrapped in an accordion-style collapsible section. Click the panel header to expand or collapse the list. When in fullscreen mode, the panel remains expanded.

Click the fullscreen toggle button (in the panel header) to expand the image glyph panel to fill the entire screen. This is useful when managing a large collection of image glyphs.

  • Enter fullscreen: Click the fullscreen icon in the panel header.
  • Exit fullscreen: Click the exit-fullscreen icon, or press Escape to return to the normal view.

Once added, you can manage each image glyph individually.

To use an image glyph, you must map it to a character:

  • Click the text input field below any image thumbnail.
  • Type a single character (e.g., A, !, or any Unicode symbol).
  • This character now represents your image glyph.

Note: Each character can only map to one image. Assigning a character that’s already in use (either by another image or a text glyph) will override the previous one. Image glyphs have priority over text glyphs.

The character input field supports IME for CJK and other complex scripts. During composition, the input updates locally; the mapping commits once composition ends, preventing partial or garbled characters.

Each image glyph thumbnail has a checkbox in the top-left corner:

  • Checked (enabled): The image is included in the final texture atlas and font descriptor.
  • Unchecked (disabled): The image is excluded from packing and export.

Use this to quickly toggle individual images without removing them from your project.

  • Use the checkbox on each thumbnail to include or exclude an image from the final font atlas.
  • Click the delete icon on any thumbnail to remove it from the project.
  • The interface provides real-time visual feedback as you make changes.

Image glyphs support individual metric adjustment in Preview mode, using the same interface as text glyphs. Select an image glyph character in the preview to fine-tune:

  • xAdvance: Controls the horizontal distance to the next character.
  • xOffset: Shifts the image horizontally within its character cell.
  • yOffset: Shifts the image vertically within its character cell.

Image glyphs are packed into the same texture atlas alongside text glyphs.

  • Images and text glyphs are arranged together to minimize texture size.
  • If an image glyph is mapped to the same character as a text glyph (e.g., ‘A’), the image glyph takes priority.
  • Spacing and layout rules apply consistently to all glyphs.

Best Practices for Performance and Quality

Section titled “Best Practices for Performance and Quality”
  • Use transparent backgrounds so images blend properly.
  • Image glyphs lack a baseline, so use equal top/bottom transparent padding for vertical consistency.
  • Compress images before importing to keep file size down.
  • Match the visual style and resolution of your target font size.
  • Assign intuitive characters to your images for easier use.
  • Avoid overriding essential text characters unless that’s your intent.
  • Too many high-resolution images will increase texture memory usage and load times.

When you export your project, all enabled image glyphs are included automatically.

  • Images are rendered into the final texture sheet(s).
  • Character mappings and metrics for image glyphs are saved in the font descriptor file (.fnt, .xml, etc.).
  • All supported export formats include image glyph data.