remarkable_news
remarkable_news copied to clipboard
Subtitle support
How about we use the built in fonts at /usr/share/fonts/ttf/noto
?
Yeah, thats a good idea. Knowing a little more about how this works now, I guess we could try loading from that location and then fall back to a known file in ./
, this would allow it to work locally and on the device.
Of course, we need to figure out #25 otherwise this is a bit moot!
Alternatively we could embed the font into the binary itself:
https://stackoverflow.com/questions/17796043/how-to-embed-files-into-golang-binaries
That's kinda cool. I think just referencing the font works well enough.
This is looking good so far, but I think it would make more sense to change -text
to something like -subtitle
and have its argument be an xpath to the caption text rather than a fixed string. Just like -xpath
except grabbing text instead of downloading an image.
Also I guess the xkcd font can be deleted now.
Superceded by #37