cancel
Showing results for 
Search instead for 
Did you mean: 

The best way to pixel correct generated fonts?

Tuoman
Senior II

Many TouchGFX generated font bitmaps contain pixel errors (understandable)

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

4 REPLIES 4

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.

Is there a solution for this with the font converter?

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.

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