Menu

#1355 Round the measure result of Surface::WidthText()

Committed
closed
5
2020-07-22
2020-05-17
Zufu Liu
No

There are at least two places I think it's better to round it instead of truncating.
One in Editor::TextWidth() used by client to measure text width.
Another in EditView::FormatRange() for the lineNumberWidth.

The others in drawing styled text will need investigate too.
Related bug by truncating is [bugs:#2173].

Related

Bugs: #2173

Discussion

  • Neil Hodgson

    Neil Hodgson - 2020-05-18

    lineNumberWidth is over 5 characters so its unlikely to be significant.

    Editor::TextWidth may help some applications.

     
  • Neil Hodgson

    Neil Hodgson - 2020-06-10
    • labels: --> scintilla, text, measurement
    • Group: Initial --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2020-06-10

    Committed change to Editor::TextWidth as [3665e2].

     

    Related

    Commit: [3665e2]

  • Neil Hodgson

    Neil Hodgson - 2020-07-22
    • status: open --> closed
     
  • Neil Hodgson

    Neil Hodgson - 2020-07-22

    Committed change to Editor::TextWidth as [3665e2].

     

    Related

    Commit: [3665e2]


Log in to post a comment.