summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2022-06-29 10:17:13 +0800
committerMatthias Clasen <mclasen@redhat.com>2022-07-04 11:24:16 -0400
commit7b729c23ee7ddbe432b7df0a6916207a381a9874 (patch)
tree04a6ce3bb9a0f99ae5414ca11b7a76dbac987716
parent8ee5fe2707db5013dc53084ec1ac44e91b863f6d (diff)
downloadpango-7b729c23ee7ddbe432b7df0a6916207a381a9874.tar.gz
pangocairo-font.c: Only acquire cairo_font_face_t from PangoFont via FreeType
... for now, until https://github.com/harfbuzz/harfbuzz/issues/3683 is resolved. See discussion in https://gitlab.gnome.org/GNOME/pango/-/merge_requests/602.
-rw-r--r--pango2/pangocairo-font.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango2/pangocairo-font.c b/pango2/pangocairo-font.c
index 72c06bdb..bdbf8f06 100644
--- a/pango2/pangocairo-font.c
+++ b/pango2/pangocairo-font.c
@@ -74,6 +74,12 @@ create_cairo_font_face (Pango2Font *font)
if (PANGO2_IS_USER_FONT (font))
return create_cairo_user_font_face (font);
+#if 0
+/*
+ * XXX: Acquiring the cairo_face_t via native CoreText/DirectWrite
+ * disabled for now until https://github.com/harfbuzz/harfbuzz/issues/3683
+ * is resolved. Currently, only using cairo-ft is supported.
+ */
#ifdef HAVE_CORE_TEXT
cairo_face = create_cairo_core_text_font_face (font);
if (cairo_face)
@@ -85,6 +91,7 @@ create_cairo_font_face (Pango2Font *font)
if (cairo_face)
return cairo_face;
#endif
+#endif
#ifdef CAIRO_HAS_FT_FONT
cairo_face = create_cairo_ft_font_face (font);