remarkable_news icon indicating copy to clipboard operation
remarkable_news copied to clipboard

Subtitle support

Open Evidlo opened this issue 4 years ago • 5 comments

Evidlo avatar Dec 18 '20 08:12 Evidlo

How about we use the built in fonts at /usr/share/fonts/ttf/noto?

Evidlo avatar Dec 18 '20 08:12 Evidlo

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!

fringley avatar Dec 18 '20 10:12 fringley

Alternatively we could embed the font into the binary itself:

https://stackoverflow.com/questions/17796043/how-to-embed-files-into-golang-binaries

Evidlo avatar Dec 18 '20 17:12 Evidlo

That's kinda cool. I think just referencing the font works well enough.

fringley avatar Dec 18 '20 19:12 fringley

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.

Evidlo avatar Dec 28 '20 03:12 Evidlo

Superceded by #37

Evidlo avatar Jan 31 '24 00:01 Evidlo