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

.bdf fonts not working?

  • February 25, 2021
  • 9 replies
  • 2617 views

Documentation claims:

The Font Converter accepts
 
TrueType (.ttf)
OpenType (.otf)
Glyph Bitmap Distribution Format (.bdf).

I tried to use fonts from:

https://github.com/farsil/ibmfonts

I put fonts into folder: myproject\TouchGFX\assets\fonts

After restarting TouchGFX, IBM fonts do not appear into Typography list.

What is the problem?

This topic has been closed for replies.
Best answer by Tuoman

I noticed that I do not need the .bdf font at all!

I can generate Bitmap strikes in FontForge, and export it as .ttf font for a particular size. Pixel data is retained perfectly, with the ability to modify each pixel.

Thanks for the help anyway!

9 replies

Romain DIELEMAN
ST Employee
February 25, 2021

Hi,

The fonts might be available under another name (or weird name). A way to set it if you cannot find the name in the list would be to open the excel sheet in the assets/texts folder, and set the font you wish to use there. You need to not have TouchGFX open to be able to save the changes in the excel sheet.

/Romain

Tuoman
TuomanAuthor
Senior II
February 26, 2021

It should appear with name IBM xxxx, as stated in the font data

FONT -IBM-BIOS-Normal-R-Normal--8-60-96-96-C-80-ISO10646-1
SIZE 6 96 96
FONTBOUNDINGBOX 8 8 0 -1
STARTPROPERTIES 34
FOUNDRY "IBM"
FAMILY_NAME "IBM BIOS 8x8"
WEIGHT_NAME "Normal"
SLANT "R"
SETWIDTH_NAME "Normal"
ADD_STYLE_NAME ""
PIXEL_SIZE 8
POINT_SIZE 60
RESOLUTION_X 96
RESOLUTION_Y 96
SPACING "C"
AVERAGE_WIDTH 80
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
FONTNAME_REGISTRY ""
CHARSET_COLLECTIONS "ASCII ISOLatin1Encoding ISO8859-2 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-8 ISO8859-4 ISO10646-1"
FONT_NAME "IBMBIOS8x8"
FACE_NAME "IBM BIOS 8x8"

I went through the list, there is no new fonts.

Did you try to import those fonts? Do they work in your TouchGFX? I cannot get these .bdf fonts to appear.

Romain DIELEMAN
ST Employee
February 26, 2021

Hi,

I tried the process I wrote above where you modify directly the font in the excel sheet. I then ran my project on target from CubeIDE and it works (I think, not 100% sure what the font I used from the git repo you shared looks like). However when I opened TouchGFX Designer I had a warning saying that the font was not found.

What I believe is happening is that, like for the OpenType format, TouchGFX handles the formats but TouchGFX Designer does not. You can still work on your GUI and generate code from TouchGFX Designer but will need to run on target from another tool.

/Romain