summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.h
diff options
context:
space:
mode:
authorDr.Smile <vabnick@gmail.com>2019-05-19 20:21:19 +0300
committerDr.Smile <vabnick@gmail.com>2019-05-19 20:21:19 +0300
commite8d98dafb8d4d1fd80e9d398cfbef7db1e2ccb73 (patch)
tree705c1d45abc409da9fa672d2533aa60fcb0325a7 /libass/ass_font.h
parent67e55f13ccbca005540d34406fdc694b1748506d (diff)
downloadlibass-e8d98dafb8d4d1fd80e9d398cfbef7db1e2ccb73.tar.bz2
libass-e8d98dafb8d4d1fd80e9d398cfbef7db1e2ccb73.tar.xz
font: remove dependency on symbol codes
Leading newlines are now rendered, but still incorrectly: at full height rather than at half-height as required.
Diffstat (limited to 'libass/ass_font.h')
-rw-r--r--libass/ass_font.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h
index b7bfc10..dd0c11a 100644
--- a/libass/ass_font.h
+++ b/libass/ass_font.h
@@ -35,8 +35,9 @@ typedef struct ass_font_desc ASS_FontDesc;
#define VERTICAL_LOWER_BOUND 0x02f1
#define ASS_FONT_MAX_FACES 10
-#define DECO_UNDERLINE 1
+#define DECO_UNDERLINE 1
#define DECO_STRIKETHROUGH 2
+#define DECO_ROTATE 4
struct ass_font_desc {
char *family;
@@ -64,13 +65,12 @@ ASS_Font *ass_font_new(Cache *font_cache, ASS_Library *library,
void ass_font_set_transform(ASS_Font *font, double scale_x, double scale_y);
void ass_face_set_size(FT_Face face, double size);
void ass_font_set_size(ASS_Font *font, double size);
-void ass_font_get_asc_desc(ASS_Font *font, uint32_t ch, int *asc,
- int *desc);
+void ass_font_get_asc_desc(ASS_Font *font, int face_index,
+ int *asc, int *desc);
int ass_font_get_index(ASS_FontSelector *fontsel, ASS_Font *font,
uint32_t symbol, int *face_index, int *glyph_index);
uint32_t ass_font_index_magic(FT_Face face, uint32_t symbol);
-FT_Glyph ass_font_get_glyph(ASS_Font *font,
- uint32_t ch, int face_index, int index,
+FT_Glyph ass_font_get_glyph(ASS_Font *font, int face_index, int index,
ASS_Hinting hinting, int deco);
void ass_font_clear(ASS_Font *font);