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/ui
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
..
data EPUB: more support for RTL documents (#5436) 5 years ago
elements UI Changes (#5508) 5 years ago
message [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
network [i18n] Add translator notes (#5250) 5 years ago
plugin SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 7 years ago
widget TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
downloadmgr.lua PathChooser: clearer usage and behaviour (#4133) 6 years ago
event.lua [doc] Add internal documentation references (#5285) 5 years ago
font.lua [Android, fix] Revert slightly more of the Noto business (#5463) 5 years ago
geometry.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
gesturerange.lua Text input fixes and enhancements (#4084) 6 years ago
hook_container.lua Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
language.lua [UX] Add Hebrew keyboard (#5414) 5 years ago
menusorter.lua [fix] MenuSorter: don't add empty menu item (#4848) 5 years ago
opdsparser.lua Escape &, < and > when removing CDATA. 6 years ago
otamanager.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
quickstart.lua [CI] Switch to custom xgettext build to extract multiline strings (#5242) 5 years ago
renderimage.lua decouple device from pdfdocument, font & bgr checking 5 years ago
rendertext.lua TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
screensaver.lua TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
size.lua [UX] Better align buttonprogress in configdialog (#5427) 5 years ago
timeval.lua [fix] TimeVal: add dbg:guard against incorrect subtraction order (#4669) 5 years ago
translator.lua [i18n] Add translator notes (#5250) 5 years ago
trapper.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
uimanager.lua Fix frozen confirmbox when keyboard shown (#5452) 5 years ago
wikipedia.lua EPUB: more support for RTL documents (#5436) 5 years ago