Type1-subset: Add newline to the end of the font

as some fonts do not have a newline at the end of the last line
This commit is contained in:
Adrian Johnson 2008-01-20 00:26:09 +10:30
parent ec272fbd09
commit 574bdd01fd

View file

@ -1028,6 +1028,9 @@ cairo_type1_font_subset_write_trailer(cairo_type1_font_subset_t *font)
_cairo_output_stream_write (font->output, cleartomark_token,
font->type1_end - cleartomark_token);
/* some fonts do not have a newline at the end of the last line */
_cairo_output_stream_printf (font->output, "\n");
return CAIRO_STATUS_SUCCESS;
}