TextHighlighter: Use the new hidden API that estimates the character width of a specific font.
[GB.EVAL.HIGHLIGHT] * NEW: TextHighlighter: Use the new hidden API that estimates the character width of a specific font.
This commit is contained in:
parent
11c7d60ff4
commit
56a235f257
1 changed files with 1 additions and 1 deletions
|
@ -848,7 +848,7 @@ Public Sub Paint(Text As String, X As Float, Y As Float, Optional Theme As Varia
|
|||
|
||||
Pos = Max(Pos, 1)
|
||||
|
||||
fCharWidth = Paint._EstimateFixedFontCharWidth(Paint.Font)
|
||||
fCharWidth = Paint._EstimateFontCharWidth(Paint.Font, True)
|
||||
LH = Paint.Font.Height + 1
|
||||
BW = 1 + LH \ 6
|
||||
|
||||
|
|
Loading…
Reference in a new issue