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 | c67220c86fa6267d8e0aa5b69d0eebbe17e0ede2 (patch) | |
tree | b8e7d650db0b09986770f59af665319b048f38e7 /libass/ass.h | |
parent | 13156cd7946705c89ad04edba05c6434d1675e46 (diff) | |
download | mpv-c67220c86fa6267d8e0aa5b69d0eebbe17e0ede2.tar.bz2 mpv-c67220c86fa6267d8e0aa5b69d0eebbe17e0ede2.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 7cba671ffd..2e1aa1ab96 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 |