Skip to main content
Tuoman
Senior II
February 25, 2021
Question

The best way to pixel correct generated fonts?

  • February 25, 2021
  • 4 replies
  • 1226 views

Many TouchGFX generated font bitmaps contain pixel errors (understandable)

What is the recommended way to manually fix these pixels into correct location?

This topic has been closed for replies.

4 replies

moredatalesscenter
Associate III
May 26, 2021

I have a similar problem on a 1bpp screen. Some strokes on characters seem to round up to 2 pixels, others down to 1 pixels. So the vertical line in E, I, L and T etc is 2 px and the horizontal line is 1 px.

moredatalesscenter
Associate III
June 2, 2021

Is there a solution for this with the font converter?

Tuoman
TuomanAuthor
Senior II
June 11, 2021

I was able to correct 1bpp fonts with FontForge. No luck with 2bpp fonts with this method (they end up scrambled).

Please share if someone can figure it out.

Here are the steps to correct pixels (works with 1bpp fonts only):

  1. Select File → Open for your font
  2. Select Element → Bitmap Strikes available. Input size & smoothing values into "Pixel Sizes" field and click OK.
    1. You can create smoothed fonts with @-symbol (e.g. 14@2 will create 14bpp font using 2 bpp smoothing)
    2. You can create multiple pixel sizes by comma separating them (e,g, 15@2,17@2 will create 2 sizes of bitmap fonts)
  3. Select View → N pixel bitmap
  4. Choose each letter, make changes.
  5. Generate font into .ttf format
  6. Use this generated font in TouchGFX. Changes will be there.

moredatalesscenter
Associate III
July 22, 2021

0693W00000D0KDgQAN.pngIs there a solution to make characters on a 1 bpp screen less blocky (see annotated screenshot)?