GTK2 font handling (mainly affects ScaleBy)
Original Reporter info from Mantis: mftq75
-
Reporter name: C Western
Original Reporter info from Mantis: mftq75
- Reporter name: C Western
Description:
GetFontData(Font.Reference.Handle).Height does not return the value set as Font.Height. I think this is because the wrong logic is used in detecting pixels or points. The attached patch is a possible fix. It will affect ScaleBy as the logic used there is:
Font.Height := MulDiv(GetFontData(Font.Reference.Handle).Height, Multiplier, Divider);
Steps to reproduce:
Test with (say)
Font.Height := 10;
GetFontData(Font.Reference.Handle).Height
Mantis conversion info:
- Mantis ID: 32917
- Platform: linux
- Version: 1.9 (SVN)
- Fixed in revision: r64789 (#05b9887d)
- Monitored by: » @alex65536 (alex256), » AntonK (Anton Kavalenka)