Add wxGraphicsRenderer::CreateFontAtDPI to support font with fractional pixel-size

This commit is contained in:
Maarten Bent
2019-10-04 23:02:09 +02:00
parent 64f4963396
commit c538e8f9d6
8 changed files with 118 additions and 30 deletions

View File

@@ -727,7 +727,7 @@ public:
}
// returns the resolution of the graphics context in device points per inch
virtual void GetDPI( wxDouble* dpiX, wxDouble* dpiY);
virtual void GetDPI( wxDouble* dpiX, wxDouble* dpiY) const;
#if 0
// sets the current alpha on this context
@@ -1038,6 +1038,9 @@ public:
const wxString& facename,
int flags = wxFONTFLAG_DEFAULT,
const wxColour& col = *wxBLACK) = 0;
virtual wxGraphicsFont CreateFontAtDPI(const wxFont& font,
const wxRealPoint& dpi,
const wxColour& col = *wxBLACK) = 0;
// create a native bitmap representation
virtual wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) = 0;