Page MenuHome

Change overflow ellipsis character from UTF8 "two dot leader" to UTF8 ellipsis character
Needs RevisionPublic

Authored by Jon Ross (zlsa) on Apr 30 2019, 10:35 PM.



Many fonts (San Francisco, Inter UI, Roboto) do not have the two-dot leader character that Blender uses in text overflow rendering. This patch changes the character to the UTF8 ellipsis character.

This will increase the width of the ellipsis character a tiny bit, but avoids custom fonts from rendering a "glyph not found" symbol when text is truncated in Blender.

Diff Detail

rB Blender

Event Timeline

Campbell Barton (campbellbarton) requested changes to this revision.May 1 2019, 1:27 AM

Since the times when this character is uses space is already not available,
Would prefer to add the ability to detect missing characters in the BLF module.

This revision now requires changes to proceed.May 1 2019, 1:27 AM

@Campbell Barton (campbellbarton) : I have code handy that adds a function to BLF that checks a font for missing glyphs. Do you want me to add that as a patch by itself? It was part of something else but that function on its own might be handy

@Harley Acheson (harley) having it as a separate patch would be useful.

@Campbell Barton (campbellbarton) : having it as a separate patch would be useful.

Done and can be found here.