Improve print preview and printing with high DPI

All print related scaling is based on 96DPI, so always let the printing contexts return this,
and also adjust the font to this DPI.
This commit is contained in:
Maarten Bent
2022-04-20 20:24:31 +02:00
parent 3da3103eb5
commit 1a1d19e93b
7 changed files with 38 additions and 11 deletions

View File

@@ -36,6 +36,13 @@ public:
virtual wxRect GetPaperRect() const wxOVERRIDE;
virtual wxSize FromDIP(const wxSize& sz) const wxOVERRIDE
{
return sz;
}
void SetFont(const wxFont& font) wxOVERRIDE;
protected:
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
bool useMask = false) wxOVERRIDE;