gtk3: Problem with label autosize with Japanese text
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
There is the same issue but for qt4 or qt5 (I cannot find it today). it was fixed.
Run the demo, japanese text is clipped by height, see screenshot.
I tried to find the problem but seems it is call to
function TGtk3WidgetSet.GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer;
var Size: TSize): Boolean;
...
TGtk3DeviceContext(DC).CurrentFont.Layout^.set_text(Str, Count);
TGtk3DeviceContext(DC).CurrentFont.Layout^.get_pixel_size(@Size.Cx, @Size.CY);
...
it cannot be fixed?
Mantis conversion info:
- Mantis ID: 36292
- Platform: Ubuntu 19 x64
- Version: 2.1 (SVN)
- Fixed in revision: r62232 (#4a6447ca)