diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2010-10-02 16:58:06 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2010-10-02 20:07:34 +0930 |
commit | 7d2979e446e2e10b6c5ace711549d25690b477ed (patch) | |
tree | 7616c5b19ef7de2c2419e2b6b02f117e4c93c7fc /src/cairo-scaled-font-subsets-private.h | |
parent | cd74f5edabf653d1c1c6daacea3626ba2548d5e0 (diff) | |
download | cairo-7d2979e446e2e10b6c5ace711549d25690b477ed.tar.gz |
Don't embed cmap in TrueType fonts embedded in PostScript
it doesn't print on a LaserJet 4050
Diffstat (limited to 'src/cairo-scaled-font-subsets-private.h')
-rw-r--r-- | src/cairo-scaled-font-subsets-private.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h index 44b037a41..8de49fa06 100644 --- a/src/cairo-scaled-font-subsets-private.h +++ b/src/cairo-scaled-font-subsets-private.h @@ -447,7 +447,29 @@ typedef struct _cairo_truetype_subset { * #cairo_scaled_font_t and the font backend in use) generate a * truetype file corresponding to @font_subset and initialize * @truetype_subset with information about the subset and the truetype - * data. + * data. The generated font will be suitable for embedding in + * PostScript. + * + * Return value: %CAIRO_STATUS_SUCCESS if successful, + * %CAIRO_INT_STATUS_UNSUPPORTED if the font can't be subset as a + * truetype file, or an non-zero value indicating an error. Possible + * errors include %CAIRO_STATUS_NO_MEMORY. + **/ +cairo_private cairo_status_t +_cairo_truetype_subset_init_ps (cairo_truetype_subset_t *truetype_subset, + cairo_scaled_font_subset_t *font_subset); + +/** + * _cairo_truetype_subset_init: + * @truetype_subset: a #cairo_truetype_subset_t to initialize + * @font_subset: the #cairo_scaled_font_subset_t to initialize from + * + * If possible (depending on the format of the underlying + * #cairo_scaled_font_t and the font backend in use) generate a + * truetype file corresponding to @font_subset and initialize + * @truetype_subset with information about the subset and the truetype + * data. The generated font will be suitable for embedding in + * PDF. * * Return value: %CAIRO_STATUS_SUCCESS if successful, * %CAIRO_INT_STATUS_UNSUPPORTED if the font can't be subset as a @@ -455,8 +477,8 @@ typedef struct _cairo_truetype_subset { * errors include %CAIRO_STATUS_NO_MEMORY. **/ cairo_private cairo_status_t -_cairo_truetype_subset_init (cairo_truetype_subset_t *truetype_subset, - cairo_scaled_font_subset_t *font_subset); +_cairo_truetype_subset_init_pdf (cairo_truetype_subset_t *truetype_subset, + cairo_scaled_font_subset_t *font_subset); /** * _cairo_truetype_subset_fini: |