File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,10 @@ impl CTFont {
494
494
}
495
495
}
496
496
497
+ pub fn get_matrix ( & self ) -> CGAffineTransform {
498
+ unsafe { CTFontGetMatrix ( self . as_concrete_TypeRef ( ) ) }
499
+ }
500
+
497
501
pub fn url ( & self ) -> Option < CFURL > {
498
502
unsafe {
499
503
let result = CTFontCopyAttribute ( self . 0 , kCTFontURLAttribute) ;
@@ -692,7 +696,7 @@ extern "C" {
692
696
fn CTFontCopyFontDescriptor ( font : CTFontRef ) -> CTFontDescriptorRef ;
693
697
fn CTFontCopyAttribute ( font : CTFontRef , attribute : CFStringRef ) -> CFTypeRef ;
694
698
fn CTFontGetSize ( font : CTFontRef ) -> CGFloat ;
695
- // fn CTFontGetMatrix
699
+ fn CTFontGetMatrix ( font : CTFontRef ) -> CGAffineTransform ;
696
700
fn CTFontGetSymbolicTraits ( font : CTFontRef ) -> CTFontSymbolicTraits ;
697
701
fn CTFontCopyTraits ( font : CTFontRef ) -> CFDictionaryRef ;
698
702
You can’t perform that action at this time.
0 commit comments