Maniphest T80261

Text object Tab glyphs need special handling
Confirmed, LowTO DO

Assigned To
None
Authored By
Jaggz H (jaggz)
Aug 30 2020, 10:21 PM
Tags
  • BF Blender
  • Modeling
Subscribers
Campbell Barton (campbellbarton)
Jaggz H (jaggz)
Paul R (intracube)

Description

While we have special handling for the horizontal displacement of tabs, it seems most system fonts actually do not have a tab glyph itself, and they are doing something different than bfont with regards to the reference to .notdef -- leading blender to place the missing-tab glyph in their place. I've evaluated numerous fonts, and searched my entire system font folder for those with tab glyphs, and almost none actually have them. This leads me to believe that, I believe, we need some additional handling, at least for the tab character, to handle the missing glyph(s) in Text Objects.

Attached is a blend with FreeSerif.ttf, FreeSans, Liberation something, and FreeSans.otf:
(Linux, Debian, different versions. 2.90, 2.91 alpha... Standard system fonts from /usr/share/fonts/truetype/ and /usr/share/fonts/opentype/

The attached shot is blender with FreeSerif (same with most others).

Bfont works fine. It is missing the glyph, but 9 refers to U+fffd / .notdef:

Bfont's 9 (with the .notdef ref):

FreeSerif, at U+fffd (I don't see it specifying .notdef, but it is set as a replacement char):

FreeSerif's tab (9)

DejaVuSans.ttf (9)


DejaVuSans.ttf (U+fffd)

DejaVuSans in Blender with tabs

Event Timeline

Jaggz H (jaggz) created this task.Aug 30 2020, 10:21 PM
Jaggz H (jaggz) updated the task description.Aug 30 2020, 10:29 PM
Jaggz H (jaggz) updated the task description.Aug 30 2020, 10:34 PM
Paul R (intracube) added a subscriber: Paul R (intracube).Aug 30 2020, 10:46 PM
Dalai Felinto (dfelinto) added a project: BF Blender.Aug 31 2020, 9:21 AM
Campbell Barton (campbellbarton) changed the task status from Needs Triage to Confirmed.Aug 31 2020, 11:27 AM
Campbell Barton (campbellbarton) triaged this task as Low priority.
Campbell Barton (campbellbarton) changed the subtype of this task from "Report" to "To Do".
Campbell Barton (campbellbarton) added a project: Modeling.
Campbell Barton (campbellbarton) added a subscriber: Campbell Barton (campbellbarton).

Setting this as TODO.

Campbell Barton (campbellbarton) moved this task from Backlog to Long Term on the Modeling board.Aug 31 2020, 11:28 AM