summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-19 18:09:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-19 18:09:27 +0100
commitb8051ee985ed46c69f5fba1216ead1ebacecfd44 (patch)
tree2be0fd7434d4036e2b323fb5a752fe1067c2eb2d
parent8ac9a9df24eefc5f1125db87eb8eda2e94f54070 (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.c2
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;