cheshirekow  v0.1.0
freetype.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of cppfontconfig.
5  *
6  * cppfontconfig is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * cppfontconfig is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with cppfontconfig. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef CPPFONTCONFIG_FREETYPE_H_
28 #define CPPFONTCONFIG_FREETYPE_H_
29 
30 #include <fontconfig/fontconfig.h>
32 
33 namespace freetype
34 {
35  template <typename T> class RefPtr;
36  class Face;
37 }
38 
39 namespace fontconfig {
40 
41 namespace ft = freetype;
42 
44 
52 
54 
61 
63 
74  RefPtr<Blanks> blanks, int *spacing);
75 
77 
81 RefPtr<Pattern> Query(const Char8_t *file, int id,
82  RefPtr<Blanks> blanks, int *count);
83 
85 
90  const Char8_t *file, int id,
91  RefPtr<Blanks> blanks);
92 
93 
94 }
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 #endif // FREETYPE_H_
Char32_t CharIndex(ft::RefPtr< ft::Face > face, Char32_t ucs4)
map Unicode to glyph id
unsigned int Char32_t
Definition: common.h:67
pointer to a reference counted object, auto destruct when reference count is zero ...
Definition: freetype.h:35
unsigned char Char8_t
Definition: common.h:65
traits class for a Face, a Freetype face instance. A face object models a given typeface, in a given style.
Definition: Face.h:464
FaceSurrogate< ArrayLike, Scalar > face(const ArrayLike &n, const Scalar &d)
Definition: CertSet.h:167
RefPtr< Pattern > Query(const Char8_t *file, int id, RefPtr< Blanks > blanks, int *count)
compute pattern from font file (and index)
RefPtr< CharSet > CharSetAndSpacing(ft::RefPtr< ft::Face >, RefPtr< Blanks > blanks, int *spacing)
compute Unicode coverage and spacing type
RefPtr< CharSet > GetCharSet(ft::RefPtr< ft::Face > face, RefPtr< Blanks > blanks)
compute Unicode coverage
RefPtr< Pattern > QueryFace(const ft::RefPtr< ft::Face > &face, const Char8_t *file, int id, RefPtr< Blanks > blanks)
compute pattern from FT_Face