summaryrefslogtreecommitdiff
path: root/src/cairo-mutex-list-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2010-11-16 23:48:39 +1030
committerAdrian Johnson <ajohnson@redneon.com>2010-11-16 23:48:39 +1030
commiteb29a25dd6dddc511388bf883c9b95843ecdb823 (patch)
tree672888e953f4e1d7c9f819375b7adfd0dae7410a /src/cairo-mutex-list-private.h
parent31e116f084d0ff073bed9d0e9c1c6ca1e5db4843 (diff)
downloadcairo-eb29a25dd6dddc511388bf883c9b95843ecdb823.tar.gz
win32: Use a font_face hash table to provide unique font faces
Similar to the freetype and toy font backends, use a hash table to map logfont,hfont to font faces. This fixes the multiple embedding of the same font in PDF. https://bugs.freedesktop.org/show_bug.cgi?id=24849
Diffstat (limited to 'src/cairo-mutex-list-private.h')
-rw-r--r--src/cairo-mutex-list-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-mutex-list-private.h b/src/cairo-mutex-list-private.h
index 5827667f4..7d5ba0299 100644
--- a/src/cairo-mutex-list-private.h
+++ b/src/cairo-mutex-list-private.h
@@ -51,6 +51,10 @@ CAIRO_MUTEX_DECLARE (_cairo_scaled_font_error_mutex)
CAIRO_MUTEX_DECLARE (_cairo_ft_unscaled_font_map_mutex)
#endif
+#if CAIRO_HAS_WIN32_FONT
+CAIRO_MUTEX_DECLARE (_cairo_win32_font_face_mutex)
+#endif
+
#if CAIRO_HAS_XLIB_SURFACE
CAIRO_MUTEX_DECLARE (_cairo_xlib_display_mutex)
#endif