Skip to content

Commit f623b62

Browse files
committed
core-text: Implement CTFontGetMatrix.
1 parent dec5ede commit f623b62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core-text/src/font.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ impl CTFont {
494494
}
495495
}
496496

497+
pub fn get_matrix(&self) -> CGAffineTransform {
498+
unsafe { CTFontGetMatrix(self.as_concrete_TypeRef()) }
499+
}
500+
497501
pub fn url(&self) -> Option<CFURL> {
498502
unsafe {
499503
let result = CTFontCopyAttribute(self.0, kCTFontURLAttribute);
@@ -692,7 +696,7 @@ extern "C" {
692696
fn CTFontCopyFontDescriptor(font: CTFontRef) -> CTFontDescriptorRef;
693697
fn CTFontCopyAttribute(font: CTFontRef, attribute: CFStringRef) -> CFTypeRef;
694698
fn CTFontGetSize(font: CTFontRef) -> CGFloat;
695-
//fn CTFontGetMatrix
699+
fn CTFontGetMatrix(font: CTFontRef) -> CGAffineTransform;
696700
fn CTFontGetSymbolicTraits(font: CTFontRef) -> CTFontSymbolicTraits;
697701
fn CTFontCopyTraits(font: CTFontRef) -> CFDictionaryRef;
698702

0 commit comments

Comments
 (0)