fpreport: HTML Tags for bold are not correct rendered in pdf
Original Reporter info from Mantis: af0815 @afriess
-
Reporter name: Andi Friess
Original Reporter info from Mantis: af0815 @afriess
- Reporter name: Andi Friess
Description:
Bold text in a memo overwrites the following text in this field. (The following text is not shifted)
The attached fix make the calculation correct.
Reason : see https://forum.lazarus.freepascal.org/index.php/topic,47708.msg343387.html#msg343387
in procedure TFPReportCustomMemo.HTMLOnFoundText(Text: string); the calculation of the textsize and textheight is based on the wrong font
Steps to reproduce:
open attached report in the reportdesigner (from Lazarus), make a preview and export to pdf.
Mantis conversion info:
- Mantis ID: 36459
- OS: Win10 / 64 Pro
- OS Build: Win10 / 64 Pro
- Build: fixes 3.2
- Platform: Dell XPS
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43701 (#3440d166)
- Target version: 3.2.0