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 | |
---|---|---|
.. | ||
data | 5 years ago | |
elements | 5 years ago | |
message | 5 years ago | |
network | 5 years ago | |
plugin | 7 years ago | |
widget | 5 years ago | |
bidi.lua | 5 years ago | |
cloudmgr.lua | 5 years ago | |
downloadmgr.lua | 6 years ago | |
event.lua | 5 years ago | |
font.lua | 5 years ago | |
geometry.lua | 5 years ago | |
gesturerange.lua | 6 years ago | |
hook_container.lua | 7 years ago | |
language.lua | 5 years ago | |
menusorter.lua | 5 years ago | |
opdsparser.lua | 5 years ago | |
otamanager.lua | 5 years ago | |
quickstart.lua | 5 years ago | |
renderimage.lua | 5 years ago | |
rendertext.lua | 5 years ago | |
screensaver.lua | 5 years ago | |
size.lua | 5 years ago | |
timeval.lua | 5 years ago | |
translator.lua | 5 years ago | |
trapper.lua | 5 years ago | |
uimanager.lua | 5 years ago | |
wikipedia.lua | 5 years ago |