aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/graphics/quartz/Font.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/osx/graphics/quartz/Font.hpp')
-rw-r--r--include/cru/osx/graphics/quartz/Font.hpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/cru/osx/graphics/quartz/Font.hpp b/include/cru/osx/graphics/quartz/Font.hpp
index d3c50818..618c4c48 100644
--- a/include/cru/osx/graphics/quartz/Font.hpp
+++ b/include/cru/osx/graphics/quartz/Font.hpp
@@ -1,7 +1,23 @@
#pragma once
#include "Resource.hpp"
+#include "cru/common/Base.hpp"
#include "cru/platform/graphics/Font.hpp"
+#include <CoreText/CoreText.h>
+
namespace cru::platform::graphics::osx::quartz {
-
-}
+class OsxCTFont : public OsxQuartzResource, public virtual IFont {
+ public:
+ OsxCTFont(IGraphFactory* graphics_factory, const String& name, float size);
+
+ CRU_DELETE_COPY(OsxCTFont)
+ CRU_DELETE_MOVE(OsxCTFont)
+
+ ~OsxCTFont() override;
+
+ CTFontRef GetCTFont() const { return ct_font_; }
+
+ private:
+ CTFontRef ct_font_;
+};
+} // namespace cru::platform::graphics::osx::quartz