Fix bug with point sizes in wxX11 without Pango
XLFD strings specify size in tens of points, so add the missing factor of 10.
This commit is contained in:
@@ -796,7 +796,7 @@ wxFontEncoding wxNativeFontInfo::GetEncoding() const
|
|||||||
void wxNativeFontInfo::SetFractionalPointSize(float pointsize)
|
void wxNativeFontInfo::SetFractionalPointSize(float pointsize)
|
||||||
{
|
{
|
||||||
SetXFontComponent(wxXLFD_POINTSIZE,
|
SetXFontComponent(wxXLFD_POINTSIZE,
|
||||||
wxString::Format("%d", wxRound(pointsize)));
|
wxString::Format("%d", wxRound(10*pointsize)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxNativeFontInfo::SetStyle(wxFontStyle style)
|
void wxNativeFontInfo::SetStyle(wxFontStyle style)
|
||||||
|
Reference in New Issue
Block a user