System Font
#1
In order to fulfill my early 2000s nostalgia, I need to 1) make a post here, first, and 2) theme everything and therefore the font on Tangara.
  Reply
#2
What font are you thinking? We've been using this one so far. It's a good default (looks nice enough, and has great character coverage), but I admit it's not a particularly opinionated-looking font!
  Reply
#3
I will never stop until I can VGA it all the way up
[Image: forumsig.gif]
  Reply
#4
Chicago will always feel right to me on this form factor
  Reply
#5
(2024-03-13, 03:21 AM)jepyang Wrote: Chicago will always feel right to me on this form factor

Me too Smile
  Reply
#6
(2024-03-13, 02:19 AM)jacqueline Wrote: What font are you thinking? We've been using this one so far. It's a good default (looks nice enough, and has great character coverage), but I admit it's not a particularly opinionated-looking font!
The current one isn't bad, I just really wanted something double the weight.  Hearing Chicago, that sounds good and now that I think about it some more, maybe a DIN variant.
  Reply
#7
So long as it's a bitmap font, it should look good I think! I tried some antialiased fonts early in development, but it looked bad at small sizes.
  Reply
#8
(2024-03-13, 09:37 PM)jacqueline Wrote: I tried some antialiased fonts early in development, but it looked bad at small sizes.

Oh, is it capable of displaying antialiased fonts? That's something I'd be very interested in messing around with once I get mine
  Reply
#9
LVGL can do it! Our screen's relatively large pixel size just makes them look a bit funky is all.
  Reply
#10
I had a quick Ctrl-F in the docs and could see anything, but it's it possible to set the font in the theme config?
  Reply
#11
You technically can, but it's not very well supported or documented yet. Fonts are currently loaded here: https://codeberg.org/cool-tech-zone/tang...a/font.lua

Using files generated from this script: https://codeberg.org/cool-tech-zone/tang...mkfonts.sh

You could use `lvgl.Font` to load up your own font (provided it's in the correct format) within your theme, but we don't have a mechanism to unload the default fonts atm. Ideally I think we should make font loading a part of the theme so that it's easier to change. It would be also good to investigate whether we can use a 'real' font format to avoid needing to convert to LVGL's special format (I also have issues with LVGL's format due to load times; most of our boot time atm is due to parsing the font files from flash)
  Reply
#12
That's all helpful thanks Smile
  Reply


Forum Jump: