QtBase  v6.3.1
hb-subset.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2018 Google, Inc.
3  *
4  * This is part of HarfBuzz, a text shaping library.
5  *
6  * Permission is hereby granted, without written agreement and without
7  * license or royalty fees, to use, copy, modify, and distribute this
8  * software and its documentation for any purpose, provided that the
9  * above copyright notice and the following two paragraphs appear in
10  * all copies of this software.
11  *
12  * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14  * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15  * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16  * DAMAGE.
17  *
18  * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21  * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23  *
24  * Google Author(s): Rod Sheeter
25  */
26 
27 #ifndef HB_SUBSET_H
28 #define HB_SUBSET_H
29 
30 #include "hb.h"
31 
33 
41 
49 typedef struct hb_subset_plan_t hb_subset_plan_t;
50 
78 typedef enum { /*< flags >*/
79  HB_SUBSET_FLAGS_DEFAULT = 0x00000000u,
90 
108 typedef enum {
117 
120 
123 
124 HB_EXTERN void
126 
130  void * data,
132  hb_bool_t replace);
133 
134 HB_EXTERN void *
137 
140 
143 
146 
149 
150 HB_EXTERN void
152  unsigned value);
153 
156 
159 
162  const hb_subset_input_t *input);
163 
164 HB_EXTERN void
166 
167 HB_EXTERN const hb_map_t*
169 
170 HB_EXTERN const hb_map_t*
172 
173 HB_EXTERN const hb_map_t*
175 
176 
179 
183  void *data,
185  hb_bool_t replace);
186 
187 HB_EXTERN void *
190 
191 
193 
194 #endif /* HB_SUBSET_H */
HB_EXTERN hb_subset_plan_t * hb_subset_plan_create_or_fail(hb_face_t *face, const hb_subset_input_t *input)
HB_EXTERN void * hb_subset_input_get_user_data(const hb_subset_input_t *input, hb_user_data_key_t *key)
HB_EXTERN void hb_subset_plan_destroy(hb_subset_plan_t *plan)
HB_EXTERN hb_subset_input_t * hb_subset_input_create_or_fail(void)
HB_EXTERN const hb_map_t * hb_subset_plan_old_to_new_glyph_mapping(const hb_subset_plan_t *plan)
HB_EXTERN const hb_map_t * hb_subset_plan_new_to_old_glyph_mapping(const hb_subset_plan_t *plan)
HB_EXTERN void hb_subset_input_set_flags(hb_subset_input_t *input, unsigned value)
HB_EXTERN hb_subset_input_t * hb_subset_input_reference(hb_subset_input_t *input)
HB_EXTERN hb_bool_t hb_subset_input_set_user_data(hb_subset_input_t *input, hb_user_data_key_t *key, void *data, hb_destroy_func_t destroy, hb_bool_t replace)
HB_EXTERN const hb_map_t * hb_subset_plan_unicode_to_old_glyph_mapping(const hb_subset_plan_t *plan)
HB_EXTERN void * hb_subset_plan_get_user_data(const hb_subset_plan_t *plan, hb_user_data_key_t *key)
HB_EXTERN hb_set_t * hb_subset_input_unicode_set(hb_subset_input_t *input)
HB_EXTERN hb_subset_plan_t * hb_subset_plan_reference(hb_subset_plan_t *plan)
HB_EXTERN void hb_subset_input_destroy(hb_subset_input_t *input)
hb_subset_flags_t
Definition: hb-subset.h:78
@ HB_SUBSET_FLAGS_DEFAULT
Definition: hb-subset.h:79
@ HB_SUBSET_FLAGS_NO_HINTING
Definition: hb-subset.h:80
@ HB_SUBSET_FLAGS_RETAIN_GIDS
Definition: hb-subset.h:81
@ HB_SUBSET_FLAGS_GLYPH_NAMES
Definition: hb-subset.h:87
@ HB_SUBSET_FLAGS_NAME_LEGACY
Definition: hb-subset.h:83
@ HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES
Definition: hb-subset.h:88
@ HB_SUBSET_FLAGS_NOTDEF_OUTLINE
Definition: hb-subset.h:86
@ HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG
Definition: hb-subset.h:84
@ HB_SUBSET_FLAGS_DESUBROUTINIZE
Definition: hb-subset.h:82
@ HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED
Definition: hb-subset.h:85
hb_subset_sets_t
Definition: hb-subset.h:108
@ HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG
Definition: hb-subset.h:111
@ HB_SUBSET_SETS_GLYPH_INDEX
Definition: hb-subset.h:109
@ HB_SUBSET_SETS_NAME_ID
Definition: hb-subset.h:113
@ HB_SUBSET_SETS_NAME_LANG_ID
Definition: hb-subset.h:114
@ HB_SUBSET_SETS_DROP_TABLE_TAG
Definition: hb-subset.h:112
@ HB_SUBSET_SETS_LAYOUT_FEATURE_TAG
Definition: hb-subset.h:115
@ HB_SUBSET_SETS_UNICODE
Definition: hb-subset.h:110
HB_EXTERN hb_face_t * hb_subset_plan_execute_or_fail(hb_subset_plan_t *plan)
Definition: hb-subset.cc:372
HB_EXTERN hb_bool_t hb_subset_plan_set_user_data(hb_subset_plan_t *plan, hb_user_data_key_t *key, void *data, hb_destroy_func_t destroy, hb_bool_t replace)
HB_EXTERN hb_subset_flags_t hb_subset_input_get_flags(hb_subset_input_t *input)
HB_EXTERN hb_set_t * hb_subset_input_set(hb_subset_input_t *input, hb_subset_sets_t set_type)
HB_EXTERN hb_set_t * hb_subset_input_glyph_set(hb_subset_input_t *input)
HB_EXTERN hb_face_t * hb_subset_or_fail(hb_face_t *source, const hb_subset_input_t *input)
Definition: hb-subset.cc:344
EGLOutputLayerEXT EGLint EGLAttrib value
GLuint64 key
GLenum face
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei GLsizei GLchar * source
GLenum GLenum GLenum input
Definition: qopenglext.h:10816
void(* hb_destroy_func_t)(void *user_data)
Definition: hb-common.h:771
HB_BEGIN_DECLS typedef int hb_bool_t
Definition: hb-common.h:97
#define HB_BEGIN_DECLS
Definition: hb-common.h:45
#define HB_END_DECLS
Definition: hb-common.h:46
#define HB_EXTERN
Definition: hb-common.h:37
HB_EXTERN hb_font_get_glyph_func_t void hb_destroy_func_t destroy