[pango/pango2-color-palette: 68/71] pangocairo-font.c: Only acquire cairo_font_face_t from PangoFont via FreeType




commit 7b729c23ee7ddbe432b7df0a6916207a381a9874
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jun 29 10:17:13 2022 +0800

    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.

 pango2/pangocairo-font.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/pango2/pangocairo-font.c b/pango2/pangocairo-font.c
index 72c06bdb1..bdbf8f06d 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]