git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16489
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
pango_layout_line_get_extents(line, NULL, &rect);
- if (width) (*width) = (wxCoord) rect.width;
- if (height) (*height) = (wxCoord) rect.height;
+ if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
+ if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
if (descent)
{
// Do something about metrics here
pango_layout_line_get_extents(line, NULL, &rect);
- if (width) (*width) = (wxCoord) rect.width;
- if (height) (*height) = (wxCoord) rect.height;
+ if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
+ if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
if (descent)
{
// Do something about metrics here