aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics/quartz/Font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/graphics/quartz/Font.cpp')
-rw-r--r--src/platform/graphics/quartz/Font.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platform/graphics/quartz/Font.cpp b/src/platform/graphics/quartz/Font.cpp
index 0c03e5e0..12a8aa7f 100644
--- a/src/platform/graphics/quartz/Font.cpp
+++ b/src/platform/graphics/quartz/Font.cpp
@@ -4,8 +4,8 @@
#include "cru/platform/graphics/quartz/Resource.h"
namespace cru::platform::graphics::quartz {
-OsxCTFont::OsxCTFont(IGraphicsFactory* graphics_factory, const String& name,
- float size)
+OsxCTFont::OsxCTFont(IGraphicsFactory* graphics_factory,
+ const std::string& name, float size)
: OsxQuartzResource(graphics_factory), name_(name) {
auto n = ToCFString(name);
@@ -20,6 +20,6 @@ OsxCTFont::OsxCTFont(IGraphicsFactory* graphics_factory, const String& name,
OsxCTFont::~OsxCTFont() { CFRelease(ct_font_); }
-String OsxCTFont::GetFontName() { return name_; }
+std::string OsxCTFont::GetFontName() { return name_; }
float OsxCTFont::GetFontSize() { return CTFontGetSize(ct_font_); }
} // namespace cru::platform::graphics::quartz