Files
core-foundation-rs/font_manager.rs
T
2012-12-13 18:39:35 -08:00

32 lines
1.2 KiB
Rust

use core_foundation::array::CFArrayRef;
use core_foundation::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 CTFontManagerGetAutoActivationSetting
//fn CTFontManagerGetScopeForURL
fn CTFontManagerIsSupportedFont(fontURL: CFURLRef) -> bool;
//fn CTFontManagerRegisterFontsForURL
//fn CTFontManagerRegisterFontsForURLs
//fn CTFontManagerRegisterGraphicsFont
//fn CTFontManagerSetAutoActivationSetting
//fn CTFontManagerUnregisterFontsForURL
//fn CTFontManagerUnregisterFontsForURLs
//fn CTFontManagerUnregisterGraphicsFont
}