From 7747eaf11d458670ce9b657c1c41d0f34a426b39 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 24 Aug 2024 20:52:19 -0700 Subject: [PATCH] apprt/embedded: use new copyAttribute API for CoreText --- src/apprt/embedded.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index d3b2d6f29c..0115c0ca5f 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -1981,7 +1981,8 @@ pub const CAPI = struct { // at 1x but callers of this should be using scaled or apply // scale themselves. const size: f32 = size: { - const num = face.font.copyAttribute(.size); + const num = face.font.copyAttribute(.size) orelse + break :size 12; defer num.release(); var v: f32 = 12; _ = num.getValue(.float, &v);