diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2011-09-03 15:20:00 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | 09edb29ea61785570d612b9fb246ddea93173bac (patch) | |
tree | b766b936e3571c17afdf845fd2cf864b5fcabaa8 /libass/ass_types.h | |
parent | e87063d873b88427ffad038fcfbbe7e7a0b7437d (diff) | |
download | libass-09edb29ea61785570d612b9fb246ddea93173bac.tar.bz2 libass-09edb29ea61785570d612b9fb246ddea93173bac.tar.xz |
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.
Diffstat (limited to 'libass/ass_types.h')
-rw-r--r-- | libass/ass_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |