JarvyJ / rayimg

rayimg is a commandline Raspberry Pi image viewer
GNU Affero General Public License v3.0
1 stars 0 forks source link

Better handling of the font face #2

Closed JarvyJ closed 1 week ago

JarvyJ commented 1 month ago

I don't like that it has to be next to the binary to work. Some options to explore:

It might be nice to let folks specify a custom font? I do want to keep flags limited, but if folks want it, then maybe. Maybe just load "font.ttf" in the directory you're in if it's available.

I'm not exactly sure what how other applications handle fonts from a commandline perspective.

Once this has been sorted, update the docs with the --display flag.

JarvyJ commented 1 week ago

Decided to go with just embedding it for now. I had to mod in ExportFontAsCode to raylib-go and then write a bit of code to load it. But it seems to work great!