sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ft-hb-decls.h
Go to the documentation of this file.
1/*
2 * Copyright © 2009, 2023 Red Hat, Inc.
3 * Copyright © 2015 Google, Inc.
4 *
5 * Permission is hereby granted, without written agreement and without
6 * license or royalty fees, to use, copy, modify, and distribute this
7 * software and its documentation for any purpose, provided that the
8 * above copyright notice and the following two paragraphs appear in
9 * all copies of this software.
10 *
11 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
12 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
13 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
14 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
15 * DAMAGE.
16 *
17 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
18 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
20 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
21 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
22 *
23 * Red Hat Author(s): Behdad Esfahbod, Matthias Clasen
24 * Google Author(s): Behdad Esfahbod
25 */
26
27
28 /* All HarfBuzz function declarations used by FreeType, taken */
29 /* from various public HarfBuzz header files. The wrapper macro */
30 /* `HB_EXTERN` is defined in `ft-hb.h`. */
31
32
33/* hb-blob.h */
34
39HB_EXTERN(hb_blob_t *,
40hb_blob_create,(const char *data,
41 unsigned int length,
42 hb_memory_mode_t mode,
43 void *user_data,
44 hb_destroy_func_t destroy))
45
46HB_EXTERN(void,
47hb_blob_destroy,(hb_blob_t *blob))
48
49
50/* hb-buffer.h */
51
52HB_EXTERN(void,
53hb_buffer_add_utf8,(hb_buffer_t *buffer,
54 const char *text,
55 int text_length,
56 unsigned int item_offset,
57 int item_length))
58
59HB_EXTERN(void,
60hb_buffer_clear_contents,(hb_buffer_t *buffer))
61
62HB_EXTERN(hb_buffer_t *,
63hb_buffer_create,(void))
64
65HB_EXTERN(void,
66hb_buffer_destroy,(hb_buffer_t *buffer))
67
68HB_EXTERN(hb_glyph_info_t *,
69hb_buffer_get_glyph_infos,(hb_buffer_t *buffer,
70 unsigned int *length))
71
72HB_EXTERN(hb_glyph_position_t *,
73hb_buffer_get_glyph_positions,(hb_buffer_t *buffer,
74 unsigned int *length))
75
76HB_EXTERN(unsigned int,
77hb_buffer_get_length,(const hb_buffer_t *buffer))
78
79HB_EXTERN(void,
80hb_buffer_guess_segment_properties,(hb_buffer_t *buffer))
81
82
83/* hb-face.h */
84
85HB_EXTERN(hb_face_t *,
86hb_face_create,(hb_blob_t *blob,
87 unsigned int index))
88
89HB_EXTERN(hb_face_t *,
90hb_face_create_for_tables,(hb_reference_table_func_t reference_table_func,
91 void *user_data,
92 hb_destroy_func_t destroy))
93
94HB_EXTERN(void,
95hb_face_destroy,(hb_face_t *face))
96
97HB_EXTERN(void,
98hb_face_set_index,(hb_face_t *face,
99 unsigned int index))
100
101HB_EXTERN(void,
102hb_face_set_upem,(hb_face_t *face,
103 unsigned int upem))
104
105
106/* hb-font.h */
107
108HB_EXTERN(hb_font_t *,
109hb_font_create,(hb_face_t *face))
110
111HB_EXTERN(void,
112hb_font_destroy,(hb_font_t *font))
113
114HB_EXTERN(hb_face_t *,
115hb_font_get_face,(hb_font_t *font))
116
117HB_EXTERN(void,
118hb_font_set_scale,(hb_font_t *font,
119 int x_scale,
120 int y_scale))
121
122
123/* hb-ot-layout.h */
124
125HB_EXTERN(void,
126hb_ot_layout_collect_lookups,(hb_face_t *face,
127 hb_tag_t table_tag,
128 const hb_tag_t *scripts,
129 const hb_tag_t *languages,
130 const hb_tag_t *features,
131 hb_set_t *lookup_indexes /* OUT */))
132
133HB_EXTERN(void,
134hb_ot_layout_lookup_collect_glyphs,(hb_face_t *face,
135 hb_tag_t table_tag,
136 unsigned int lookup_index,
137 hb_set_t *glyphs_before, /* OUT. May be NULL */
138 hb_set_t *glyphs_input, /* OUT. May be NULL */
139 hb_set_t *glyphs_after, /* OUT. May be NULL */
140 hb_set_t *glyphs_output /* OUT. May be NULL */))
141
142HB_EXTERN(hb_bool_t,
143hb_ot_layout_lookup_would_substitute,(hb_face_t *face,
144 unsigned int lookup_index,
145 const hb_codepoint_t *glyphs,
146 unsigned int glyphs_length,
147 hb_bool_t zero_context))
148
149HB_EXTERN(void,
150hb_ot_tags_from_script_and_language,(hb_script_t script,
151 hb_language_t language,
152 unsigned int *script_count /* IN/OUT */,
153 hb_tag_t *script_tags /* OUT */,
154 unsigned int *language_count /* IN/OUT */,
155 hb_tag_t *language_tags /* OUT */))
156
157
158/* hb-set.h */
159
160HB_EXTERN(void,
161hb_set_add,(hb_set_t *set,
162 hb_codepoint_t codepoint))
163
164HB_EXTERN(void,
165hb_set_clear,(hb_set_t *set))
166
167HB_EXTERN(hb_set_t *,
168hb_set_create,(void))
169
170HB_EXTERN(void,
171hb_set_destroy,(hb_set_t *set))
172
173HB_EXTERN(void,
174hb_set_del,(hb_set_t *set,
175 hb_codepoint_t codepoint))
176
177HB_EXTERN(hb_bool_t,
178hb_set_has,(const hb_set_t *set,
179 hb_codepoint_t codepoint))
180
181HB_EXTERN(hb_bool_t,
182hb_set_is_empty,(const hb_set_t *set))
183
184HB_EXTERN(hb_bool_t,
185hb_set_next,(const hb_set_t *set,
186 hb_codepoint_t *codepoint))
187
188HB_EXTERN(void,
189hb_set_subtract,(hb_set_t *set,
190 const hb_set_t *other))
191
192
193/* hb-shape.h */
194
195HB_EXTERN(void,
196hb_shape,(hb_font_t *font,
197 hb_buffer_t *buffer,
198 const hb_feature_t *features,
199 unsigned int num_features))
200
201HB_EXTERN(hb_bool_t,
202hb_version_atleast,(unsigned int major,
203 unsigned int minor,
204 unsigned int micro))
205
206
207/* END */
hb_script_t