font/coretext: respect quirks fonts for shaper

This commit is contained in:
Mitchell Hashimoto
2024-04-04 12:02:43 -07:00
parent b124378f5c
commit 61d3da1bf6
2 changed files with 35 additions and 9 deletions

View File

@@ -71,6 +71,10 @@ pub const MutableArray = opaque {
CFArrayAppendValue(self, @constCast(@ptrCast(value)));
}
pub fn removeValue(self: *MutableArray, idx: usize) void {
CFArrayRemoveValueAtIndex(self, idx);
}
pub fn sortValues(
self: *MutableArray,
comptime Elem: type,
@@ -104,6 +108,10 @@ pub const MutableArray = opaque {
*MutableArray,
*anyopaque,
) void;
extern "c" fn CFArrayRemoveValueAtIndex(
*MutableArray,
usize,
) void;
extern "c" fn CFArraySortValues(
array: *MutableArray,
range: Range,