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.
55f3575a10
A few fixes and enhancement related to bold text: - When using bold=true with a regular font, use its bold variant if one exists (can be prevented by manually adding a setting: "use_bold_font_for_bold" = false). - When using a bold font without bold=true, promote bold to true, so fallback fonts are drawn bold too. - Whether using a bold font, or using bold=true, ensure fallback fonts are drawn bold, with their available bold variant if one exists, or with synthetized bold. - When using a bold variant of a fallback font, keep using the regular variant as another fallback (as bold fonts may contain less glyphs than their regular counterpart). - Allow providing bold=Font.FORCE_SYNTHETIZED_BOLD to get synth bold even when a bold font exists (might be interesting to get text in bold the same width as the same text non-bold). - Use the font realname in the key when caching glyphs, instead of our aliases (cfont, infont...) to avoid duplication and wasting memory. |
5 years ago | |
---|---|---|
.. | ||
apps | 5 years ago | |
device | 5 years ago | |
document | 5 years ago | |
ui | 5 years ago | |
cache.lua | 5 years ago | |
cacheitem.lua | 10 years ago | |
configurable.lua | 5 years ago | |
dbg.lua | 5 years ago | |
depgraph.lua | 5 years ago | |
device.lua | 6 years ago | |
docsettings.lua | 5 years ago | |
dump.lua | 5 years ago | |
fontlist.lua | 5 years ago | |
gettext.lua | 5 years ago | |
httpclient.lua | 8 years ago | |
logger.lua | 5 years ago | |
luadata.lua | 7 years ago | |
luasettings.lua | 5 years ago | |
luxl.lua | 10 years ago | |
optmath.lua | 5 years ago | |
pluginloader.lua | 5 years ago | |
pluginshare.lua | 7 years ago | |
random.lua | 5 years ago | |
readcollection.lua | 5 years ago | |
readhistory.lua | 5 years ago | |
up_reg.list | 10 years ago | |
util.lua | 5 years ago | |
version.lua | 5 years ago |