From b5dcee2e35f3686a4e31e68e95100f0471067806 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 4 Aug 2019 14:31:34 +0200 Subject: [PATCH] Use fractional point size for font in wxSVGFileDC output --- src/common/dcsvg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index 74e87dc0b7..852974a97a 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -571,7 +571,7 @@ void wxSVGFileDCImpl::DoDrawRotatedText(const wxString& sText, wxCoord x, wxCoor style += wxString::Format(wxS("font-family:%s; "), m_font.GetFaceName()); style += wxString::Format(wxS("font-weight:%d; "), m_font.GetWeight()); style += wxString::Format(wxS("font-style:%s; "), fontstyle); - style += wxString::Format(wxS("font-size:%dpt; "), m_font.GetPointSize()); + style += wxString::Format(wxS("font-size:%spt; "), NumStr(m_font.GetFractionalPointSize())); style += wxString::Format(wxS("text-decoration:%s; "), textDecoration); style += wxString::Format(wxS("%s %s stroke-width:0; "), wxBrushString(m_textForegroundColour),