blob: 49792956de74cbda9f2e61a42daa284e198eb5ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "Base.h"
#include <cru/platform/graphics/Font.h>
#include <CoreText/CoreText.h>
namespace cru::platform::graphics::quartz {
class OsxCTFont : public OsxQuartzResource, public virtual IFont {
public:
OsxCTFont(IGraphicsFactory* graphics_factory, const std::string& name,
float size);
~OsxCTFont() override;
CTFontRef GetCTFont() const { return ct_font_; }
std::string GetFontName() override;
float GetFontSize() override;
private:
std::string name_;
CTFontRef ct_font_;
};
} // namespace cru::platform::graphics::quartz
|