No Serif font on Android

Hi,

first of all: thanks for readlang, I really like it :slight_smile:

currently the only option for a serif font is Times New Roman which is not available on Android. The fallback is a sans-serif font.
Would it be possible for the website to serve the font itself? In case of Times new Roman the license could be an issue and Liberation Serif could be an option.

And a not so important 2. idea: There’s a font called Averia Libre: https://fonts.google.com/specimen/Averia+Libre which could be also a font option for more fantasy-type books/texts.

Thanks for letting me know! I’ve just updated it so that it should choose a serif font as a fallback if Times New Roman is not available. Please refresh your Readlang tab and let me know if it still doesn’t work.

Nice idea! For now I’ve created a bookmarklet which you can use to switch the font to Averia Libre. This isn’t a fully supported feature and you’ll need to rerun the following bookmarklet every time you open Readlang, but thought you might like to give it a try.

How to install the bookmarklet:

  1. Create a new bookmark in your browser.
  2. Name it something like Readlang Fantasy Font.
  3. Edit it to replace the URL field with the following code:
javascript:(function(){document.head.insertAdjacentHTML('beforeend','<link id="handwritingFont" href="//fonts.googleapis.com/css?family=Averia+Libre:400,600" rel="stylesheet" type="text/css">%27);if(typeof models!=="undefined"&&models.user){models.user.save({readerFont:"Averia Libre"},{patch:true});}})();

Once installed, open a text to read in Readlang, click the bookmarklet to run it, and it’ll use Averia Libre.