[pango/missing-hex-boxes: 3/3] Always use our font funcs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/missing-hex-boxes: 3/3] Always use our font funcs
- Date: Thu, 1 Aug 2019 12:51:51 +0000 (UTC)
commit 138e147fd7f8442c42cfc71519be403657d46cdc
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 1 08:50:51 2019 -0400
Always use our font funcs
If we don't use our own font funcs, hex boxes
don't work, since harfbuzz just replaces missing
glyphs with 0.
pango/pangofc-shape.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index f396b568..481170c6 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -325,12 +325,11 @@ pango_font_get_hb_font_for_context (PangoFont *font,
static hb_font_funcs_t *funcs;
hb_font = pango_font_get_hb_font (font);
- if (context->show_flags == PANGO_SHOW_NONE)
- return hb_font_reference (hb_font);
if (G_UNLIKELY (!funcs))
{
funcs = hb_font_funcs_create ();
+
hb_font_funcs_set_nominal_glyph_func (funcs, pango_hb_font_get_nominal_glyph, NULL, NULL);
hb_font_funcs_set_variation_glyph_func (funcs, pango_hb_font_get_variation_glyph, NULL, NULL);
hb_font_funcs_set_glyph_h_advance_func (funcs, pango_hb_font_get_glyph_advance, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]