File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments