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.
koreader/frontend
poire-z f05e62c1fb
TextWidget: small refactoring, better handle max_width (#5503)
Lots of code was doing some renderText calls to get the size
of some text string, and truncate it to some width if needed,
with or without an added ellipsis, before instantiating
a TextWidget with that tweaked text string.

This PR fixes/adds some properties and methods to TextWidget
so all that can be done by it. It makes the calling code
simpler, as they don't need to use RenderText directly.
(Additionally, when we go at using Harfbuzz for text rendering,
we'll just have to update or replace textwidget.lua without
the need to update any higher level code.)

Also:
- RenderText: removed the space added by truncateTextByWidth
  after the ellipsis, as it doesn't feel needed, and break
  right alignment of the ellipsis with other texts.
- KeyValuePage: fix some subtle size and alignment issues.
- NumberPickerWidget: fix font size (provided font size was
  not used)
5 years ago
..
apps TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
device android: fix ko paths when primary storage is a SD card 5 years ago
document [chore] Remove uneeded doc_settings:close() (#5504) 5 years ago
ui TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
cache.lua rename runtimectl to document/canvascontext 5 years ago
cacheitem.lua cleanup: expand tab to 4 spaces 10 years ago
configurable.lua decouple UI definitions from document modules 5 years ago
dbg.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
depgraph.lua Gesture manager (initial) (#4240) 6 years ago
device.lua [feat] Add support for BQ/Fnac devices (#4294) 6 years ago
docsettings.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
dump.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
fontlist.lua android: fix ko paths when primary storage is a SD card 5 years ago
gettext.lua [fix] GetText: guard against empty strings in translation (#5301) 5 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
logger.lua use android log categories 5 years ago
luadata.lua Add LuaData and Dictionary Lookup History (#3161) 7 years ago
luasettings.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
luxl.lua treate quoted slash as plain text in attribute value 10 years ago
optmath.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
pluginloader.lua Add vertical edge gesture (#5156) 5 years ago
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 7 years ago
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
readhistory.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
up_reg.list adapt widgets to new refresh/repaint API 10 years ago
util.lua [i18n] Add translator notes (#5250) 5 years ago
version.lua [doc, fix] Some documentation issues (#5066) 5 years ago