From 09edb29ea61785570d612b9fb246ddea93173bac Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sat, 3 Sep 2011 15:20:00 +0200 Subject: Add support for font width property Add a width field to metadata. This is used for sorting fonts as well. Fixes wrong matches with different width variants in the same font family. --- libass/ass_types.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libass/ass_types.h') diff --git a/libass/ass_types.h b/libass/ass_types.h index f52e537..8411348 100644 --- a/libass/ass_types.h +++ b/libass/ass_types.h @@ -35,6 +35,9 @@ #define FONT_SLANT_NONE 0 #define FONT_SLANT_ITALIC 100 #define FONT_SLANT_OBLIQUE 110 +#define FONT_WIDTH_CONDENSED 75 +#define FONT_WIDTH_NORMAL 100 +#define FONT_WIDTH_EXPANDED 125 /* Opaque objects internally used by libass. Contents are private. */ @@ -68,6 +71,7 @@ typedef struct font_provider_meta_data { int n_fullname; // number of localized full names int slant; // uses the above scale (NONE/ITALIC/OBLIQUE) int weight; // TrueType scale, 100-900 + int width; // in percent, normally 100 } ASS_FontProviderMetaData; -- cgit v1.2.3