Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-face.h

Issue 1580513002: Roll HarfBuzz to 1.1.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright © 2009 Red Hat, Inc. 2 * Copyright © 2009 Red Hat, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
(...skipping 25 matching lines...) Expand all
36 36
37 HB_BEGIN_DECLS 37 HB_BEGIN_DECLS
38 38
39 39
40 /* 40 /*
41 * hb_face_t 41 * hb_face_t
42 */ 42 */
43 43
44 typedef struct hb_face_t hb_face_t; 44 typedef struct hb_face_t hb_face_t;
45 45
46 hb_face_t * 46 HB_EXTERN hb_face_t *
47 hb_face_create (hb_blob_t *blob, 47 hb_face_create (hb_blob_t *blob,
48 unsigned int index); 48 unsigned int index);
49 49
50 typedef hb_blob_t * (*hb_reference_table_func_t) (hb_face_t *face, hb_tag_t tag , void *user_data); 50 typedef hb_blob_t * (*hb_reference_table_func_t) (hb_face_t *face, hb_tag_t tag , void *user_data);
51 51
52 /* calls destroy() when not needing user_data anymore */ 52 /* calls destroy() when not needing user_data anymore */
53 hb_face_t * 53 HB_EXTERN hb_face_t *
54 hb_face_create_for_tables (hb_reference_table_func_t reference_table_func, 54 hb_face_create_for_tables (hb_reference_table_func_t reference_table_func,
55 void *user_data, 55 void *user_data,
56 hb_destroy_func_t destroy); 56 hb_destroy_func_t destroy);
57 57
58 hb_face_t * 58 HB_EXTERN hb_face_t *
59 hb_face_get_empty (void); 59 hb_face_get_empty (void);
60 60
61 hb_face_t * 61 HB_EXTERN hb_face_t *
62 hb_face_reference (hb_face_t *face); 62 hb_face_reference (hb_face_t *face);
63 63
64 void 64 HB_EXTERN void
65 hb_face_destroy (hb_face_t *face); 65 hb_face_destroy (hb_face_t *face);
66 66
67 hb_bool_t 67 HB_EXTERN hb_bool_t
68 hb_face_set_user_data (hb_face_t *face, 68 hb_face_set_user_data (hb_face_t *face,
69 hb_user_data_key_t *key, 69 hb_user_data_key_t *key,
70 void * data, 70 void * data,
71 hb_destroy_func_t destroy, 71 hb_destroy_func_t destroy,
72 hb_bool_t replace); 72 hb_bool_t replace);
73 73
74 74
75 void * 75 HB_EXTERN void *
76 hb_face_get_user_data (hb_face_t *face, 76 hb_face_get_user_data (hb_face_t *face,
77 hb_user_data_key_t *key); 77 hb_user_data_key_t *key);
78 78
79 void 79 HB_EXTERN void
80 hb_face_make_immutable (hb_face_t *face); 80 hb_face_make_immutable (hb_face_t *face);
81 81
82 hb_bool_t 82 HB_EXTERN hb_bool_t
83 hb_face_is_immutable (hb_face_t *face); 83 hb_face_is_immutable (hb_face_t *face);
84 84
85 85
86 hb_blob_t * 86 HB_EXTERN hb_blob_t *
87 hb_face_reference_table (hb_face_t *face, 87 hb_face_reference_table (hb_face_t *face,
88 hb_tag_t tag); 88 hb_tag_t tag);
89 89
90 hb_blob_t * 90 HB_EXTERN hb_blob_t *
91 hb_face_reference_blob (hb_face_t *face); 91 hb_face_reference_blob (hb_face_t *face);
92 92
93 void 93 HB_EXTERN void
94 hb_face_set_index (hb_face_t *face, 94 hb_face_set_index (hb_face_t *face,
95 unsigned int index); 95 unsigned int index);
96 96
97 unsigned int 97 HB_EXTERN unsigned int
98 hb_face_get_index (hb_face_t *face); 98 hb_face_get_index (hb_face_t *face);
99 99
100 void 100 HB_EXTERN void
101 hb_face_set_upem (hb_face_t *face, 101 hb_face_set_upem (hb_face_t *face,
102 unsigned int upem); 102 unsigned int upem);
103 103
104 unsigned int 104 HB_EXTERN unsigned int
105 hb_face_get_upem (hb_face_t *face); 105 hb_face_get_upem (hb_face_t *face);
106 106
107 void 107 HB_EXTERN void
108 hb_face_set_glyph_count (hb_face_t *face, 108 hb_face_set_glyph_count (hb_face_t *face,
109 unsigned int glyph_count); 109 unsigned int glyph_count);
110 110
111 unsigned int 111 HB_EXTERN unsigned int
112 hb_face_get_glyph_count (hb_face_t *face); 112 hb_face_get_glyph_count (hb_face_t *face);
113 113
114 114
115 HB_END_DECLS 115 HB_END_DECLS
116 116
117 #endif /* HB_FACE_H */ 117 #endif /* HB_FACE_H */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-coretext.cc ('k') | third_party/harfbuzz-ng/src/hb-fallback-shape.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698