aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform')
-rw-r--r--include/cru/platform/graphics/cairo/PangoFont.h21
1 files changed, 21 insertions, 0 deletions
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