diff options
author | wm4 <wm4@nowhere> | 2016-01-14 14:18:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-14 14:32:08 +0100 |
commit | 99fcf36fda3eeb846861fdf9c8619b224f737311 (patch) | |
tree | 1886b01ea7a5dcc2d0f283431312b4448df61716 /libass | |
parent | 11f121859c3d3f81f3de3153a18752a70c689580 (diff) | |
download | libass-99fcf36fda3eeb846861fdf9c8619b224f737311.tar.bz2 libass-99fcf36fda3eeb846861fdf9c8619b224f737311.tar.xz |
font: remove unused function
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_font.c | 26 | ||||
-rw-r--r-- | libass/ass_font.h | 1 |
2 files changed, 0 insertions, 27 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c index abc661e..bc7568c 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -671,32 +671,6 @@ FT_Glyph ass_font_get_glyph(ASS_Font *font, uint32_t ch, int face_index, } /** - * \brief Get kerning for the pair of glyphs. - **/ -FT_Vector ass_font_get_kerning(ASS_Font *font, uint32_t c1, uint32_t c2) -{ - FT_Vector v = { 0, 0 }; - int i; - - if (font->desc.vertical) - return v; - - for (i = 0; i < font->n_faces; ++i) { - FT_Face face = font->faces[i]; - int i1 = FT_Get_Char_Index(face, ass_font_index_magic(face, c1)); - int i2 = FT_Get_Char_Index(face, ass_font_index_magic(face, c2)); - if (i1 && i2) { - if (FT_HAS_KERNING(face)) - FT_Get_Kerning(face, i1, i2, FT_KERNING_DEFAULT, &v); - return v; - } - if (i1 || i2) // these glyphs are from different font faces, no kerning information - return v; - } - return v; -} - -/** * \brief Deallocate ASS_Font **/ void ass_font_free(ASS_Font *font) diff --git a/libass/ass_font.h b/libass/ass_font.h index 693cabf..9fc4532 100644 --- a/libass/ass_font.h +++ b/libass/ass_font.h @@ -74,7 +74,6 @@ uint32_t ass_font_index_magic(FT_Face face, uint32_t symbol); FT_Glyph ass_font_get_glyph(ASS_Font *font, uint32_t ch, int face_index, int index, ASS_Hinting hinting, int deco); -FT_Vector ass_font_get_kerning(ASS_Font *font, uint32_t c1, uint32_t c2); void ass_font_free(ASS_Font *font); void outline_translate(const ASS_Outline *outline, FT_Pos dx, FT_Pos dy); |