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 @@ -395,6 +395,12 @@ impl CTFont {
395
395
}
396
396
}
397
397
398
+ pub fn get_matrix ( & self ) -> CGAffineTransform {
399
+ unsafe {
400
+ CTFontGetMatrix ( self . as_concrete_TypeRef ( ) )
401
+ }
402
+ }
403
+
398
404
pub fn url ( & self ) -> Option < CFURL > {
399
405
unsafe {
400
406
let result = CTFontCopyAttribute ( self . 0 , kCTFontURLAttribute) ;
@@ -556,7 +562,7 @@ extern {
556
562
fn CTFontCopyFontDescriptor ( font : CTFontRef ) -> CTFontDescriptorRef ;
557
563
fn CTFontCopyAttribute ( font : CTFontRef , attribute : CFStringRef ) -> CFTypeRef ;
558
564
fn CTFontGetSize ( font : CTFontRef ) -> CGFloat ;
559
- // fn CTFontGetMatrix
565
+ fn CTFontGetMatrix ( font : CTFontRef ) -> CGAffineTransform ;
560
566
fn CTFontGetSymbolicTraits ( font : CTFontRef ) -> CTFontSymbolicTraits ;
561
567
fn CTFontCopyTraits ( font : CTFontRef ) -> CFDictionaryRef ;
562
568
You can’t perform that action at this time.
0 commit comments