File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,12 @@ impl CTFont {
494494 }
495495 }
496496
497+ pub fn get_matrix ( & self ) -> CGAffineTransform {
498+ unsafe {
499+ CTFontGetMatrix ( self . as_concrete_TypeRef ( ) )
500+ }
501+ }
502+
497503 pub fn url ( & self ) -> Option < CFURL > {
498504 unsafe {
499505 let result = CTFontCopyAttribute ( self . 0 , kCTFontURLAttribute) ;
@@ -692,7 +698,7 @@ extern "C" {
692698 fn CTFontCopyFontDescriptor ( font : CTFontRef ) -> CTFontDescriptorRef ;
693699 fn CTFontCopyAttribute ( font : CTFontRef , attribute : CFStringRef ) -> CFTypeRef ;
694700 fn CTFontGetSize ( font : CTFontRef ) -> CGFloat ;
695- // fn CTFontGetMatrix
701+ fn CTFontGetMatrix ( font : CTFontRef ) -> CGAffineTransform ;
696702 fn CTFontGetSymbolicTraits ( font : CTFontRef ) -> CTFontSymbolicTraits ;
697703 fn CTFontCopyTraits ( font : CTFontRef ) -> CFDictionaryRef ;
698704
You can’t perform that action at this time.
0 commit comments