diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 21:50:24 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 21:50:24 +0800 |
| commit | 728d592f4075ae78b67dab6911ada05875a470a3 (patch) | |
| tree | 57a7232ea0a984b0344bc63a593c1dee65072d2f /include/cru/platform/graphics/quartz/Font.h | |
| parent | 045462a6aed2796976a2f5cf0042f9a0ac1493f7 (diff) | |
| download | cru-728d592f4075ae78b67dab6911ada05875a470a3.tar.gz cru-728d592f4075ae78b67dab6911ada05875a470a3.tar.bz2 cru-728d592f4075ae78b67dab6911ada05875a470a3.zip | |
Fix macOS build.
Diffstat (limited to 'include/cru/platform/graphics/quartz/Font.h')
| -rw-r--r-- | include/cru/platform/graphics/quartz/Font.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/platform/graphics/quartz/Font.h b/include/cru/platform/graphics/quartz/Font.h index 975607b9..d110b59b 100644 --- a/include/cru/platform/graphics/quartz/Font.h +++ b/include/cru/platform/graphics/quartz/Font.h @@ -8,7 +8,7 @@ namespace cru::platform::graphics::quartz { class OsxCTFont : public OsxQuartzResource, public virtual IFont { public: - OsxCTFont(IGraphicsFactory* graphics_factory, const String& name, float size); + OsxCTFont(IGraphicsFactory* graphics_factory, const std::string& name, float size); CRU_DELETE_COPY(OsxCTFont) CRU_DELETE_MOVE(OsxCTFont) @@ -17,11 +17,11 @@ class OsxCTFont : public OsxQuartzResource, public virtual IFont { CTFontRef GetCTFont() const { return ct_font_; } - String GetFontName() override; + std::string GetFontName() override; float GetFontSize() override; private: - String name_; + std::string name_; CTFontRef ct_font_; }; } // namespace cru::platform::graphics::quartz |
