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