Skip to content

Convert TTF fonts to GFX: Winter Update Recap! ​

Hey Lopaka Fam, this is Mikhail with our latest updates recap.

Any fonts you like ​

Now you can import any kind of font to your project: BDF, GFX, and even TrueType like TTF, OTF, or WOFF! Available for Plus subscribers All platforms except U8g2 (only works with BDF) Only ASCII glyphs subset.

You can download many free fonts from Google: https://fonts.google.com/

Also, check out the U8g2 repo; it has a huge collection of low-res retro fonts: https://github.com/olikraus/u8g2/tree/master/tools/font/bdf

Align layers ​

One of the most requested features: quick layer alignment buttons for more convenient positioning. Use these buttons in the inspector panel on the right.

Layer titles in generated code ​

Get better code readability and organisation with the new code setting: enable layer titles display in code comments. Now every title makes sense.

I've added a platform filter in our public gallery. Now you can select only the platform you need for quick navigation. And there is an infinite scroll now!

Winter Challenge is extended to January, 31 ​

Everyone should have enough time to participate:

Three winners will receive one year of Lopaka Plus for free! Details: https://lopaka.app/pages/blog/2024-12-christmas-challenge

How to convert a TTF font for your display ​

Converting a TrueType font into a bitmap font your microcontroller can draw takes four steps in Lopaka:

  1. Select a text layer and open the font dropdown in the Inspector.
  2. Click Import font… and choose a .ttf, .otf, or .woff file.
  3. In the Font Wizard, set the Font Height in pixels and use Preview Zoom to check the glyphs. Smaller heights produce compact bitmaps. Larger heights look sharper but use more flash memory.
  4. Click Import. The font appears in the font list and in Code Settings → Fonts, ready to download.

On Adafruit GFX, TFT_eSPI, Arduino_GFX, and GxEPD2, the result is a GFX .h header. On U8g2, vector fonts are now supported too: Lopaka converts them to BDF and you download them as a U8g2 header. Conversion covers printable ASCII, so if you need accented letters or other extended characters, import a BDF or GFX file that already contains them.

A practical tip: on small monochrome OLEDs, text below 8 pixels high is hard to read on real hardware. Every GFX font you include also takes flash memory, so check your budget before you add large sizes. See Fonts for more.

Since this update ​

Alignment buttons now work on several selected layers at once, so you can line up a whole group in one click. Layer titles in comments also matter more today, because they name the variables in generated code. See Code Generation.