[pango/pango2-windows: 5/6] pangocairo-font.c: Only acquire cairo_font_face_t from PangoFont via FreeType
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-windows: 5/6] pangocairo-font.c: Only acquire cairo_font_face_t from PangoFont via FreeType
- Date: Thu, 30 Jun 2022 02:50:17 +0000 (UTC)
commit d9a3e5bbe6e3658be78d2bf29f2184b21dd40414
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 b9103d977..3349389ce 100644
--- a/pango2/pangocairo-font.c
+++ b/pango2/pangocairo-font.c
@@ -71,6 +71,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)
@@ -82,6 +88,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]