diff options
author | Dr.Smile <vabnick@gmail.com> | 2021-09-24 04:59:52 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2021-10-05 21:21:54 +0300 |
commit | 3d7eb7ddbbba7243e72551a00cac6e073eb5822b (patch) | |
tree | 2889ae0a92a1fe8bf90f45aa9ee1ec5ffba6d930 /libass/ass_font.h | |
parent | 9c1268afb52412b530795c749115e365f74180ea (diff) | |
download | libass-3d7eb7ddbbba7243e72551a00cac6e073eb5822b.tar.bz2 libass-3d7eb7ddbbba7243e72551a00cac6e073eb5822b.tar.xz |
renderer: consolidate processing of glyph decoration flags
Processing of DECO_ROTATE has moved after ASS_Outline conversion too.
All relevant outline processing functions have moved into ass_outline.c.
outline_convert() now expects preallocated outline to reduce reallocations.
Diffstat (limited to 'libass/ass_font.h')
-rw-r--r-- | libass/ass_font.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h index 57f832d..783d6f9 100644 --- a/libass/ass_font.h +++ b/libass/ass_font.h @@ -22,7 +22,6 @@ #include <stdint.h> #include <ft2build.h> #include FT_GLYPH_H -#include FT_OUTLINE_H typedef struct ass_font ASS_Font; @@ -61,12 +60,11 @@ int ass_font_get_index(ASS_FontSelector *fontsel, ASS_Font *font, uint32_t symbol, int *face_index, int *glyph_index); uint32_t ass_font_index_magic(FT_Face face, uint32_t symbol); FT_Glyph ass_font_get_glyph(ASS_Font *font, int face_index, int index, - ASS_Hinting hinting, int deco); + ASS_Hinting hinting); void ass_font_clear(ASS_Font *font); -int ass_strike_outline_glyph(ASS_Font *font, int face_index, - FT_Glyph glyph, ASS_Outline *ol, - int under, int through); +bool ass_get_glyph_outline(ASS_Outline *outline, int32_t *advance, + FT_Face face, FT_Glyph glyph, unsigned flags); FT_Face ass_face_open(ASS_Library *lib, FT_Library ftlib, const char *path, const char *postscript_name, int index); |