diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2011-08-19 04:36:05 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | eb1f95a6d82832586e1fd50f98b14f508e7ff4be (patch) | |
tree | bf621a693bfdd6307e3f4efff7e5e177292bf812 | |
parent | ac482e83a32410c676708a81d3e88594675c7b3d (diff) | |
download | libass-eb1f95a6d82832586e1fd50f98b14f508e7ff4be.tar.bz2 libass-eb1f95a6d82832586e1fd50f98b14f508e7ff4be.tar.xz |
Add convenience defines for slant values
There is no standard scale for slant. This is almost a boolean
attribute. However, a font can have a real italic variant, and/or a
simple oblique variant. fontconfig's notation supports both of these,
so it makes sense to reuse that notation for the sake of flexibility;
we might need to differentiate between them.
-rw-r--r-- | libass/ass_fontselect.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h index 05359a8..8e41c45 100644 --- a/libass/ass_fontselect.h +++ b/libass/ass_fontselect.h @@ -52,6 +52,9 @@ typedef struct font_provider_funcs { #define FONT_WEIGHT_LIGHT 300 #define FONT_WEIGHT_MEDIUM 400 #define FONT_WEIGHT_BOLD 700 +#define FONT_SLANT_NONE 0 +#define FONT_SLANT_ITALIC 100 +#define FONT_SLANT_OBLIQUE 110 typedef struct font_provider_meta_data { char *family; |