1 // Copyright 2013 The Servo Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
3 //
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
9 
10 use core_foundation::array::CFArrayRef;
11 use core_foundation::url::CFURLRef;
12 
13 extern {
14     /*
15      * CTFontManager.h
16      */
17 
18     // Incomplete function bindings are mostly related to CoreText font matching, which
19     // we implement in a platform-independent manner using FontMatcher.
20 
21     //pub fn CTFontManagerCompareFontFamilyNames
CTFontManagerCopyAvailableFontURLs() -> CFArrayRef22     pub fn CTFontManagerCopyAvailableFontURLs() -> CFArrayRef;
CTFontManagerCopyAvailableFontFamilyNames() -> CFArrayRef23     pub fn CTFontManagerCopyAvailableFontFamilyNames() -> CFArrayRef;
CTFontManagerCopyAvailablePostScriptNames() -> CFArrayRef24     pub fn CTFontManagerCopyAvailablePostScriptNames() -> CFArrayRef;
CTFontManagerCreateFontDescriptorsFromURL(fileURL: CFURLRef) -> CFArrayRef25     pub fn CTFontManagerCreateFontDescriptorsFromURL(fileURL: CFURLRef) -> CFArrayRef;
26     //pub fn CTFontManagerCreateFontRequestRunLoopSource
27     //pub fn CTFontManagerEnableFontDescriptors
28     //pub fn CTFontManagerGetAutoActivationSetting
29     //pub fn CTFontManagerGetScopeForURL
30     //pub fn CTFontManagerGetAutoActivationSetting
31     //pub fn CTFontManagerGetScopeForURL
CTFontManagerIsSupportedFont(fontURL: CFURLRef) -> bool32     pub fn CTFontManagerIsSupportedFont(fontURL: CFURLRef) -> bool;
33     //pub fn CTFontManagerRegisterFontsForURL
34     //pub fn CTFontManagerRegisterFontsForURLs
35     //pub fn CTFontManagerRegisterGraphicsFont
36     //pub fn CTFontManagerSetAutoActivationSetting
37     //pub fn CTFontManagerUnregisterFontsForURL
38     //pub fn CTFontManagerUnregisterFontsForURLs
39     //pub fn CTFontManagerUnregisterGraphicsFont
40 }
41