From 686c2d165dfb284b74b78f6b902d04b585dcaef3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 10 May 2011 20:04:26 -0400 Subject: [PATCH] [API] Remove font_funcs func getter functions --- src/hb-font.cc | 32 -------------------------------- src/hb-font.h | 18 ------------------ 2 files changed, 50 deletions(-) diff --git a/src/hb-font.cc b/src/hb-font.cc index b189797..ae0beaa 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -205,38 +205,6 @@ hb_font_funcs_set_kerning_func (hb_font_funcs_t *ffuncs, } -hb_font_get_glyph_func_t -hb_font_funcs_get_glyph_func (hb_font_funcs_t *ffuncs) -{ - return ffuncs->v.get_glyph; -} - -hb_font_get_glyph_advance_func_t -hb_font_funcs_get_glyph_advance_func (hb_font_funcs_t *ffuncs) -{ - return ffuncs->v.get_glyph_advance; -} - -hb_font_get_glyph_extents_func_t -hb_font_funcs_get_glyph_extents_func (hb_font_funcs_t *ffuncs) -{ - return ffuncs->v.get_glyph_extents; -} - -hb_font_get_contour_point_func_t -hb_font_funcs_get_contour_point_func (hb_font_funcs_t *ffuncs) -{ - return ffuncs->v.get_contour_point; -} - -hb_font_get_kerning_func_t -hb_font_funcs_get_kerning_func (hb_font_funcs_t *ffuncs) -{ - return ffuncs->v.get_kerning; -} - - - hb_codepoint_t hb_font_get_glyph (hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t variation_selector) diff --git a/src/hb-font.h b/src/hb-font.h index 1ab22ec..78a6c83 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -157,24 +157,6 @@ hb_font_funcs_set_kerning_func (hb_font_funcs_t *ffuncs, hb_font_get_kerning_func_t kerning_func); -/* These never return NULL. Return fallback defaults instead. */ - -hb_font_get_glyph_func_t -hb_font_funcs_get_glyph_func (hb_font_funcs_t *ffuncs); - -hb_font_get_glyph_advance_func_t -hb_font_funcs_get_glyph_advance_func (hb_font_funcs_t *ffuncs); - -hb_font_get_glyph_extents_func_t -hb_font_funcs_get_glyph_extents_func (hb_font_funcs_t *ffuncs); - -hb_font_get_contour_point_func_t -hb_font_funcs_get_contour_point_func (hb_font_funcs_t *ffuncs); - -hb_font_get_kerning_func_t -hb_font_funcs_get_kerning_func (hb_font_funcs_t *ffuncs); - - hb_codepoint_t hb_font_get_glyph (hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t variation_selector); -- 2.7.4