diff options
author | Grigori Goronzy <greg@blackbox> | 2011-07-04 15:19:40 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-07-04 15:19:40 +0200 |
commit | f905a38536ad32f7a68ab86db736495fc06810b2 (patch) | |
tree | c779db060f86e257040fba61f9abe33c82c00dcb /libass/ass_render.h | |
parent | 910728cb031f59fc0c5972e3b5c7cf2615a1c319 (diff) | |
download | libass-f905a38536ad32f7a68ab86db736495fc06810b2.tar.bz2 libass-f905a38536ad32f7a68ab86db736495fc06810b2.tar.xz |
Separate event parsing and layout
Split up the combined event parsing and layout loop into two passes.
State information needed for layout are duplicated in GlyphInfo
structures.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r-- | libass/ass_render.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h index 2911731..ea72cd0 100644 --- a/libass/ass_render.h +++ b/libass/ass_render.h @@ -99,6 +99,9 @@ typedef enum { typedef struct { unsigned symbol; unsigned skip; // skip glyph when layouting text + ASS_Font *font; + double font_size; + ASS_Drawing *drawing; FT_Outline *outline; FT_Outline *border; Bitmap *bm; // glyph bitmap @@ -121,7 +124,11 @@ typedef struct { double shadow_y; double frx, fry, frz; // rotation double fax, fay; // text shearing + double scale_x, scale_y; + double border_x, border_y; unsigned italic; + unsigned bold; + int flags; int bm_run_id; |