2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/frontend/document
poire-z fa6fed8569 cre: setFontFace(): increase bias given to the main font
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.)
2020-02-27 21:22:28 +01:00
..
canvascontext.lua [Desktop] Open writable font dir, toggle system+user/user fonts, fix openLink on mac (#5220) 2019-08-20 18:38:02 +02:00
credocument.lua cre: setFontFace(): increase bias given to the main font 2020-02-27 21:22:28 +01:00
djvudocument.lua decouple UI definitions from document modules 2019-03-03 13:10:45 +01:00
document.lua PicDocuments: fix crash on hold + pan (#5742) 2020-01-04 10:35:17 +01:00
documentregistry.lua [feat] Open unsupported documents as text (#5497) 2019-10-23 23:15:30 +02:00
koptinterface.lua [fix] Prevent crash when no page boxes (#5289) 2019-09-01 22:17:15 +02:00
pdfdocument.lua Avoid writting highlights into read-only PDFs (#5889) 2020-02-25 21:26:19 +01:00
picdocument.lua PicDocument: log reason of opening failure 2019-11-16 18:41:14 +01:00
tilecacheitem.lua feat: add logger module & rewrite kobo suspend script in lua 2017-01-02 19:52:09 -08:00