blob: 618c4c482fe277004aa48a66abc321e0903bd325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|