aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics/cairo/PangoFont.cpp
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 /src/platform/graphics/cairo/PangoFont.cpp
parent95b5a61149b4edee4caec03a9c8f87ae4a1845af (diff)
downloadcru-190487aec26f8c64ae488cc7bfb0ee068c7ddbb6.tar.gz
cru-190487aec26f8c64ae488cc7bfb0ee068c7ddbb6.tar.bz2
cru-190487aec26f8c64ae488cc7bfb0ee068c7ddbb6.zip
...
Diffstat (limited to 'src/platform/graphics/cairo/PangoFont.cpp')
-rw-r--r--src/platform/graphics/cairo/PangoFont.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/platform/graphics/cairo/PangoFont.cpp b/src/platform/graphics/cairo/PangoFont.cpp
new file mode 100644
index 00000000..f43b6c55
--- /dev/null
+++ b/src/platform/graphics/cairo/PangoFont.cpp
@@ -0,0 +1,15 @@
+#include "cru/platform/graphics/cairo/PangoFont.h"
+
+namespace cru::platform::graphics::cairo {
+PangoFont::PangoFont(CairoGraphicsFactory* factory, String font_family,
+ float font_size)
+ : CairoResource(factory),
+ font_family_(std::move(font_family)),
+ font_size_(font_size) {}
+
+PangoFont::~PangoFont() {}
+
+String PangoFont::GetFontName() { return font_family_; }
+
+float PangoFont::GetFontSize() { return font_size_; }
+} // namespace cru::platform::graphics::cairo