mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
apprt/embedded: use new copyAttribute API for CoreText
This commit is contained in:
@ -1981,7 +1981,8 @@ pub const CAPI = struct {
|
|||||||
// at 1x but callers of this should be using scaled or apply
|
// at 1x but callers of this should be using scaled or apply
|
||||||
// scale themselves.
|
// scale themselves.
|
||||||
const size: f32 = size: {
|
const size: f32 = size: {
|
||||||
const num = face.font.copyAttribute(.size);
|
const num = face.font.copyAttribute(.size) orelse
|
||||||
|
break :size 12;
|
||||||
defer num.release();
|
defer num.release();
|
||||||
var v: f32 = 12;
|
var v: f32 = 12;
|
||||||
_ = num.getValue(.float, &v);
|
_ = num.getValue(.float, &v);
|
||||||
|
Reference in New Issue
Block a user