mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fa6fed8569
Solve the issue when a font without bold and italic variants is used as the default font (e.g. FreeSerif), and the style tweak "Ignore publisher font-family" is used (which uses a trick to cancel any font-family by requesting a font named "NoSuchFont"): When text is italic or bold, any of the registered fonts which have a real italic or bold variant would win over our default font, as the best substitute to NoSuchFont-Italic. This gives our default font a bit more bias so it can win in its scoring against the other fonts, and be rendered as fake italic or fake bold - which will ensure consistent font and line height. (A bit hacky, but no alternative solution found.) |
4 years ago | |
---|---|---|
.. | ||
canvascontext.lua | 5 years ago | |
credocument.lua | 4 years ago | |
djvudocument.lua | 5 years ago | |
document.lua | 4 years ago | |
documentregistry.lua | 5 years ago | |
koptinterface.lua | 5 years ago | |
pdfdocument.lua | 4 years ago | |
picdocument.lua | 5 years ago | |
tilecacheitem.lua | 7 years ago |