After setting the map mode of a DC all other DC with the same font will use the transformed font under Gtk2
Original Reporter info from Mantis: luizamerico
-
Reporter name: Luiz Americo
Original Reporter info from Mantis: luizamerico
- Reporter name: Luiz Americo
Description:
What happens is that the SetMapMode routine transform the font and replace the PangoLayout keeping the same font handle (a PGDIObject = TFont.Reference.Handle). Since this font reference is shared between all controls with the same font description, all will use the transformed font.
The attached file contains one project and one package. To see the problem install the package and load the project in the IDE. All custom control of The IDE will show a font with size 1. Otherwise run the program and see the log messages.
Mantis conversion info:
- Mantis ID: 15449
- OS: Ubuntu
- OS Build: 9.04
- Platform: i386