UI: Ellipsis Character for Line Continuation

Using ellipsis character for line continuation since that glpyh is now narrower.

Differential Revision: https://developer.blender.org/D6728

Reviewed by Brecht Van Lommel
This commit is contained in:
Harley Acheson 2020-02-01 08:35:08 -08:00
parent bf8a26b745
commit 63d5b974cc
3 changed files with 4 additions and 5 deletions

@ -1 +1 @@
Subproject commit 21dee6f89433249dba6573bf1eaa56a8d5b99c34
Subproject commit ad6928706de2fa8f44fa35a275453c716d65e773

View File

@ -1742,9 +1742,8 @@ float UI_text_clip_middle_ex(const uiFontStyle *fstyle,
strwidth = BLF_width(fstyle->uifont_id, str, max_len);
if ((okwidth > 0.0f) && (strwidth > okwidth)) {
/* utf8 two-dots leader '..' (shorter than ellipsis '...'),
* some compilers complain with real literal string. */
const char sep[] = {0xe2, 0x80, 0xA5, 0x0};
/* Ellipsis. Some compilers complain with real literal string. */
const char sep[] = {0xe2, 0x80, 0xA6, 0x0};
const int sep_len = sizeof(sep) - 1;
const float sep_strwidth = BLF_width(fstyle->uifont_id, sep, sep_len + 1);
float parts_strwidth;

@ -1 +1 @@
Subproject commit ce943dad8a21b4784e2dcef12d8f893473cddb7f
Subproject commit 603f076606f052adc97d937633bfeb9b268ec202