aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-06-02 18:59:55 +0800
committercrupest <crupest@outlook.com>2022-06-02 18:59:55 +0800
commit190487aec26f8c64ae488cc7bfb0ee068c7ddbb6 (patch)
tree629663dfc8c62a60326b58a5727608784079ecab /include/cru/platform/graphics
parent95b5a61149b4edee4caec03a9c8f87ae4a1845af (diff)
downloadcru-190487aec26f8c64ae488cc7bfb0ee068c7ddbb6.tar.gz
cru-190487aec26f8c64ae488cc7bfb0ee068c7ddbb6.tar.bz2
cru-190487aec26f8c64ae488cc7bfb0ee068c7ddbb6.zip
...
Diffstat (limited to 'include/cru/platform/graphics')
-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