diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2011-05-12 12:39:40 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2011-05-12 12:39:40 -0400 |
commit | 805af72405a2f653f08de392d7172291ffe8e902 (patch) | |
tree | 5b065d51dc8b42a111be0b5eadb73fe257f2af55 /src/hb-font.cc | |
parent | 23d2432219a91c6328efa9e041b1ecf137752ac3 (diff) |
Rename get_kernings() arguments from first/second_glyph to left/right_glyph
Makes it clear that kerning is in visual order.
Diffstat (limited to 'src/hb-font.cc')
-rw-r--r-- | src/hb-font.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hb-font.cc b/src/hb-font.cc index 10f686eb..6d974fe5 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -115,14 +115,14 @@ hb_font_get_glyph_nil (hb_font_t *font HB_UNUSED, static void hb_font_get_kerning_nil (hb_font_t *font HB_UNUSED, void *font_data HB_UNUSED, - hb_codepoint_t first_glyph, - hb_codepoint_t second_glyph, + hb_codepoint_t left_glyph, + hb_codepoint_t right_glyph, hb_position_t *x_kern, hb_position_t *y_kern, void *user_data HB_UNUSED) { if (font->parent) { - hb_font_get_kerning (font->parent, first_glyph, second_glyph, x_kern, y_kern); + hb_font_get_kerning (font->parent, left_glyph, right_glyph, x_kern, y_kern); font->parent_scale_distance (x_kern, y_kern); return; } @@ -298,12 +298,12 @@ hb_font_get_glyph (hb_font_t *font, void hb_font_get_kerning (hb_font_t *font, - hb_codepoint_t first_glyph, hb_codepoint_t second_glyph, + hb_codepoint_t left_glyph, hb_codepoint_t right_glyph, hb_position_t *x_kern, hb_position_t *y_kern) { *x_kern = *y_kern = 0; return font->klass->get.kerning (font, font->user_data, - first_glyph, second_glyph, + left_glyph, right_glyph, x_kern, y_kern, font->klass->user_data.kerning); } |