summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-05-28 09:07:54 +0930
committerAdrian Johnson <ajohnson@redneon.com>2017-05-28 09:12:56 +0930
commit0fd0fd0ae9ad8cfb177bb844091de98c0235917e (patch)
tree1570ecf38862c45b9fedb2c8b796102a2c3d5383 /src/cairoint.h
parent9d44136ef8e2a1ad2c6631beb4bbdaeed7a2dad8 (diff)
downloadcairo-0fd0fd0ae9ad8cfb177bb844091de98c0235917e.tar.gz
subsetting: support variable fonts
If the font is a non default variant, fallback to creating a font from the outlines.
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 1ae045c9b..4fedf861d 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -562,8 +562,12 @@ struct _cairo_scaled_font_backend {
unsigned long index,
uint32_t *ucs4);
- cairo_warn cairo_bool_t
- (*is_synthetic)(void *scaled_font);
+ /* Determine if this scaled font differs from the outlines in the font tables.
+ * eg synthesized bold/italic or a non default variant of a variable font.
+ */
+ cairo_warn cairo_int_status_t
+ (*is_synthetic)(void *scaled_font,
+ cairo_bool_t *is_synthetic);
/* For type 1 fonts, return the glyph name for a given glyph index.
* A glyph index and list of glyph names in the Type 1 fonts is provided.