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

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

Issue 2163983005: Roll HarfBuzz to 1.3.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 * Copyright © 2012 Google, Inc. 3 * Copyright © 2012 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 { 151 {
152 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph )); 152 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph ));
153 } 153 }
154 154
155 static hb_position_t 155 static hb_position_t
156 hb_font_get_glyph_v_advance_nil (hb_font_t *font HB_UNUSED, 156 hb_font_get_glyph_v_advance_nil (hb_font_t *font HB_UNUSED,
157 void *font_data HB_UNUSED, 157 void *font_data HB_UNUSED,
158 hb_codepoint_t glyph, 158 hb_codepoint_t glyph,
159 void *user_data HB_UNUSED) 159 void *user_data HB_UNUSED)
160 { 160 {
161 /* TODO use font_extents.ascender+descender */
161 return font->y_scale; 162 return font->y_scale;
162 } 163 }
163 static hb_position_t 164 static hb_position_t
164 hb_font_get_glyph_v_advance_parent (hb_font_t *font, 165 hb_font_get_glyph_v_advance_parent (hb_font_t *font,
165 void *font_data HB_UNUSED, 166 void *font_data HB_UNUSED,
166 hb_codepoint_t glyph, 167 hb_codepoint_t glyph,
167 void *user_data HB_UNUSED) 168 void *user_data HB_UNUSED)
168 { 169 {
169 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph )); 170 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph ));
170 } 171 }
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 trampoline_destroy); 1658 trampoline_destroy);
1658 1659
1659 trampoline_reference (&trampoline->closure); 1660 trampoline_reference (&trampoline->closure);
1660 hb_font_funcs_set_variation_glyph_func (ffuncs, 1661 hb_font_funcs_set_variation_glyph_func (ffuncs,
1661 hb_font_get_variation_glyph_trampoline , 1662 hb_font_get_variation_glyph_trampoline ,
1662 trampoline, 1663 trampoline,
1663 trampoline_destroy); 1664 trampoline_destroy);
1664 } 1665 }
1665 1666
1666 #endif /* HB_DISABLE_DEPRECATED */ 1667 #endif /* HB_DISABLE_DEPRECATED */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-coretext.cc ('k') | third_party/harfbuzz-ng/src/hb-font-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698