adafruit / Adafruit_CircuitPython_Bitmap_Font

Helpers to load bitmap fonts into CircuitPython
MIT License
27 stars 25 forks source link

TTF support #10

Open tannewt opened 5 years ago

tannewt commented 5 years ago

It'd be great to support bitmap fonts stored as TTFs. Here is a bitmap font maker that produces TTFs: http://www.pentacom.jp/pentacom/bitfontmaker2/

evaherrada commented 4 years ago

Closing. Looks like support has been added

toothrot commented 3 years ago

I can't seem to get TTF to work properly. The TTF class seems incomplete, and doesn't implement get_gliph: https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font/blob/ed16e1b2c119cb80915a399a979ad7564a1cd3aa/adafruit_bitmap_font/ttf.py#L14

Am I missing something important, or was this closed by mistake? Thanks!

FoamyGuy commented 3 years ago

I think you are correct @toothrot the TTF implementation is not complete yet. I believe the only two font types currently supported are PCF and BDF.

ladyada commented 3 years ago

TTF is significantly harder - not sure if we really could support it. PCF is really quite nice though, and there are generators!