diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-19 18:09:27 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-19 18:09:27 +0100 |
commit | b8051ee985ed46c69f5fba1216ead1ebacecfd44 (patch) | |
tree | 2be0fd7434d4036e2b323fb5a752fe1067c2eb2d | |
parent | 8ac9a9df24eefc5f1125db87eb8eda2e94f54070 (diff) |
script: Pass the buffer length back to freetype.
After querying the required size, inform the backend of the allocated
size of the buffer.
-rw-r--r-- | src/cairo-script-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-script-surface.c b/src/cairo-script-surface.c index d1c28163..407b716a 100644 --- a/src/cairo-script-surface.c +++ b/src/cairo-script-surface.c @@ -2613,7 +2613,7 @@ _emit_type42_font (cairo_script_surface_t *surface, if (unlikely (buf == NULL)) return _cairo_error (CAIRO_STATUS_NO_MEMORY); - status = backend->load_truetype_table (scaled_font, 0, 0, buf, NULL); + status = backend->load_truetype_table (scaled_font, 0, 0, buf, &size); if (unlikely (status)) { free (buf); return status; |