Closed ericlangedijk closed 3 months ago
What probably is happening is the font is providing a glyph for the control character and it just happens to be that box. Not all fonts provide one. Some people want control characters rendered, replaced, or skipped entirely, so fontdue provides CharacterInfo::is_control
, as you saw, to let you decide and filter as needed. The intended use here is to skip control characters in your case.
Drawing text with Layout I noticed that the linebreak is displayed in Segoe UI and not with (for example) Calibri. I can skip the display using CharacterInfo::is_control(). But I was wondering what is going on deep down and if there is a setting for this.
segoeui:
calibri: