From a49064e065eef5de51ba188f691c610dd0a9fcaf Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 4 Jun 2022 23:09:08 +0800 Subject: ... --- include/cru/platform/graphics/cairo/PangoFont.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/cru/platform/graphics/cairo/PangoFont.h b/include/cru/platform/graphics/cairo/PangoFont.h index 75e139af..0e080c18 100644 --- a/include/cru/platform/graphics/cairo/PangoFont.h +++ b/include/cru/platform/graphics/cairo/PangoFont.h @@ -3,6 +3,8 @@ #include "../Font.h" #include "CairoResource.h" +#include + namespace cru::platform::graphics::cairo { class PangoFont : public CairoResource, public virtual IFont { public: @@ -14,8 +16,13 @@ class PangoFont : public CairoResource, public virtual IFont { String GetFontName() override; float GetFontSize() override; + PangoFontDescription* GetPangoFontDescription() { + return pango_font_description_; + } + private: String font_family_; float font_size_; + PangoFontDescription* pango_font_description_; }; } // namespace cru::platform::graphics::cairo -- cgit v1.2.3