gfx/cairo/win32-canvas-glyph-position.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/cairo/win32-canvas-glyph-position.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +diff --git a/gfx/cairo/cairo/src/cairo-win32-font.c b/gfx/cairo/cairo/src/cairo-win32-font.c
     1.5 +--- a/gfx/cairo/cairo/src/cairo-win32-font.c
     1.6 ++++ b/gfx/cairo/cairo/src/cairo-win32-font.c
     1.7 +@@ -1182,22 +1182,22 @@ _add_glyph (cairo_glyph_state_t *state,
     1.8 +     if (state->glyphs.num_elements > 0) {
     1.9 + 	int dx;
    1.10 + 
    1.11 + 	if (logical_y != state->last_y) {
    1.12 + 	    status = _flush_glyphs (state);
    1.13 + 	    if (status)
    1.14 + 		return status;
    1.15 + 	    state->start_x = logical_x;
    1.16 ++	} else {
    1.17 ++	    dx = logical_x - state->last_x;
    1.18 ++	    status = _cairo_array_append (&state->dx, &dx);
    1.19 ++	    if (status)
    1.20 ++		return status;
    1.21 + 	}
    1.22 +-
    1.23 +-	dx = logical_x - state->last_x;
    1.24 +-	status = _cairo_array_append (&state->dx, &dx);
    1.25 +-	if (status)
    1.26 +-	    return status;
    1.27 +     } else {
    1.28 + 	state->start_x = logical_x;
    1.29 +     }
    1.30 + 
    1.31 +     state->last_x = logical_x;
    1.32 +     state->last_y = logical_y;
    1.33 + 
    1.34 +     status = _cairo_array_append (&state->glyphs, &glyph_index);

mercurial