[pango/hb-getters: 3/3] Pass the FT_Face to cairo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/hb-getters: 3/3] Pass the FT_Face to cairo
- Date: Mon, 19 Nov 2018 18:38:55 +0000 (UTC)
commit 268c058c08e69e83473841361cdb740321f9be10
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 19 13:37:52 2018 -0500
Pass the FT_Face to cairo
Set the FT_Face on the pattern.
cairo picks it up from there.
pango/pangofc-fontmap.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 4bb5eb1f..4bd63416 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -51,6 +51,7 @@
#include "pango-impl-utils.h"
#include "pango-enum-types.h"
#include "pangoft2-private.h"
+#include <fontconfig/fcfreetype.h>
#include <hb-ft.h>
@@ -2691,6 +2692,8 @@ create_faces (PangoFcFontMap *fcfontmap,
}
data->hb_face = hb_ft_face_create_cached (data->ft_face);
+ /* Add the FT_Face to the pattern so cairo picks it up */
+ FcPatternAddFTFace (data->pattern, FC_FT_FACE, data->ft_face);
}
hb_face_t *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]