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:
Submodule release/scripts/addons updated: 21dee6f894...ad6928706d
@@ -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;
|
||||
|
Submodule source/tools updated: ce943dad8a...603f076606
Reference in New Issue
Block a user