aboutsummaryrefslogtreecommitdiff
path: root/src/osx/graphics/quartz/Font.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-20 17:04:27 +0800
committercrupest <crupest@outlook.com>2021-10-20 17:04:27 +0800
commit152133978872f6d6476c3fc7e0e3a5a6cc23b119 (patch)
tree374a793cb56ef5c8d1e413f4b781fec087e28678 /src/osx/graphics/quartz/Font.cpp
parent398aadcddb8b6ed20b17f6c56cd7b49947b72136 (diff)
downloadcru-152133978872f6d6476c3fc7e0e3a5a6cc23b119.tar.gz
cru-152133978872f6d6476c3fc7e0e3a5a6cc23b119.tar.bz2
cru-152133978872f6d6476c3fc7e0e3a5a6cc23b119.zip
...
Diffstat (limited to 'src/osx/graphics/quartz/Font.cpp')
-rw-r--r--src/osx/graphics/quartz/Font.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osx/graphics/quartz/Font.cpp b/src/osx/graphics/quartz/Font.cpp
index 596489e4..72d6d56d 100644
--- a/src/osx/graphics/quartz/Font.cpp
+++ b/src/osx/graphics/quartz/Font.cpp
@@ -13,6 +13,7 @@ OsxCTFont::OsxCTFont(IGraphicsFactory* graphics_factory, const String& name,
CFStringRef n = Convert(name);
ct_font_ = CTFontCreateWithName(n, size, nullptr);
+ Ensures(ct_font_);
CFRelease(n);
}