Home | History | Annotate | Download | only in src

Lines Matching refs:glyph

45   HB_FONT_FUNC_IMPLEMENT (glyph) \
149 hb_codepoint_t glyph;
150 return get_glyph (unicode, 0, &glyph);
154 hb_codepoint_t *glyph)
156 *glyph = 0;
157 return klass->get.glyph (this, user_data,
158 unicode, variation_selector, glyph,
159 klass->user_data.glyph);
162 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph)
165 glyph,
169 inline hb_position_t get_glyph_v_advance (hb_codepoint_t glyph)
172 glyph,
176 inline hb_bool_t get_glyph_h_origin (hb_codepoint_t glyph,
181 glyph, x, y,
185 inline hb_bool_t get_glyph_v_origin (hb_codepoint_t glyph,
190 glyph, x, y,
208 inline hb_bool_t get_glyph_extents (hb_codepoint_t glyph,
213 glyph,
218 inline hb_bool_t get_glyph_contour_point (hb_codepoint_t glyph, unsigned int point_index,
223 glyph, point_index,
228 inline hb_bool_t get_glyph_name (hb_codepoint_t glyph,
233 glyph,
239 hb_codepoint_t *glyph)
241 *glyph = 0;
245 glyph,
252 inline void get_glyph_advance_for_direction (hb_codepoint_t glyph,
257 *x = get_glyph_h_advance (glyph);
261 *y = get_glyph_v_advance (glyph);
266 inline void guess_v_origin_minus_h_origin (hb_codepoint_t glyph,
269 *x = get_glyph_h_advance (glyph) / 2;
275 inline void get_glyph_origin_for_direction (hb_codepoint_t glyph,
281 if (!get_glyph_h_origin (glyph, x, y) &&
282 get_glyph_v_origin (glyph, x, y))
285 guess_v_origin_minus_h_origin (glyph, &dx, &dy);
291 if (!get_glyph_v_origin (glyph, x, y) &&
292 get_glyph_h_origin (glyph, x, y))
295 guess_v_origin_minus_h_origin (glyph, &dx, &dy);
301 inline void add_glyph_origin_for_direction (hb_codepoint_t glyph,
307 get_glyph_origin_for_direction (glyph, direction, &origin_x, &origin_y);
313 inline void subtract_glyph_origin_for_direction (hb_codepoint_t glyph,
319 get_glyph_origin_for_direction (glyph, direction, &origin_x, &origin_y);
338 inline hb_bool_t get_glyph_extents_for_origin (hb_codepoint_t glyph,
342 hb_bool_t ret = get_glyph_extents (glyph, extents);
345 subtract_glyph_origin_for_direction (glyph, direction, &extents->x_bearing, &extents->y_bearing);
350 inline hb_bool_t get_glyph_contour_point_for_origin (hb_codepoint_t glyph, unsigned int point_index,
354 hb_bool_t ret = get_glyph_contour_point (glyph, point_index, x, y);
357 subtract_glyph_origin_for_direction (glyph, direction, x, y);
362 /* Generates gidDDD if glyph has no name. */
364 glyph_to_string (hb_codepoint_t glyph,
367 if (get_glyph_name (glyph, s, size)) return;
369 if (size && snprintf (s, size, "gid%u", glyph) < 0)
376 hb_codepoint_t *glyph)
378 if (get_glyph_from_name (s, len, glyph)) return true;
382 /* Straight glyph index. */
383 if (hb_codepoint_parse (s, len, 10, glyph))
388 /* gidDDD syntax for glyph indices. */
390 hb_codepoint_parse (s + 3, len - 3, 10, glyph))
397 get_glyph (unichar, 0, glyph))