From 6e48c939dc9913a6af747d5b6961624551c8d90d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 23 Jun 2016 13:41:53 +0200 Subject: epub: Use markup language when shaping and selecting fallback fonts. --- platform/gl/gl-font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform') diff --git a/platform/gl/gl-font.c b/platform/gl/gl-font.c index d6e1acc9..64c26711 100644 --- a/platform/gl/gl-font.c +++ b/platform/gl/gl-font.c @@ -247,14 +247,14 @@ static float ui_draw_glyph(fz_font *font, int gid, float x, float y) float ui_measure_character(fz_context *ctx, int ucs) { fz_font *font; - int gid = fz_encode_character_with_fallback(ctx, g_font, ucs, 0, &font); + int gid = fz_encode_character_with_fallback(ctx, g_font, ucs, 0, 0, &font); return fz_advance_glyph(ctx, font, gid, 0) * g_font_size; } float ui_draw_character(fz_context *ctx, int ucs, float x, float y) { fz_font *font; - int gid = fz_encode_character_with_fallback(ctx, g_font, ucs, 0, &font); + int gid = fz_encode_character_with_fallback(ctx, g_font, ucs, 0, 0, &font); return ui_draw_glyph(font, gid, x, y); } -- cgit v1.2.3