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