diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:35:11 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:41:56 +0100 |
commit | 07b0e5e758d77e6b9b3049e13cb386128be1592c (patch) | |
tree | c68e3d6d66ffc919ba751a83958d73b924e5849a /platform/gl | |
parent | a76adb3dce6360d08aa5eeb7a23da50c3af81c10 (diff) | |
download | mupdf-07b0e5e758d77e6b9b3049e13cb386128be1592c.tar.xz |
Add fz_show_string function and move wmode argument to end.
Diffstat (limited to 'platform/gl')
-rw-r--r-- | platform/gl/gl-font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/gl/gl-font.c b/platform/gl/gl-font.c index 94076eae..9756489e 100644 --- a/platform/gl/gl-font.c +++ b/platform/gl/gl-font.c @@ -239,14 +239,14 @@ static float ui_draw_glyph(fz_font *font, int gid, float x, float y) glTexCoord2f(s1, t1); glVertex2f(xc + glyph->w, yc); glTexCoord2f(s0, t1); glVertex2f(xc, yc); - return fz_advance_glyph(ctx, font, gid) * g_font_size; + return fz_advance_glyph(ctx, font, gid, 0) * g_font_size; } 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); - return fz_advance_glyph(ctx, font, gid) * g_font_size; + return fz_advance_glyph(ctx, font, gid, 0) * g_font_size; } float ui_draw_character(fz_context *ctx, int ucs, float x, float y) |