harpy icon indicating copy to clipboard operation
harpy copied to clipboard

Add additional fallback fonts

Open dnestico opened this issue 3 years ago • 2 comments

I titled it add more fonts but maybe somehow make harpy convert the unreadable tweet font to something different if that makes sense?.. Or I guess just try and add more fonts for the future please that twitter can already convert.

Screenshot_20211204-234225~2.png

dnestico avatar Dec 05 '21 04:12 dnestico

We can try to download and cache more fallback fonts on app start (I don't want to bundle them with the apk because it would blow up the size significantly)

At the moment we use OpenSans as the default body font for the text in a tweet and use NotoSans as a fallback because it covers a bigger character range. If there are still unknown characters your system will look for installed fonts that cover the character. If no font is installed then you see the box in the screenshot.

Here is the text in the screenshot for testing purposes: ɢᴀᴍᴇ ʜɪɢʜʟɪɢʜᴛs | @ ᴍɪɴ | 𝟷𝟸.𝟶𝟺.𝟸𝟷

robertodoering avatar Dec 06 '21 10:12 robertodoering

Just another example Screenshot_20220122-201340.png

dnestico avatar Jan 23 '22 01:01 dnestico

With the next update harpy will come with updated NotoSans fonts that include a lot more glyphs which should cover those characters and display them properly.

Please let me know if you find more in the future (with a link to the tweet if possible)

robertodoering avatar Sep 07 '22 18:09 robertodoering

Can't wait for the next update! Based off everything you recently marked as completed it seems like it's a big one! 👀

dnestico avatar Sep 07 '22 19:09 dnestico