From 190487aec26f8c64ae488cc7bfb0ee068c7ddbb6 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 2 Jun 2022 18:59:55 +0800 Subject: ... --- include/cru/platform/graphics/cairo/PangoFont.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/cru/platform/graphics/cairo/PangoFont.h (limited to 'include') diff --git a/include/cru/platform/graphics/cairo/PangoFont.h b/include/cru/platform/graphics/cairo/PangoFont.h new file mode 100644 index 00000000..75e139af --- /dev/null +++ b/include/cru/platform/graphics/cairo/PangoFont.h @@ -0,0 +1,21 @@ +#pragma once + +#include "../Font.h" +#include "CairoResource.h" + +namespace cru::platform::graphics::cairo { +class PangoFont : public CairoResource, public virtual IFont { + public: + PangoFont(CairoGraphicsFactory* factory, String font_family, float font_size); + + ~PangoFont() override; + + public: + String GetFontName() override; + float GetFontSize() override; + + private: + String font_family_; + float font_size_; +}; +} // namespace cru::platform::graphics::cairo -- cgit v1.2.3