File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,17 @@ impl CTFont {
346
346
}
347
347
}
348
348
349
+ pub fn get_available_font_tables ( & self ) -> Option < CFArray < CTFontTableTag > > {
350
+ unsafe {
351
+ let result = CTFontCopyAvailableTables ( self . 0 , kCTFontTableOptionsExcludeSynthetic) ;
352
+ if result. is_null ( ) {
353
+ None
354
+ } else {
355
+ Some ( TCFType :: wrap_under_create_rule ( result) )
356
+ }
357
+ }
358
+ }
359
+
349
360
pub fn get_bounding_rects_for_glyphs ( & self , orientation : CTFontOrientation , glyphs : & [ CGGlyph ] )
350
361
-> CGRect {
351
362
unsafe {
@@ -612,7 +623,7 @@ extern {
612
623
//fn CTFontCreateWithQuickdrawInstance
613
624
614
625
/* Getting Font Table Data */
615
- // fn CTFontCopyAvailableTables(font: CTFontRef, options: CTFontTableOptions) -> CFArrayRef;
626
+ fn CTFontCopyAvailableTables ( font : CTFontRef , options : CTFontTableOptions ) -> CFArrayRef ;
616
627
fn CTFontCopyTable ( font : CTFontRef , table : CTFontTableTag , options : CTFontTableOptions ) -> CFDataRef ;
617
628
618
629
fn CTFontGetTypeID ( ) -> CFTypeID ;
You can’t perform that action at this time.
0 commit comments