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