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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-font-private.hh

Issue 1408003004: Roll harfbuzz-ng to 1.0.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-font.cc ('k') | third_party/harfbuzz-ng/src/hb-ft.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 2009 Red Hat, Inc. 2 * Copyright © 2009 Red Hat, Inc.
3 * Copyright © 2011 Google, Inc. 3 * Copyright © 2011 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 *y = get_glyph_v_advance (glyph); 261 *y = get_glyph_v_advance (glyph);
262 } 262 }
263 } 263 }
264 264
265 /* Internal only */ 265 /* Internal only */
266 inline void guess_v_origin_minus_h_origin (hb_codepoint_t glyph, 266 inline void guess_v_origin_minus_h_origin (hb_codepoint_t glyph,
267 hb_position_t *x, hb_position_t *y) 267 hb_position_t *x, hb_position_t *y)
268 { 268 {
269 *x = get_glyph_h_advance (glyph) / 2; 269 *x = get_glyph_h_advance (glyph) / 2;
270 270
271 /* TODO use font_metics.ascent */ 271 /* TODO use font_metrics.ascent */
272 *y = y_scale; 272 *y = y_scale;
273 } 273 }
274 274
275 inline void get_glyph_origin_for_direction (hb_codepoint_t glyph, 275 inline void get_glyph_origin_for_direction (hb_codepoint_t glyph,
276 hb_direction_t direction, 276 hb_direction_t direction,
277 hb_position_t *x, hb_position_t *y ) 277 hb_position_t *x, hb_position_t *y )
278 { 278 {
279 if (likely (HB_DIRECTION_IS_HORIZONTAL (direction))) 279 if (likely (HB_DIRECTION_IS_HORIZONTAL (direction)))
280 { 280 {
281 if (!get_glyph_h_origin (glyph, x, y) && 281 if (!get_glyph_h_origin (glyph, x, y) &&
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 }; 406 };
407 407
408 #define HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS 408 #define HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
409 #define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_PROTOTYPE(shaper, font); 409 #define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_PROTOTYPE(shaper, font);
410 #include "hb-shaper-list.hh" 410 #include "hb-shaper-list.hh"
411 #undef HB_SHAPER_IMPLEMENT 411 #undef HB_SHAPER_IMPLEMENT
412 #undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS 412 #undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
413 413
414 414
415 #endif /* HB_FONT_PRIVATE_HH */ 415 #endif /* HB_FONT_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-font.cc ('k') | third_party/harfbuzz-ng/src/hb-ft.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698