Variable axes fonts #11688
-
Does KOReader support the fonts with variable axes? Take Google Fonts' Literata for example: https://fonts.google.com/specimen/Literata?query=literata It supports 2 axes: weight and optical size. So instead of installing a font version with a specific weight, one can install a variable weight font and choose desired weight as needed. I tried to find answer to this question online, but alas. See here for more information: https://fonts.google.com/knowledge/introducing_type/introducing_variable_fonts |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
KOReader is using FreeType library, as I understand, and it supports OpenType Font Variations starting from version 2.8 (released in 2017). P.S. Looks like it's version 2.13.2, so we should be good: |
Beta Was this translation helpful? Give feedback.
-
Freetype may, but koreader and crengine don't. I think I previously answered this question, but can't find it (may have been on these black holes that GitHub discussion or Gitter are). |
Beta Was this translation helpful? Give feedback.
Freetype may, but koreader and crengine don't.
It needs the user of FreeType to pilot the variation, so it means crengine would need to parse related CSS features, or detect font support, and adjust weight and italic... Lots of work for something that we don't really need.
I think I previously answered this question, but can't find it (may have been on these black holes that GitHub discussion or Gitter are).