8 #include "../iplatformfont.h" 12 #include "win32support.h" 17 class GdiPlusFont :
public IPlatformFont,
public IFontPainter
20 GdiPlusFont (
const UTF8String& name,
const CCoord& size,
const int32_t& style);
22 Gdiplus::Font* getFont ()
const {
return font; }
24 static bool getAllPlatformFontFamilies (std::list<std::string>& fontFamilyNames);
26 ~GdiPlusFont () noexcept;
28 double getAscent () const override;
29 double getDescent () const override;
30 double getLeading () const override;
31 double getCapHeight () const override;
33 const IFontPainter* getPainter ()
const override {
return this; }
35 void drawString (CDrawContext* context, IPlatformString*
string,
const CPoint& p,
bool antialias =
true)
const override;
36 CCoord getStringWidth (CDrawContext* context, IPlatformString*
string,
bool antialias =
true)
const override;
Definition: customcontrols.cpp:8