From eb1f95a6d82832586e1fd50f98b14f508e7ff4be Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Fri, 19 Aug 2011 04:36:05 +0200 Subject: 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. --- libass/ass_fontselect.h | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3