mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
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.) |
||
---|---|---|
.. | ||
canvascontext.lua | ||
credocument.lua | ||
djvudocument.lua | ||
document.lua | ||
documentregistry.lua | ||
koptinterface.lua | ||
pdfdocument.lua | ||
picdocument.lua | ||
tilecacheitem.lua |