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:
gambas 2021-12-17 13:46:43 +01:00
parent 11c7d60ff4
commit 56a235f257

View file

@ -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