summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font-subsets-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2007-04-20 22:45:12 +0930
committerAdrian Johnson <ajohnson@redneon.com>2007-04-20 22:45:12 +0930
commit9d8eb42c013d197b3365af88e372d1c2c1617173 (patch)
tree13693090db776c5b29b01a150d39a28ec6c013ac /src/cairo-scaled-font-subsets-private.h
parent56ad56263b86a9678387fe8dd994e77c183c6328 (diff)
downloadcairo-9d8eb42c013d197b3365af88e372d1c2c1617173.tar.gz
Exclude Type1 fonts from CID subsets
Make cairo-scaled-font-subsets.c limit Type1 font subsets to 256 glyphs. This allows Type1 subsetting to be enabled again with type1-fallback as the fallback option for Type1 fonts.
Diffstat (limited to 'src/cairo-scaled-font-subsets-private.h')
-rw-r--r--src/cairo-scaled-font-subsets-private.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h
index 03076c86e..e4e320c71 100644
--- a/src/cairo-scaled-font-subsets-private.h
+++ b/src/cairo-scaled-font-subsets-private.h
@@ -97,7 +97,7 @@ _cairo_scaled_font_subsets_create_simple (void);
*
* Glyphs with an outline path available will be mapped to one font
* subset for each font face. Each unscaled subset has a maximum of
- * 65536 glyphs.
+ * 65536 glyphs except for Type1 fonts which have a maximum of 256 glyphs.
*
* Glyphs from bitmap fonts will mapped to separate font subsets for
* each cairo_scaled_font_t object. Each unscaled subset has a maximum
@@ -425,6 +425,15 @@ cairo_private void
_cairo_type1_subset_fini (cairo_type1_subset_t *subset);
/**
+ * _cairo_type1_scaled_font_is_type1:
+ * @scaled_font: a #cairo_scaled_font_t
+ *
+ * Return TRUE if @scaled_font is a Type 1 font, otherwise return FALSE.
+ **/
+cairo_private cairo_bool_t
+_cairo_type1_scaled_font_is_type1 (cairo_scaled_font_t *scaled_font);
+
+/**
* _cairo_type1_fallback_init_binary:
* @type1_subset: a #cairo_type1_subset_t to initialize
* @font_subset: the #cairo_scaled_font_subset_t to initialize from