particle/string: use HORIZONTAL ELLIPSIS as truncation character #74

Manually merged
dnkl merged 1 commits from horizontal-ellipsis into master 6 months ago
dnkl commented 6 months ago
Owner

First, apply max-len to the converted wide character string, instead of the UTF-8 string. This is better, and more correct, since UTF-8 is multibyte, and applying max-len to that results in strings shorter than max-len.

Second, use HORIZONTAL ELLIPSIS (…) instead of three regular periods (...) as truncation character. This “saves” 2 characters.

To be able to do this, the conversion to a wide character, and glyph rasterization is now done when the exposable is instantiated, instead of in begin_expose().

Closes #73

First, apply max-len to the converted wide character string, instead of the UTF-8 string. This is better, and more correct, since UTF-8 is multibyte, and applying max-len to that results in strings _shorter_ than max-len. Second, use HORIZONTAL ELLIPSIS (…) instead of three regular periods (...) as truncation character. This “saves” 2 characters. To be able to do this, the conversion to a wide character, and glyph rasterization is now done when the exposable is instantiated, instead of in begin_expose(). Closes #73
dnkl added the
enhancement
label 6 months ago
dnkl added 1 commit 6 months ago
8187d60193
particle/string: use HORIZONTAL ELLIPSIS as truncation character
dnkl merged commit b0be7677ab into master manually 6 months ago
The pull request has been manually merged as b0be7677ab.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.