@img/sharp-libvips-dev 1.1.0-rc3 → 1.1.0-rc5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/aom/aom_codec.h +18 -1
- package/include/aom/aom_encoder.h +2 -0
- package/include/aom/aom_image.h +3 -1
- package/include/aom/aomcx.h +52 -12
- package/include/archive.h +3 -3
- package/include/archive_entry.h +3 -2
- package/include/cairo/cairo-version.h +1 -1
- package/include/expat.h +6 -4
- package/include/expat_config.h +3 -3
- package/include/ffi.h +1 -1
- package/include/fontconfig/fcfreetype.h +5 -5
- package/include/fontconfig/fcprivate.h +86 -92
- package/include/fontconfig/fontconfig.h +337 -310
- package/include/gio-unix-2.0/gio/gdesktopappinfo.h +1 -1
- package/include/gio-unix-2.0/gio/gunixmounts.h +95 -23
- package/include/glib-2.0/gio/gdbusconnection.h +65 -5
- package/include/glib-2.0/gio/gdebugcontroller.h +1 -1
- package/include/glib-2.0/gio/gfile.h +4 -0
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +14 -3
- package/include/glib-2.0/gio/gioenumtypes.h +3 -3
- package/include/glib-2.0/gio/giotypes.h +4 -4
- package/include/glib-2.0/gio/gmemorymonitor.h +1 -1
- package/include/glib-2.0/gio/gnetworkmonitor.h +1 -1
- package/include/glib-2.0/gio/gpowerprofilemonitor.h +1 -1
- package/include/glib-2.0/gio/gproxy.h +1 -1
- package/include/glib-2.0/gio/gproxyresolver.h +1 -1
- package/include/glib-2.0/gio/gresource.h +6 -0
- package/include/glib-2.0/gio/gtlsbackend.h +1 -1
- package/include/glib-2.0/gio/gvfs.h +3 -3
- package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/girepository/gicallableinfo.h +12 -0
- package/include/glib-2.0/girepository/gitypes.h +1 -0
- package/include/glib-2.0/glib/garray.h +1 -1
- package/include/glib-2.0/glib/gerror.h +1 -1
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/gmacros.h +3 -3
- package/include/glib-2.0/glib/gmain.h +79 -1
- package/include/glib-2.0/glib/gmem.h +3 -0
- package/include/glib-2.0/glib/goption.h +58 -36
- package/include/glib-2.0/glib/gqueue.h +1 -1
- package/include/glib-2.0/glib/grefstring.h +4 -0
- package/include/glib-2.0/glib/gstdio.h +65 -0
- package/include/glib-2.0/glib/gstrfuncs.h +4 -0
- package/include/glib-2.0/glib/gtestutils.h +65 -33
- package/include/glib-2.0/glib/gthread.h +2 -0
- package/include/glib-2.0/glib/gtypes.h +1 -1
- package/include/glib-2.0/glib/gunicode.h +21 -5
- package/include/glib-2.0/glib/gvariant.h +50 -13
- package/include/glib-2.0/glib/gvarianttype.h +62 -46
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/glib-unix.h +21 -0
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gobject/glib-enumtypes.h +1 -1
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobjectnotifyqueue.c +1 -1
- package/include/glib-2.0/gobject/gparam.h +4 -2
- package/include/glib-2.0/gobject/gsignal.h +22 -7
- package/include/glib-2.0/gobject/gtype.h +10 -4
- package/include/harfbuzz/hb-buffer.h +62 -3
- package/include/harfbuzz/hb-common.h +11 -0
- package/include/harfbuzz/hb-draw.h +10 -2
- package/include/harfbuzz/hb-face.h +29 -2
- package/include/harfbuzz/hb-font.h +6 -0
- package/include/harfbuzz/hb-ft.h +15 -1
- package/include/harfbuzz/hb-ot-shape.h +6 -0
- package/include/harfbuzz/hb-paint.h +9 -1
- package/include/harfbuzz/hb-shape.h +2 -0
- package/include/harfbuzz/hb-subset-serialize.h +83 -0
- package/include/harfbuzz/hb-subset.h +12 -0
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/lcms2.h +7 -5
- package/include/lcms2_plugin.h +1 -1
- package/include/libexif/exif-byte-order.h +2 -0
- package/include/libexif/exif-content.h +2 -0
- package/include/libexif/exif-data-type.h +2 -0
- package/include/libexif/exif-data.h +3 -2
- package/include/libexif/exif-entry.h +2 -0
- package/include/libexif/exif-format.h +2 -0
- package/include/libexif/exif-ifd.h +2 -0
- package/include/libexif/exif-loader.h +2 -0
- package/include/libexif/exif-log.h +2 -0
- package/include/libexif/exif-mem.h +2 -0
- package/include/libexif/exif-mnote-data.h +2 -0
- package/include/libexif/exif-tag.h +2 -0
- package/include/libexif/exif-utils.h +2 -0
- package/include/libheif/heif.h +12 -3
- package/include/libheif/heif_cxx.h +18 -12
- package/include/libheif/heif_items.h +2 -2
- package/include/libheif/heif_properties.h +4 -4
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +120 -12
- package/include/libpng16/pngconf.h +2 -3
- package/include/libpng16/pnglibconf.h +11 -2
- package/include/librsvg-2.0/librsvg/rsvg-features.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +1 -1
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/pango-1.0/pango/pango-features.h +3 -3
- package/include/pango-1.0/pango/pango-font.h +32 -3
- package/include/pango-1.0/pango/pango-fontmap.h +4 -0
- package/include/pango-1.0/pango/pango-layout.h +10 -1
- package/include/pango-1.0/pango/pango-version-macros.h +52 -0
- package/include/pango-1.0/pango/pangofc-fontmap.h +6 -0
- package/include/pixman-1/pixman-version.h +3 -3
- package/include/png.h +120 -12
- package/include/pngconf.h +2 -3
- package/include/pnglibconf.h +11 -2
- package/include/vips/colour.h +2 -0
- package/include/vips/version.h +4 -4
- package/include/webp/encode.h +5 -4
- package/include/webp/sharpyuv/sharpyuv.h +14 -5
- package/include/webp/sharpyuv/sharpyuv_csp.h +5 -0
- package/include/webp/types.h +2 -2
- package/include/zlib.h +4 -4
- package/package.json +1 -1
- package/versions.json +20 -20
|
@@ -25,25 +25,27 @@
|
|
|
25
25
|
#ifndef _FONTCONFIG_H_
|
|
26
26
|
#define _FONTCONFIG_H_
|
|
27
27
|
|
|
28
|
-
#include <sys/types.h>
|
|
29
|
-
#include <sys/stat.h>
|
|
30
|
-
#include <stdarg.h>
|
|
31
28
|
#include <limits.h>
|
|
29
|
+
#include <stdarg.h>
|
|
30
|
+
#include <sys/stat.h>
|
|
31
|
+
#include <sys/types.h>
|
|
32
32
|
|
|
33
33
|
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
|
34
|
-
#define FC_ATTRIBUTE_SENTINEL(x) __attribute__((__sentinel__(0)))
|
|
34
|
+
# define FC_ATTRIBUTE_SENTINEL(x) __attribute__ ((__sentinel__ (0)))
|
|
35
|
+
# define FC_ATTRIBUTE_MAY_ALIAS __attribute__ ((may_alias))
|
|
35
36
|
#else
|
|
36
|
-
#define FC_ATTRIBUTE_SENTINEL(x)
|
|
37
|
+
# define FC_ATTRIBUTE_SENTINEL(x)
|
|
38
|
+
# define FC_ATTRIBUTE_MAY_ALIAS
|
|
37
39
|
#endif
|
|
38
40
|
|
|
39
41
|
#ifndef FcPublic
|
|
40
|
-
#define FcPublic
|
|
42
|
+
# define FcPublic
|
|
41
43
|
#endif
|
|
42
44
|
|
|
43
|
-
typedef unsigned char
|
|
44
|
-
typedef unsigned short
|
|
45
|
-
typedef unsigned int
|
|
46
|
-
typedef int
|
|
45
|
+
typedef unsigned char FcChar8;
|
|
46
|
+
typedef unsigned short FcChar16;
|
|
47
|
+
typedef unsigned int FcChar32;
|
|
48
|
+
typedef int FcBool;
|
|
47
49
|
|
|
48
50
|
/*
|
|
49
51
|
* Current Fontconfig version number. This same number
|
|
@@ -51,11 +53,11 @@ typedef int FcBool;
|
|
|
51
53
|
* it'a a pain to synchronize version numbers like this.
|
|
52
54
|
*/
|
|
53
55
|
|
|
54
|
-
#define FC_MAJOR
|
|
55
|
-
#define FC_MINOR
|
|
56
|
-
#define FC_REVISION
|
|
56
|
+
#define FC_MAJOR 2
|
|
57
|
+
#define FC_MINOR 16
|
|
58
|
+
#define FC_REVISION 1
|
|
57
59
|
|
|
58
|
-
#define FC_VERSION
|
|
60
|
+
#define FC_VERSION ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION))
|
|
59
61
|
|
|
60
62
|
/*
|
|
61
63
|
* Current font cache file format version
|
|
@@ -67,139 +69,139 @@ typedef int FcBool;
|
|
|
67
69
|
* it means multiple copies of the font information.
|
|
68
70
|
*/
|
|
69
71
|
|
|
70
|
-
#define FC_CACHE_VERSION_NUMBER
|
|
71
|
-
#define _FC_STRINGIFY_(s)
|
|
72
|
-
#define _FC_STRINGIFY(s)
|
|
73
|
-
#define FC_CACHE_VERSION
|
|
74
|
-
|
|
75
|
-
#define FcFalse
|
|
76
|
-
#define FcTrue
|
|
77
|
-
#define FcDontCare
|
|
78
|
-
|
|
79
|
-
#define FC_FAMILY
|
|
80
|
-
#define FC_STYLE
|
|
81
|
-
#define FC_SLANT
|
|
82
|
-
#define FC_WEIGHT
|
|
83
|
-
#define FC_SIZE
|
|
84
|
-
#define FC_ASPECT
|
|
85
|
-
#define FC_PIXEL_SIZE
|
|
86
|
-
#define FC_SPACING
|
|
87
|
-
#define FC_FOUNDRY
|
|
88
|
-
#define FC_ANTIALIAS
|
|
89
|
-
#define FC_HINTING
|
|
90
|
-
#define FC_HINT_STYLE
|
|
91
|
-
#define FC_VERTICAL_LAYOUT
|
|
92
|
-
#define FC_AUTOHINT
|
|
72
|
+
#define FC_CACHE_VERSION_NUMBER 9
|
|
73
|
+
#define _FC_STRINGIFY_(s) #s
|
|
74
|
+
#define _FC_STRINGIFY(s) _FC_STRINGIFY_ (s)
|
|
75
|
+
#define FC_CACHE_VERSION _FC_STRINGIFY (FC_CACHE_VERSION_NUMBER)
|
|
76
|
+
|
|
77
|
+
#define FcFalse 0
|
|
78
|
+
#define FcTrue 1
|
|
79
|
+
#define FcDontCare 2
|
|
80
|
+
|
|
81
|
+
#define FC_FAMILY "family" /* String */
|
|
82
|
+
#define FC_STYLE "style" /* String */
|
|
83
|
+
#define FC_SLANT "slant" /* Int */
|
|
84
|
+
#define FC_WEIGHT "weight" /* Int */
|
|
85
|
+
#define FC_SIZE "size" /* Range (double) */
|
|
86
|
+
#define FC_ASPECT "aspect" /* Double */
|
|
87
|
+
#define FC_PIXEL_SIZE "pixelsize" /* Double */
|
|
88
|
+
#define FC_SPACING "spacing" /* Int */
|
|
89
|
+
#define FC_FOUNDRY "foundry" /* String */
|
|
90
|
+
#define FC_ANTIALIAS "antialias" /* Bool (depends) */
|
|
91
|
+
#define FC_HINTING "hinting" /* Bool (true) */
|
|
92
|
+
#define FC_HINT_STYLE "hintstyle" /* Int */
|
|
93
|
+
#define FC_VERTICAL_LAYOUT "verticallayout" /* Bool (false) */
|
|
94
|
+
#define FC_AUTOHINT "autohint" /* Bool (false) */
|
|
93
95
|
/* FC_GLOBAL_ADVANCE is deprecated. this is simply ignored on freetype 2.4.5 or later */
|
|
94
|
-
#define FC_GLOBAL_ADVANCE
|
|
95
|
-
#define FC_WIDTH
|
|
96
|
-
#define FC_FILE
|
|
97
|
-
#define FC_INDEX
|
|
98
|
-
#define FC_FT_FACE
|
|
99
|
-
#define FC_RASTERIZER
|
|
100
|
-
#define FC_OUTLINE
|
|
101
|
-
#define FC_SCALABLE
|
|
102
|
-
#define FC_COLOR
|
|
103
|
-
#define FC_VARIABLE
|
|
104
|
-
#define FC_SCALE
|
|
105
|
-
#define FC_SYMBOL
|
|
106
|
-
#define FC_DPI
|
|
107
|
-
#define FC_RGBA
|
|
108
|
-
#define FC_MINSPACE
|
|
109
|
-
#define FC_SOURCE
|
|
110
|
-
#define FC_CHARSET
|
|
111
|
-
#define FC_LANG
|
|
112
|
-
#define FC_FONTVERSION
|
|
113
|
-
#define FC_FULLNAME
|
|
114
|
-
#define FC_FAMILYLANG
|
|
115
|
-
#define FC_STYLELANG
|
|
116
|
-
#define FC_FULLNAMELANG
|
|
117
|
-
#define FC_CAPABILITY
|
|
118
|
-
#define FC_FONTFORMAT
|
|
119
|
-
#define FC_EMBOLDEN
|
|
120
|
-
#define FC_EMBEDDED_BITMAP
|
|
121
|
-
#define FC_DECORATIVE
|
|
122
|
-
#define FC_LCD_FILTER
|
|
123
|
-
#define FC_FONT_FEATURES
|
|
124
|
-
#define FC_FONT_VARIATIONS
|
|
125
|
-
#define FC_NAMELANG
|
|
126
|
-
#define FC_PRGNAME
|
|
127
|
-
#define FC_HASH
|
|
128
|
-
#define FC_POSTSCRIPT_NAME
|
|
129
|
-
#define FC_FONT_HAS_HINT
|
|
130
|
-
#define FC_ORDER
|
|
131
|
-
#define FC_DESKTOP_NAME
|
|
132
|
-
#define FC_NAMED_INSTANCE
|
|
133
|
-
#define FC_FONT_WRAPPER
|
|
134
|
-
|
|
135
|
-
#define FC_CACHE_SUFFIX
|
|
136
|
-
#define FC_DIR_CACHE_FILE
|
|
137
|
-
#define FC_USER_CACHE_FILE
|
|
96
|
+
#define FC_GLOBAL_ADVANCE "globaladvance" /* Bool (true) */
|
|
97
|
+
#define FC_WIDTH "width" /* Int */
|
|
98
|
+
#define FC_FILE "file" /* String */
|
|
99
|
+
#define FC_INDEX "index" /* Int */
|
|
100
|
+
#define FC_FT_FACE "ftface" /* FT_Face */
|
|
101
|
+
#define FC_RASTERIZER "rasterizer" /* String (deprecated) */
|
|
102
|
+
#define FC_OUTLINE "outline" /* Bool */
|
|
103
|
+
#define FC_SCALABLE "scalable" /* Bool */
|
|
104
|
+
#define FC_COLOR "color" /* Bool */
|
|
105
|
+
#define FC_VARIABLE "variable" /* Bool */
|
|
106
|
+
#define FC_SCALE "scale" /* double (deprecated) */
|
|
107
|
+
#define FC_SYMBOL "symbol" /* Bool */
|
|
108
|
+
#define FC_DPI "dpi" /* double */
|
|
109
|
+
#define FC_RGBA "rgba" /* Int */
|
|
110
|
+
#define FC_MINSPACE "minspace" /* Bool use minimum line spacing */
|
|
111
|
+
#define FC_SOURCE "source" /* String (deprecated) */
|
|
112
|
+
#define FC_CHARSET "charset" /* CharSet */
|
|
113
|
+
#define FC_LANG "lang" /* LangSet Set of RFC 3066 langs */
|
|
114
|
+
#define FC_FONTVERSION "fontversion" /* Int from 'head' table */
|
|
115
|
+
#define FC_FULLNAME "fullname" /* String */
|
|
116
|
+
#define FC_FAMILYLANG "familylang" /* String RFC 3066 langs */
|
|
117
|
+
#define FC_STYLELANG "stylelang" /* String RFC 3066 langs */
|
|
118
|
+
#define FC_FULLNAMELANG "fullnamelang" /* String RFC 3066 langs */
|
|
119
|
+
#define FC_CAPABILITY "capability" /* String */
|
|
120
|
+
#define FC_FONTFORMAT "fontformat" /* String */
|
|
121
|
+
#define FC_EMBOLDEN "embolden" /* Bool - true if emboldening needed*/
|
|
122
|
+
#define FC_EMBEDDED_BITMAP "embeddedbitmap" /* Bool - true to enable embedded bitmaps */
|
|
123
|
+
#define FC_DECORATIVE "decorative" /* Bool - true if style is a decorative variant */
|
|
124
|
+
#define FC_LCD_FILTER "lcdfilter" /* Int */
|
|
125
|
+
#define FC_FONT_FEATURES "fontfeatures" /* String */
|
|
126
|
+
#define FC_FONT_VARIATIONS "fontvariations" /* String */
|
|
127
|
+
#define FC_NAMELANG "namelang" /* String RFC 3866 langs */
|
|
128
|
+
#define FC_PRGNAME "prgname" /* String */
|
|
129
|
+
#define FC_HASH "hash" /* String (deprecated) */
|
|
130
|
+
#define FC_POSTSCRIPT_NAME "postscriptname" /* String */
|
|
131
|
+
#define FC_FONT_HAS_HINT "fonthashint" /* Bool - true if font has hinting */
|
|
132
|
+
#define FC_ORDER "order" /* Integer */
|
|
133
|
+
#define FC_DESKTOP_NAME "desktop" /* String */
|
|
134
|
+
#define FC_NAMED_INSTANCE "namedinstance" /* Bool - true if font is named instance */
|
|
135
|
+
#define FC_FONT_WRAPPER "fontwrapper" /* String */
|
|
136
|
+
|
|
137
|
+
#define FC_CACHE_SUFFIX ".cache-" FC_CACHE_VERSION
|
|
138
|
+
#define FC_DIR_CACHE_FILE "fonts.cache-" FC_CACHE_VERSION
|
|
139
|
+
#define FC_USER_CACHE_FILE ".fonts.cache-" FC_CACHE_VERSION
|
|
138
140
|
|
|
139
141
|
/* Adjust outline rasterizer */
|
|
140
|
-
#define FC_CHARWIDTH
|
|
141
|
-
#define FC_CHAR_WIDTH
|
|
142
|
-
#define FC_CHAR_HEIGHT
|
|
143
|
-
#define FC_MATRIX
|
|
144
|
-
|
|
145
|
-
#define FC_WEIGHT_THIN
|
|
146
|
-
#define FC_WEIGHT_EXTRALIGHT
|
|
147
|
-
#define FC_WEIGHT_ULTRALIGHT
|
|
148
|
-
#define FC_WEIGHT_LIGHT
|
|
149
|
-
#define FC_WEIGHT_DEMILIGHT
|
|
150
|
-
#define FC_WEIGHT_SEMILIGHT
|
|
151
|
-
#define FC_WEIGHT_BOOK
|
|
152
|
-
#define FC_WEIGHT_REGULAR
|
|
153
|
-
#define FC_WEIGHT_NORMAL
|
|
154
|
-
#define FC_WEIGHT_MEDIUM
|
|
155
|
-
#define FC_WEIGHT_DEMIBOLD
|
|
156
|
-
#define FC_WEIGHT_SEMIBOLD
|
|
157
|
-
#define FC_WEIGHT_BOLD
|
|
158
|
-
#define FC_WEIGHT_EXTRABOLD
|
|
159
|
-
#define FC_WEIGHT_ULTRABOLD
|
|
160
|
-
#define FC_WEIGHT_BLACK
|
|
161
|
-
#define FC_WEIGHT_HEAVY
|
|
162
|
-
#define FC_WEIGHT_EXTRABLACK
|
|
163
|
-
#define FC_WEIGHT_ULTRABLACK
|
|
164
|
-
|
|
165
|
-
#define FC_SLANT_ROMAN
|
|
166
|
-
#define FC_SLANT_ITALIC
|
|
167
|
-
#define FC_SLANT_OBLIQUE
|
|
168
|
-
|
|
169
|
-
#define FC_WIDTH_ULTRACONDENSED
|
|
170
|
-
#define FC_WIDTH_EXTRACONDENSED
|
|
171
|
-
#define FC_WIDTH_CONDENSED
|
|
172
|
-
#define FC_WIDTH_SEMICONDENSED
|
|
173
|
-
#define FC_WIDTH_NORMAL
|
|
174
|
-
#define FC_WIDTH_SEMIEXPANDED
|
|
175
|
-
#define FC_WIDTH_EXPANDED
|
|
176
|
-
#define FC_WIDTH_EXTRAEXPANDED
|
|
177
|
-
#define FC_WIDTH_ULTRAEXPANDED
|
|
178
|
-
|
|
179
|
-
#define FC_PROPORTIONAL
|
|
180
|
-
#define FC_DUAL
|
|
181
|
-
#define FC_MONO
|
|
182
|
-
#define FC_CHARCELL
|
|
142
|
+
#define FC_CHARWIDTH "charwidth" /* Int */
|
|
143
|
+
#define FC_CHAR_WIDTH FC_CHARWIDTH
|
|
144
|
+
#define FC_CHAR_HEIGHT "charheight" /* Int */
|
|
145
|
+
#define FC_MATRIX "matrix" /* FcMatrix */
|
|
146
|
+
|
|
147
|
+
#define FC_WEIGHT_THIN 0
|
|
148
|
+
#define FC_WEIGHT_EXTRALIGHT 40
|
|
149
|
+
#define FC_WEIGHT_ULTRALIGHT FC_WEIGHT_EXTRALIGHT
|
|
150
|
+
#define FC_WEIGHT_LIGHT 50
|
|
151
|
+
#define FC_WEIGHT_DEMILIGHT 55
|
|
152
|
+
#define FC_WEIGHT_SEMILIGHT FC_WEIGHT_DEMILIGHT
|
|
153
|
+
#define FC_WEIGHT_BOOK 75
|
|
154
|
+
#define FC_WEIGHT_REGULAR 80
|
|
155
|
+
#define FC_WEIGHT_NORMAL FC_WEIGHT_REGULAR
|
|
156
|
+
#define FC_WEIGHT_MEDIUM 100
|
|
157
|
+
#define FC_WEIGHT_DEMIBOLD 180
|
|
158
|
+
#define FC_WEIGHT_SEMIBOLD FC_WEIGHT_DEMIBOLD
|
|
159
|
+
#define FC_WEIGHT_BOLD 200
|
|
160
|
+
#define FC_WEIGHT_EXTRABOLD 205
|
|
161
|
+
#define FC_WEIGHT_ULTRABOLD FC_WEIGHT_EXTRABOLD
|
|
162
|
+
#define FC_WEIGHT_BLACK 210
|
|
163
|
+
#define FC_WEIGHT_HEAVY FC_WEIGHT_BLACK
|
|
164
|
+
#define FC_WEIGHT_EXTRABLACK 215
|
|
165
|
+
#define FC_WEIGHT_ULTRABLACK FC_WEIGHT_EXTRABLACK
|
|
166
|
+
|
|
167
|
+
#define FC_SLANT_ROMAN 0
|
|
168
|
+
#define FC_SLANT_ITALIC 100
|
|
169
|
+
#define FC_SLANT_OBLIQUE 110
|
|
170
|
+
|
|
171
|
+
#define FC_WIDTH_ULTRACONDENSED 50
|
|
172
|
+
#define FC_WIDTH_EXTRACONDENSED 63
|
|
173
|
+
#define FC_WIDTH_CONDENSED 75
|
|
174
|
+
#define FC_WIDTH_SEMICONDENSED 87
|
|
175
|
+
#define FC_WIDTH_NORMAL 100
|
|
176
|
+
#define FC_WIDTH_SEMIEXPANDED 113
|
|
177
|
+
#define FC_WIDTH_EXPANDED 125
|
|
178
|
+
#define FC_WIDTH_EXTRAEXPANDED 150
|
|
179
|
+
#define FC_WIDTH_ULTRAEXPANDED 200
|
|
180
|
+
|
|
181
|
+
#define FC_PROPORTIONAL 0
|
|
182
|
+
#define FC_DUAL 90
|
|
183
|
+
#define FC_MONO 100
|
|
184
|
+
#define FC_CHARCELL 110
|
|
183
185
|
|
|
184
186
|
/* sub-pixel order */
|
|
185
|
-
#define FC_RGBA_UNKNOWN
|
|
186
|
-
#define FC_RGBA_RGB
|
|
187
|
-
#define FC_RGBA_BGR
|
|
188
|
-
#define FC_RGBA_VRGB
|
|
189
|
-
#define FC_RGBA_VBGR
|
|
190
|
-
#define FC_RGBA_NONE
|
|
187
|
+
#define FC_RGBA_UNKNOWN 0
|
|
188
|
+
#define FC_RGBA_RGB 1
|
|
189
|
+
#define FC_RGBA_BGR 2
|
|
190
|
+
#define FC_RGBA_VRGB 3
|
|
191
|
+
#define FC_RGBA_VBGR 4
|
|
192
|
+
#define FC_RGBA_NONE 5
|
|
191
193
|
|
|
192
194
|
/* hinting style */
|
|
193
|
-
#define FC_HINT_NONE
|
|
194
|
-
#define FC_HINT_SLIGHT
|
|
195
|
-
#define FC_HINT_MEDIUM
|
|
196
|
-
#define FC_HINT_FULL
|
|
195
|
+
#define FC_HINT_NONE 0
|
|
196
|
+
#define FC_HINT_SLIGHT 1
|
|
197
|
+
#define FC_HINT_MEDIUM 2
|
|
198
|
+
#define FC_HINT_FULL 3
|
|
197
199
|
|
|
198
200
|
/* LCD filter */
|
|
199
|
-
#define FC_LCD_NONE
|
|
200
|
-
#define FC_LCD_DEFAULT
|
|
201
|
-
#define FC_LCD_LIGHT
|
|
202
|
-
#define FC_LCD_LEGACY
|
|
201
|
+
#define FC_LCD_NONE 0
|
|
202
|
+
#define FC_LCD_DEFAULT 1
|
|
203
|
+
#define FC_LCD_LIGHT 2
|
|
204
|
+
#define FC_LCD_LEGACY 3
|
|
203
205
|
|
|
204
206
|
typedef enum _FcType {
|
|
205
207
|
FcTypeUnknown = -1,
|
|
@@ -219,8 +221,8 @@ typedef struct _FcMatrix {
|
|
|
219
221
|
double xx, xy, yx, yy;
|
|
220
222
|
} FcMatrix;
|
|
221
223
|
|
|
222
|
-
#define FcMatrixInit(m)
|
|
223
|
-
|
|
224
|
+
#define FcMatrixInit(m) ((m)->xx = (m)->yy = 1, \
|
|
225
|
+
(m)->xy = (m)->yx = 0)
|
|
224
226
|
|
|
225
227
|
/*
|
|
226
228
|
* A data structure to represent the available glyphs in a font.
|
|
@@ -230,67 +232,74 @@ typedef struct _FcMatrix {
|
|
|
230
232
|
typedef struct _FcCharSet FcCharSet;
|
|
231
233
|
|
|
232
234
|
typedef struct _FcObjectType {
|
|
233
|
-
char
|
|
234
|
-
FcType
|
|
235
|
+
char *object;
|
|
236
|
+
FcType type;
|
|
235
237
|
} FcObjectType;
|
|
236
238
|
|
|
237
239
|
typedef struct _FcConstant {
|
|
238
|
-
const FcChar8
|
|
239
|
-
const char
|
|
240
|
-
int
|
|
240
|
+
const FcChar8 *name;
|
|
241
|
+
const char *object;
|
|
242
|
+
int value;
|
|
241
243
|
} FcConstant;
|
|
242
244
|
|
|
243
245
|
typedef enum _FcResult {
|
|
244
|
-
FcResultMatch,
|
|
246
|
+
FcResultMatch,
|
|
247
|
+
FcResultNoMatch,
|
|
248
|
+
FcResultTypeMismatch,
|
|
249
|
+
FcResultNoId,
|
|
245
250
|
FcResultOutOfMemory
|
|
246
251
|
} FcResult;
|
|
247
252
|
|
|
248
253
|
typedef enum _FcValueBinding {
|
|
249
|
-
FcValueBindingWeak,
|
|
254
|
+
FcValueBindingWeak,
|
|
255
|
+
FcValueBindingStrong,
|
|
256
|
+
FcValueBindingSame,
|
|
250
257
|
/* to make sure sizeof (FcValueBinding) == 4 even with -fshort-enums */
|
|
251
258
|
FcValueBindingEnd = INT_MAX
|
|
252
259
|
} FcValueBinding;
|
|
253
260
|
|
|
254
|
-
typedef struct _FcPattern
|
|
261
|
+
typedef struct _FcPattern FcPattern;
|
|
255
262
|
|
|
256
|
-
typedef struct _FcPatternIter {
|
|
263
|
+
typedef struct FC_ATTRIBUTE_MAY_ALIAS _FcPatternIter {
|
|
257
264
|
void *dummy1;
|
|
258
265
|
void *dummy2;
|
|
259
266
|
} FcPatternIter;
|
|
260
267
|
|
|
261
|
-
typedef struct _FcLangSet
|
|
268
|
+
typedef struct _FcLangSet FcLangSet;
|
|
262
269
|
|
|
263
|
-
typedef struct _FcRange
|
|
270
|
+
typedef struct _FcRange FcRange;
|
|
264
271
|
|
|
265
272
|
typedef struct _FcValue {
|
|
266
|
-
FcType
|
|
273
|
+
FcType type;
|
|
267
274
|
union {
|
|
268
|
-
const FcChar8
|
|
269
|
-
int
|
|
270
|
-
FcBool
|
|
271
|
-
double
|
|
272
|
-
const FcMatrix
|
|
273
|
-
const FcCharSet
|
|
274
|
-
void
|
|
275
|
-
const FcLangSet
|
|
276
|
-
const FcRange
|
|
275
|
+
const FcChar8 *s;
|
|
276
|
+
int i;
|
|
277
|
+
FcBool b;
|
|
278
|
+
double d;
|
|
279
|
+
const FcMatrix *m;
|
|
280
|
+
const FcCharSet *c;
|
|
281
|
+
void *f;
|
|
282
|
+
const FcLangSet *l;
|
|
283
|
+
const FcRange *r;
|
|
277
284
|
} u;
|
|
278
285
|
} FcValue;
|
|
279
286
|
|
|
280
287
|
typedef struct _FcFontSet {
|
|
281
|
-
int
|
|
282
|
-
int
|
|
283
|
-
FcPattern
|
|
288
|
+
int nfont;
|
|
289
|
+
int sfont;
|
|
290
|
+
FcPattern **fonts;
|
|
284
291
|
} FcFontSet;
|
|
285
292
|
|
|
286
293
|
typedef struct _FcObjectSet {
|
|
287
|
-
int
|
|
288
|
-
int
|
|
289
|
-
const char
|
|
294
|
+
int nobject;
|
|
295
|
+
int sobject;
|
|
296
|
+
const char **objects;
|
|
290
297
|
} FcObjectSet;
|
|
291
298
|
|
|
292
299
|
typedef enum _FcMatchKind {
|
|
293
|
-
FcMatchPattern,
|
|
300
|
+
FcMatchPattern,
|
|
301
|
+
FcMatchFont,
|
|
302
|
+
FcMatchScan,
|
|
294
303
|
FcMatchKindEnd,
|
|
295
304
|
FcMatchKindBegin = FcMatchPattern
|
|
296
305
|
} FcMatchKind;
|
|
@@ -308,34 +317,38 @@ typedef enum _FcSetName {
|
|
|
308
317
|
} FcSetName;
|
|
309
318
|
|
|
310
319
|
typedef struct _FcConfigFileInfoIter {
|
|
311
|
-
void
|
|
312
|
-
void
|
|
313
|
-
void
|
|
320
|
+
void *dummy1;
|
|
321
|
+
void *dummy2;
|
|
322
|
+
void *dummy3;
|
|
314
323
|
} FcConfigFileInfoIter;
|
|
315
324
|
|
|
316
325
|
typedef struct _FcAtomic FcAtomic;
|
|
317
326
|
|
|
318
327
|
#if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */
|
|
319
|
-
#define _FCFUNCPROTOBEGIN extern "C" {
|
|
320
|
-
#define _FCFUNCPROTOEND
|
|
328
|
+
# define _FCFUNCPROTOBEGIN extern "C" { /* do not leave open across includes */
|
|
329
|
+
# define _FCFUNCPROTOEND }
|
|
321
330
|
#else
|
|
322
|
-
#define _FCFUNCPROTOBEGIN
|
|
323
|
-
#define _FCFUNCPROTOEND
|
|
331
|
+
# define _FCFUNCPROTOBEGIN
|
|
332
|
+
# define _FCFUNCPROTOEND
|
|
324
333
|
#endif
|
|
325
334
|
|
|
326
|
-
typedef enum { FcEndianBig,
|
|
335
|
+
typedef enum { FcEndianBig,
|
|
336
|
+
FcEndianLittle } FcEndian;
|
|
337
|
+
|
|
338
|
+
typedef struct _FcConfig FcConfig;
|
|
327
339
|
|
|
328
|
-
typedef struct
|
|
340
|
+
typedef struct _FcGlobalCache FcFileCache;
|
|
329
341
|
|
|
330
|
-
typedef struct
|
|
342
|
+
typedef struct _FcBlanks FcBlanks;
|
|
331
343
|
|
|
332
|
-
typedef struct
|
|
344
|
+
typedef struct _FcStrList FcStrList;
|
|
333
345
|
|
|
334
|
-
typedef struct
|
|
346
|
+
typedef struct _FcStrSet FcStrSet;
|
|
335
347
|
|
|
336
|
-
typedef struct
|
|
348
|
+
typedef struct _FcCache FcCache;
|
|
337
349
|
|
|
338
|
-
typedef
|
|
350
|
+
typedef void (*FcDestroyFunc) (void *data);
|
|
351
|
+
typedef FcBool (*FcFilterFontSetFunc) (const FcPattern *font, void *user_data);
|
|
339
352
|
|
|
340
353
|
_FCFUNCPROTOBEGIN
|
|
341
354
|
|
|
@@ -355,10 +368,10 @@ FcBlanksIsMember (FcBlanks *b, FcChar32 ucs4);
|
|
|
355
368
|
/* fccache.c */
|
|
356
369
|
|
|
357
370
|
FcPublic const FcChar8 *
|
|
358
|
-
FcCacheDir(const FcCache *c);
|
|
371
|
+
FcCacheDir (const FcCache *c);
|
|
359
372
|
|
|
360
373
|
FcPublic FcFontSet *
|
|
361
|
-
FcCacheCopySet(const FcCache *c);
|
|
374
|
+
FcCacheCopySet (const FcCache *c);
|
|
362
375
|
|
|
363
376
|
FcPublic const FcChar8 *
|
|
364
377
|
FcCacheSubdir (const FcCache *c, int i);
|
|
@@ -383,12 +396,12 @@ FcCacheCreateTagFile (FcConfig *config);
|
|
|
383
396
|
|
|
384
397
|
FcPublic FcBool
|
|
385
398
|
FcDirCacheCreateUUID (FcChar8 *dir,
|
|
386
|
-
|
|
387
|
-
|
|
399
|
+
FcBool force,
|
|
400
|
+
FcConfig *config);
|
|
388
401
|
|
|
389
402
|
FcPublic FcBool
|
|
390
|
-
FcDirCacheDeleteUUID (const FcChar8
|
|
391
|
-
|
|
403
|
+
FcDirCacheDeleteUUID (const FcChar8 *dir,
|
|
404
|
+
FcConfig *config);
|
|
392
405
|
|
|
393
406
|
/* fccfg.c */
|
|
394
407
|
FcPublic FcChar8 *
|
|
@@ -399,7 +412,7 @@ FcConfigEnableHome (FcBool enable);
|
|
|
399
412
|
|
|
400
413
|
FcPublic FcChar8 *
|
|
401
414
|
FcConfigGetFilename (FcConfig *config,
|
|
402
|
-
|
|
415
|
+
const FcChar8 *url);
|
|
403
416
|
|
|
404
417
|
FcPublic FcChar8 *
|
|
405
418
|
FcConfigFilename (const FcChar8 *url);
|
|
@@ -426,22 +439,22 @@ FcPublic FcBool
|
|
|
426
439
|
FcConfigBuildFonts (FcConfig *config);
|
|
427
440
|
|
|
428
441
|
FcPublic FcStrList *
|
|
429
|
-
FcConfigGetFontDirs (FcConfig
|
|
442
|
+
FcConfigGetFontDirs (FcConfig *config);
|
|
430
443
|
|
|
431
444
|
FcPublic FcStrList *
|
|
432
|
-
FcConfigGetConfigDirs (FcConfig
|
|
445
|
+
FcConfigGetConfigDirs (FcConfig *config);
|
|
433
446
|
|
|
434
447
|
FcPublic FcStrList *
|
|
435
|
-
FcConfigGetConfigFiles (FcConfig
|
|
448
|
+
FcConfigGetConfigFiles (FcConfig *config);
|
|
436
449
|
|
|
437
450
|
FcPublic FcChar8 *
|
|
438
|
-
FcConfigGetCache (FcConfig
|
|
451
|
+
FcConfigGetCache (FcConfig *config);
|
|
439
452
|
|
|
440
453
|
FcPublic FcBlanks *
|
|
441
454
|
FcConfigGetBlanks (FcConfig *config);
|
|
442
455
|
|
|
443
456
|
FcPublic FcStrList *
|
|
444
|
-
FcConfigGetCacheDirs (FcConfig
|
|
457
|
+
FcConfigGetCacheDirs (FcConfig *config);
|
|
445
458
|
|
|
446
459
|
FcPublic int
|
|
447
460
|
FcConfigGetRescanInterval (FcConfig *config);
|
|
@@ -450,55 +463,69 @@ FcPublic FcBool
|
|
|
450
463
|
FcConfigSetRescanInterval (FcConfig *config, int rescanInterval);
|
|
451
464
|
|
|
452
465
|
FcPublic FcFontSet *
|
|
453
|
-
FcConfigGetFonts (FcConfig
|
|
454
|
-
|
|
466
|
+
FcConfigGetFonts (FcConfig *config,
|
|
467
|
+
FcSetName set);
|
|
455
468
|
|
|
456
469
|
FcPublic FcBool
|
|
457
|
-
|
|
458
|
-
|
|
470
|
+
FcConfigAcceptFont (FcConfig *config,
|
|
471
|
+
const FcPattern *font);
|
|
459
472
|
|
|
460
473
|
FcPublic FcBool
|
|
461
|
-
|
|
462
|
-
|
|
474
|
+
FcConfigAcceptFilter (FcConfig *config,
|
|
475
|
+
const FcPattern *font);
|
|
476
|
+
|
|
477
|
+
FcPublic FcBool
|
|
478
|
+
FcConfigAppFontAddFile (FcConfig *config,
|
|
479
|
+
const FcChar8 *file);
|
|
480
|
+
|
|
481
|
+
FcPublic FcBool
|
|
482
|
+
FcConfigAppFontAddDir (FcConfig *config,
|
|
483
|
+
const FcChar8 *dir);
|
|
463
484
|
|
|
464
485
|
FcPublic void
|
|
465
|
-
FcConfigAppFontClear (FcConfig
|
|
486
|
+
FcConfigAppFontClear (FcConfig *config);
|
|
466
487
|
|
|
467
488
|
FcPublic FcBool
|
|
468
|
-
FcConfigSubstituteWithPat (FcConfig
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
489
|
+
FcConfigSubstituteWithPat (FcConfig *config,
|
|
490
|
+
FcPattern *p,
|
|
491
|
+
FcPattern *p_pat,
|
|
492
|
+
FcMatchKind kind);
|
|
472
493
|
|
|
473
494
|
FcPublic FcBool
|
|
474
|
-
FcConfigSubstitute (FcConfig
|
|
475
|
-
|
|
476
|
-
|
|
495
|
+
FcConfigSubstitute (FcConfig *config,
|
|
496
|
+
FcPattern *p,
|
|
497
|
+
FcMatchKind kind);
|
|
477
498
|
|
|
478
499
|
FcPublic const FcChar8 *
|
|
479
500
|
FcConfigGetSysRoot (const FcConfig *config);
|
|
480
501
|
|
|
481
502
|
FcPublic void
|
|
482
503
|
FcConfigSetSysRoot (FcConfig *config,
|
|
483
|
-
|
|
504
|
+
const FcChar8 *sysroot);
|
|
505
|
+
|
|
506
|
+
FcPublic FcConfig *
|
|
507
|
+
FcConfigSetFontSetFilter (FcConfig *config,
|
|
508
|
+
FcFilterFontSetFunc filter_func,
|
|
509
|
+
FcDestroyFunc destroy_data_func,
|
|
510
|
+
void *user_data);
|
|
484
511
|
|
|
485
512
|
FcPublic void
|
|
486
|
-
FcConfigFileInfoIterInit (FcConfig
|
|
487
|
-
|
|
513
|
+
FcConfigFileInfoIterInit (FcConfig *config,
|
|
514
|
+
FcConfigFileInfoIter *iter);
|
|
488
515
|
|
|
489
516
|
FcPublic FcBool
|
|
490
|
-
FcConfigFileInfoIterNext (FcConfig
|
|
491
|
-
|
|
517
|
+
FcConfigFileInfoIterNext (FcConfig *config,
|
|
518
|
+
FcConfigFileInfoIter *iter);
|
|
492
519
|
|
|
493
520
|
FcPublic FcBool
|
|
494
|
-
FcConfigFileInfoIterGet (FcConfig
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
521
|
+
FcConfigFileInfoIterGet (FcConfig *config,
|
|
522
|
+
FcConfigFileInfoIter *iter,
|
|
523
|
+
FcChar8 **name,
|
|
524
|
+
FcChar8 **description,
|
|
525
|
+
FcBool *enabled);
|
|
499
526
|
|
|
500
527
|
/* fccharset.c */
|
|
501
|
-
FcPublic FcCharSet*
|
|
528
|
+
FcPublic FcCharSet *
|
|
502
529
|
FcCharSetCreate (void);
|
|
503
530
|
|
|
504
531
|
/* deprecated alias for FcCharSetCreate */
|
|
@@ -514,19 +541,19 @@ FcCharSetAddChar (FcCharSet *fcs, FcChar32 ucs4);
|
|
|
514
541
|
FcPublic FcBool
|
|
515
542
|
FcCharSetDelChar (FcCharSet *fcs, FcChar32 ucs4);
|
|
516
543
|
|
|
517
|
-
FcPublic FcCharSet*
|
|
544
|
+
FcPublic FcCharSet *
|
|
518
545
|
FcCharSetCopy (FcCharSet *src);
|
|
519
546
|
|
|
520
547
|
FcPublic FcBool
|
|
521
548
|
FcCharSetEqual (const FcCharSet *a, const FcCharSet *b);
|
|
522
549
|
|
|
523
|
-
FcPublic FcCharSet*
|
|
550
|
+
FcPublic FcCharSet *
|
|
524
551
|
FcCharSetIntersect (const FcCharSet *a, const FcCharSet *b);
|
|
525
552
|
|
|
526
|
-
FcPublic FcCharSet*
|
|
553
|
+
FcPublic FcCharSet *
|
|
527
554
|
FcCharSetUnion (const FcCharSet *a, const FcCharSet *b);
|
|
528
555
|
|
|
529
|
-
FcPublic FcCharSet*
|
|
556
|
+
FcPublic FcCharSet *
|
|
530
557
|
FcCharSetSubtract (const FcCharSet *a, const FcCharSet *b);
|
|
531
558
|
|
|
532
559
|
FcPublic FcBool
|
|
@@ -547,18 +574,18 @@ FcCharSetSubtractCount (const FcCharSet *a, const FcCharSet *b);
|
|
|
547
574
|
FcPublic FcBool
|
|
548
575
|
FcCharSetIsSubset (const FcCharSet *a, const FcCharSet *b);
|
|
549
576
|
|
|
550
|
-
#define FC_CHARSET_MAP_SIZE (256/32)
|
|
551
|
-
#define FC_CHARSET_DONE
|
|
577
|
+
#define FC_CHARSET_MAP_SIZE (256 / 32)
|
|
578
|
+
#define FC_CHARSET_DONE ((FcChar32) - 1)
|
|
552
579
|
|
|
553
580
|
FcPublic FcChar32
|
|
554
581
|
FcCharSetFirstPage (const FcCharSet *a,
|
|
555
|
-
|
|
556
|
-
|
|
582
|
+
FcChar32 map[FC_CHARSET_MAP_SIZE],
|
|
583
|
+
FcChar32 *next);
|
|
557
584
|
|
|
558
585
|
FcPublic FcChar32
|
|
559
|
-
FcCharSetNextPage (const FcCharSet
|
|
560
|
-
|
|
561
|
-
|
|
586
|
+
FcCharSetNextPage (const FcCharSet *a,
|
|
587
|
+
FcChar32 map[FC_CHARSET_MAP_SIZE],
|
|
588
|
+
FcChar32 *next);
|
|
562
589
|
|
|
563
590
|
/*
|
|
564
591
|
* old coverage API, rather hard to use correctly
|
|
@@ -589,20 +616,20 @@ FcPublic FcBool
|
|
|
589
616
|
FcFileIsDir (const FcChar8 *file);
|
|
590
617
|
|
|
591
618
|
FcPublic FcBool
|
|
592
|
-
FcFileScan (FcFontSet
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
619
|
+
FcFileScan (FcFontSet *set,
|
|
620
|
+
FcStrSet *dirs,
|
|
621
|
+
FcFileCache *cache,
|
|
622
|
+
FcBlanks *blanks,
|
|
623
|
+
const FcChar8 *file,
|
|
624
|
+
FcBool force);
|
|
598
625
|
|
|
599
626
|
FcPublic FcBool
|
|
600
|
-
FcDirScan (FcFontSet
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
627
|
+
FcDirScan (FcFontSet *set,
|
|
628
|
+
FcStrSet *dirs,
|
|
629
|
+
FcFileCache *cache,
|
|
630
|
+
FcBlanks *blanks,
|
|
631
|
+
const FcChar8 *dir,
|
|
632
|
+
FcBool force);
|
|
606
633
|
|
|
607
634
|
FcPublic FcBool
|
|
608
635
|
FcDirSave (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir);
|
|
@@ -627,7 +654,7 @@ FcPublic FcPattern *
|
|
|
627
654
|
FcFreeTypeQuery (const FcChar8 *file, unsigned int id, FcBlanks *blanks, int *count);
|
|
628
655
|
|
|
629
656
|
FcPublic unsigned int
|
|
630
|
-
FcFreeTypeQueryAll(const FcChar8 *file, unsigned int id, FcBlanks *blanks, int *count, FcFontSet *set);
|
|
657
|
+
FcFreeTypeQueryAll (const FcChar8 *file, unsigned int id, FcBlanks *blanks, int *count, FcFontSet *set);
|
|
631
658
|
|
|
632
659
|
/* fcfs.c */
|
|
633
660
|
|
|
@@ -672,13 +699,13 @@ FcLangNormalize (const FcChar8 *lang);
|
|
|
672
699
|
FcPublic const FcCharSet *
|
|
673
700
|
FcLangGetCharSet (const FcChar8 *lang);
|
|
674
701
|
|
|
675
|
-
FcPublic FcLangSet*
|
|
702
|
+
FcPublic FcLangSet *
|
|
676
703
|
FcLangSetCreate (void);
|
|
677
704
|
|
|
678
705
|
FcPublic void
|
|
679
706
|
FcLangSetDestroy (FcLangSet *ls);
|
|
680
707
|
|
|
681
|
-
FcPublic FcLangSet*
|
|
708
|
+
FcPublic FcLangSet *
|
|
682
709
|
FcLangSetCopy (const FcLangSet *ls);
|
|
683
710
|
|
|
684
711
|
FcPublic FcBool
|
|
@@ -725,24 +752,24 @@ FcPublic FcObjectSet *
|
|
|
725
752
|
FcObjectSetVaBuild (const char *first, va_list va);
|
|
726
753
|
|
|
727
754
|
FcPublic FcObjectSet *
|
|
728
|
-
FcObjectSetBuild (const char *first, ...) FC_ATTRIBUTE_SENTINEL(0);
|
|
755
|
+
FcObjectSetBuild (const char *first, ...) FC_ATTRIBUTE_SENTINEL (0);
|
|
729
756
|
|
|
730
757
|
FcPublic FcFontSet *
|
|
731
|
-
FcFontSetList (FcConfig
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
758
|
+
FcFontSetList (FcConfig *config,
|
|
759
|
+
FcFontSet **sets,
|
|
760
|
+
int nsets,
|
|
761
|
+
FcPattern *p,
|
|
762
|
+
FcObjectSet *os);
|
|
736
763
|
|
|
737
764
|
FcPublic FcFontSet *
|
|
738
|
-
FcFontList (FcConfig
|
|
739
|
-
|
|
740
|
-
|
|
765
|
+
FcFontList (FcConfig *config,
|
|
766
|
+
FcPattern *p,
|
|
767
|
+
FcObjectSet *os);
|
|
741
768
|
|
|
742
769
|
/* fcatomic.c */
|
|
743
770
|
|
|
744
771
|
FcPublic FcAtomic *
|
|
745
|
-
FcAtomicCreate (const FcChar8
|
|
772
|
+
FcAtomicCreate (const FcChar8 *file);
|
|
746
773
|
|
|
747
774
|
FcPublic FcBool
|
|
748
775
|
FcAtomicLock (FcAtomic *atomic);
|
|
@@ -767,37 +794,37 @@ FcAtomicDestroy (FcAtomic *atomic);
|
|
|
767
794
|
|
|
768
795
|
/* fcmatch.c */
|
|
769
796
|
FcPublic FcPattern *
|
|
770
|
-
FcFontSetMatch (FcConfig
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
797
|
+
FcFontSetMatch (FcConfig *config,
|
|
798
|
+
FcFontSet **sets,
|
|
799
|
+
int nsets,
|
|
800
|
+
FcPattern *p,
|
|
801
|
+
FcResult *result);
|
|
775
802
|
|
|
776
803
|
FcPublic FcPattern *
|
|
777
|
-
FcFontMatch (FcConfig
|
|
778
|
-
|
|
779
|
-
|
|
804
|
+
FcFontMatch (FcConfig *config,
|
|
805
|
+
FcPattern *p,
|
|
806
|
+
FcResult *result);
|
|
780
807
|
|
|
781
808
|
FcPublic FcPattern *
|
|
782
|
-
FcFontRenderPrepare (FcConfig
|
|
783
|
-
|
|
784
|
-
|
|
809
|
+
FcFontRenderPrepare (FcConfig *config,
|
|
810
|
+
FcPattern *pat,
|
|
811
|
+
FcPattern *font);
|
|
785
812
|
|
|
786
813
|
FcPublic FcFontSet *
|
|
787
|
-
FcFontSetSort (FcConfig
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
814
|
+
FcFontSetSort (FcConfig *config,
|
|
815
|
+
FcFontSet **sets,
|
|
816
|
+
int nsets,
|
|
817
|
+
FcPattern *p,
|
|
818
|
+
FcBool trim,
|
|
819
|
+
FcCharSet **csp,
|
|
820
|
+
FcResult *result);
|
|
794
821
|
|
|
795
822
|
FcPublic FcFontSet *
|
|
796
|
-
FcFontSort (FcConfig
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
823
|
+
FcFontSort (FcConfig *config,
|
|
824
|
+
FcPattern *p,
|
|
825
|
+
FcBool trim,
|
|
826
|
+
FcCharSet **csp,
|
|
827
|
+
FcResult *result);
|
|
801
828
|
|
|
802
829
|
FcPublic void
|
|
803
830
|
FcFontSetSortDestroy (FcFontSet *fs);
|
|
@@ -943,7 +970,7 @@ FcPublic FcResult
|
|
|
943
970
|
FcPatternGetDouble (const FcPattern *p, const char *object, int n, double *d);
|
|
944
971
|
|
|
945
972
|
FcPublic FcResult
|
|
946
|
-
FcPatternGetString (const FcPattern *p, const char *object, int n, FcChar8 **
|
|
973
|
+
FcPatternGetString (const FcPattern *p, const char *object, int n, FcChar8 **s);
|
|
947
974
|
|
|
948
975
|
FcPublic FcResult
|
|
949
976
|
FcPatternGetMatrix (const FcPattern *p, const char *object, int n, FcMatrix **s);
|
|
@@ -964,7 +991,7 @@ FcPublic FcPattern *
|
|
|
964
991
|
FcPatternVaBuild (FcPattern *p, va_list va);
|
|
965
992
|
|
|
966
993
|
FcPublic FcPattern *
|
|
967
|
-
FcPatternBuild (FcPattern *p, ...) FC_ATTRIBUTE_SENTINEL(0);
|
|
994
|
+
FcPatternBuild (FcPattern *p, ...) FC_ATTRIBUTE_SENTINEL (0);
|
|
968
995
|
|
|
969
996
|
FcPublic FcChar8 *
|
|
970
997
|
FcPatternFormat (FcPattern *pat, const FcChar8 *format);
|
|
@@ -983,7 +1010,7 @@ FcPublic FcRange *
|
|
|
983
1010
|
FcRangeCopy (const FcRange *r);
|
|
984
1011
|
|
|
985
1012
|
FcPublic FcBool
|
|
986
|
-
FcRangeGetDouble(const FcRange *range, double *begin, double *end);
|
|
1013
|
+
FcRangeGetDouble (const FcRange *range, double *begin, double *end);
|
|
987
1014
|
|
|
988
1015
|
FcPublic void
|
|
989
1016
|
FcPatternIterStart (const FcPattern *pat, FcPatternIter *iter);
|
|
@@ -993,7 +1020,7 @@ FcPatternIterNext (const FcPattern *pat, FcPatternIter *iter);
|
|
|
993
1020
|
|
|
994
1021
|
FcPublic FcBool
|
|
995
1022
|
FcPatternIterEqual (const FcPattern *p1, FcPatternIter *i1,
|
|
996
|
-
|
|
1023
|
+
const FcPattern *p2, FcPatternIter *i2);
|
|
997
1024
|
|
|
998
1025
|
FcPublic FcBool
|
|
999
1026
|
FcPatternFindIter (const FcPattern *pat, FcPatternIter *iter, const char *object);
|
|
@@ -1039,9 +1066,9 @@ FcPublic void
|
|
|
1039
1066
|
FcStrFree (FcChar8 *s);
|
|
1040
1067
|
|
|
1041
1068
|
/* These are ASCII only, suitable only for pattern element names */
|
|
1042
|
-
#define FcIsUpper(c)
|
|
1043
|
-
#define FcIsLower(c)
|
|
1044
|
-
#define FcToLower(c)
|
|
1069
|
+
#define FcIsUpper(c) ((0101 <= (c) && (c) <= 0132))
|
|
1070
|
+
#define FcIsLower(c) ((0141 <= (c) && (c) <= 0172))
|
|
1071
|
+
#define FcToLower(c) (FcIsUpper (c) ? (c) - 0101 + 0141 : (c))
|
|
1045
1072
|
|
|
1046
1073
|
FcPublic FcChar8 *
|
|
1047
1074
|
FcStrDowncase (const FcChar8 *s);
|
|
@@ -1060,37 +1087,37 @@ FcStrStr (const FcChar8 *s1, const FcChar8 *s2);
|
|
|
1060
1087
|
|
|
1061
1088
|
FcPublic int
|
|
1062
1089
|
FcUtf8ToUcs4 (const FcChar8 *src_orig,
|
|
1063
|
-
|
|
1064
|
-
|
|
1090
|
+
FcChar32 *dst,
|
|
1091
|
+
int len);
|
|
1065
1092
|
|
|
1066
1093
|
FcPublic FcBool
|
|
1067
|
-
FcUtf8Len (const FcChar8
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1094
|
+
FcUtf8Len (const FcChar8 *string,
|
|
1095
|
+
int len,
|
|
1096
|
+
int *nchar,
|
|
1097
|
+
int *wchar);
|
|
1071
1098
|
|
|
1072
|
-
#define FC_UTF8_MAX_LEN
|
|
1099
|
+
#define FC_UTF8_MAX_LEN 6
|
|
1073
1100
|
|
|
1074
1101
|
FcPublic int
|
|
1075
|
-
FcUcs4ToUtf8 (FcChar32
|
|
1076
|
-
|
|
1102
|
+
FcUcs4ToUtf8 (FcChar32 ucs4,
|
|
1103
|
+
FcChar8 dest[FC_UTF8_MAX_LEN]);
|
|
1077
1104
|
|
|
1078
1105
|
FcPublic int
|
|
1079
|
-
FcUtf16ToUcs4 (const FcChar8
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1106
|
+
FcUtf16ToUcs4 (const FcChar8 *src_orig,
|
|
1107
|
+
FcEndian endian,
|
|
1108
|
+
FcChar32 *dst,
|
|
1109
|
+
int len); /* in bytes */
|
|
1083
1110
|
|
|
1084
1111
|
FcPublic FcBool
|
|
1085
|
-
FcUtf16Len (const FcChar8
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1112
|
+
FcUtf16Len (const FcChar8 *string,
|
|
1113
|
+
FcEndian endian,
|
|
1114
|
+
int len, /* in bytes */
|
|
1115
|
+
int *nchar,
|
|
1116
|
+
int *wchar);
|
|
1090
1117
|
|
|
1091
1118
|
FcPublic FcChar8 *
|
|
1092
1119
|
FcStrBuildFilename (const FcChar8 *path,
|
|
1093
|
-
|
|
1120
|
+
...);
|
|
1094
1121
|
|
|
1095
1122
|
FcPublic FcChar8 *
|
|
1096
1123
|
FcStrDirname (const FcChar8 *file);
|
|
@@ -1136,14 +1163,14 @@ FcPublic FcBool
|
|
|
1136
1163
|
FcConfigParseAndLoad (FcConfig *config, const FcChar8 *file, FcBool complain);
|
|
1137
1164
|
|
|
1138
1165
|
FcPublic FcBool
|
|
1139
|
-
FcConfigParseAndLoadFromMemory (FcConfig
|
|
1140
|
-
|
|
1141
|
-
|
|
1166
|
+
FcConfigParseAndLoadFromMemory (FcConfig *config,
|
|
1167
|
+
const FcChar8 *buffer,
|
|
1168
|
+
FcBool complain);
|
|
1142
1169
|
|
|
1143
1170
|
_FCFUNCPROTOEND
|
|
1144
1171
|
|
|
1145
1172
|
#undef FC_ATTRIBUTE_SENTINEL
|
|
1146
|
-
|
|
1173
|
+
#undef FC_ATTRIBUTE_MAY_ALIAS
|
|
1147
1174
|
|
|
1148
1175
|
#ifndef _FCINT_H_
|
|
1149
1176
|
|
|
@@ -1152,8 +1179,8 @@ _FCFUNCPROTOEND
|
|
|
1152
1179
|
* digging through documentation
|
|
1153
1180
|
*/
|
|
1154
1181
|
|
|
1155
|
-
#define FcConfigGetRescanInverval
|
|
1156
|
-
#define FcConfigSetRescanInverval
|
|
1182
|
+
# define FcConfigGetRescanInverval FcConfigGetRescanInverval_REPLACE_BY_FcConfigGetRescanInterval
|
|
1183
|
+
# define FcConfigSetRescanInverval FcConfigSetRescanInverval_REPLACE_BY_FcConfigSetRescanInterval
|
|
1157
1184
|
|
|
1158
1185
|
#endif
|
|
1159
1186
|
|