Fix underline length for underlined text (wxPostScriptDC)

Draw underline relatively to the baseline and obtain line parameters using 'stringwidth' operator instead of calculating them manually based on the parameters returned by DoGetTextExtent(), which are not always accurate (e.g. if no AFM files are available).

Closes #17788.
This commit is contained in:
Artur Wieczorek
2017-01-27 22:42:31 +01:00
parent 84c1e48957
commit ba5d07f4b4
2 changed files with 36 additions and 29 deletions

View File

@@ -120,6 +120,7 @@ All (GUI):
- Improve wxImage::Scale() handling of pixels with alpha channel (Tim Kosse).
- Fix parsing of RGBA strings in wxColour (Laurent Poujoulat).
- Refactor code in wxQuantize() for MSVC to avoid crash.
- Fix drawing rotated and/or underlined text on wxPostScriptDC.
wxGTK: