Start adding bindings for CTFontDescriptor and CTFontManager.
This commit is contained in:
+3
-1
@@ -7,4 +7,6 @@ extern mod std;
|
||||
extern mod core_foundation;
|
||||
extern mod core_graphics;
|
||||
|
||||
pub mod font;
|
||||
pub mod font;
|
||||
pub mod font_descriptor;
|
||||
pub mod font_manager;
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
use cf = core_foundation;
|
||||
use cf::array::CFArrayRef;
|
||||
use cf::url::CFURLRef;
|
||||
|
||||
extern {
|
||||
/*
|
||||
* CTFontManager.h
|
||||
*/
|
||||
|
||||
// Incomplete function bindings are mostly related to CoreText font matching, which
|
||||
// we implement in a platform-independent manner using FontMatcher.
|
||||
|
||||
//fn CTFontManagerCompareFontFamilyNames
|
||||
fn CTFontManagerCopyAvailableFontURLs() -> CFArrayRef;
|
||||
fn CTFontManagerCopyAvailableFontFamilyNames() -> CFArrayRef;
|
||||
fn CTFontManagerCopyAvailablePostScriptNames() -> CFArrayRef;
|
||||
fn CTFontManagerCreateFontDescriptorsFromURL(fileURL: CFURLRef) -> CFArrayRef;
|
||||
//fn CTFontManagerCreateFontRequestRunLoopSource
|
||||
//fn CTFontManagerEnableFontDescriptors
|
||||
//fn CTFontManagerGetAutoActivationSetting
|
||||
//fn CTFontManagerGetScopeForURL
|
||||
fn CTFontManagerIsSupportedFont(fontURL: CFURLRef) -> bool;
|
||||
//fn CTFontManagerRegisterFontsForURL
|
||||
//fn CTFontManagerRegisterFontsForURLs
|
||||
//fn
|
||||
}
|
||||
Reference in New Issue
Block a user