diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-27 14:25:36 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-27 14:25:36 +0000 |
commit | c113cc173e4f94fb4cb1af603ee26c58ff93bf1d (patch) | |
tree | f677813b55b3c6428b85288ee42eeab9e4fd63a2 /libass/ass.h | |
parent | 13d73e231d48da28459f1be4d7a274e4b38ed553 (diff) | |
download | libass-c113cc173e4f94fb4cb1af603ee26c58ff93bf1d.tar.bz2 libass-c113cc173e4f94fb4cb1af603ee26c58ff93bf1d.tar.xz |
Add -ass-hinting option for setting font hinting method.
It is possible to separately configure hinting for scaled and unscaled osd.
The default is native hinter for unscaled osd (only vo_gl at this point),
no hinting for vf_ass.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23152 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass.h')
-rw-r--r-- | libass/ass.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libass/ass.h b/libass/ass.h index 7cba671f..2e1aa1ab 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -37,6 +37,13 @@ typedef struct ass_image_s { struct ass_image_s* next; // linked list } ass_image_t; +/// Hinting type +typedef enum {ASS_HINTING_NONE = 0, + ASS_HINTING_LIGHT, + ASS_HINTING_NORMAL, + ASS_HINTING_NATIVE +} ass_hinting_t; + /** * \brief initialize the library * \return library handle or NULL if failed @@ -77,6 +84,7 @@ void ass_set_margins(ass_renderer_t* priv, int t, int b, int l, int r); void ass_set_use_margins(ass_renderer_t* priv, int use); void ass_set_aspect_ratio(ass_renderer_t* priv, double ar); void ass_set_font_scale(ass_renderer_t* priv, double font_scale); +void ass_set_hinting(ass_renderer_t* priv, ass_hinting_t ht); /** * \brief set font lookup defaults |