sbrin / lopaka

Lopaka - Stunning graphics for embedded systems displays
https://lopaka.app
Apache License 2.0
319 stars 19 forks source link

Add more fonts #51

Closed sbrin closed 4 months ago

sbrin commented 7 months ago
Gaai commented 5 months ago

Is this helpful? https://github.com/tomchen/bdfparser-js

Test with the live online editor: https://font.tomchen.org/bdfparser_js/editor

<BDF
fontfile='https://raw.githubusercontent.com/olikraus/u8g2/master/tools/font/bdf/9x15.bdf'
pixelcolors={{
  0: 'white',
  1: 'black',
  2: null,
}}
size={2}
func={
  (font, {Font, Glyph, Bitmap, $Font, $Glyph, $Bitmap}) => {
    return font.draw('Hello, might this be what you are looking for? Seems to work quite well with all kinds of BDF files. And custom ones aswell ;) 1234567890 €10,- 18°C', {linelimit: 242}).glow(0)
  }
}/>
sbrin commented 5 months ago

@Gaai thank you, we saw this lib and decided to use our own, it's almost done now, check this PR https://github.com/sbrin/lopaka/pull/70

sbrin commented 4 months ago

New fonts were merged into develop https://dev.lopaka.app/

Will be released soon