diff options
author | crupest <crupest@outlook.com> | 2022-06-02 18:59:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-06-02 18:59:55 +0800 |
commit | 190487aec26f8c64ae488cc7bfb0ee068c7ddbb6 (patch) | |
tree | 629663dfc8c62a60326b58a5727608784079ecab /include/cru/platform/graphics | |
parent | 95b5a61149b4edee4caec03a9c8f87ae4a1845af (diff) | |
download | cru-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.h | 21 |
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 |