[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Fwd: completed CPAL/COLR support
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Fwd: completed CPAL/COLR support |
Date: |
Sat, 30 Jun 2018 10:41:57 +0200 (CEST) |
> Running in gdb and valgrind both points to the same stacktrace I
> sent. Inspecting in gdb, sfnt->get_colr_layer is NULL but called on
> ftobjs.c:5496
Doh, thanks. Fix is trivial, but I don't have access to git right now
(the WLAN in the small pension apparently blocks port 22, something
I've never experienced before).
Werner
======================================================================
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index baaeaff98..fa58768e6 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -5493,10 +5493,17 @@
ttface = (TT_Face)face;
sfnt = (SFNT_Service)ttface->sfnt;
- return sfnt->get_colr_layer( ttface,
- base_glyph,
- acolor_index,
- iterator );
+ if ( sfnt->get_colr_layer )
+ return sfnt->get_colr_layer( ttface,
+ base_glyph,
+ acolor_index,
+ iterator );
+ else
+ {
+ *acolor_index = 0;
+
+ return 0;
+ }
}
- [ft-devel] completed CPAL/COLR support, Werner LEMBERG, 2018/06/13
- Re: [ft-devel] completed CPAL/COLR support, Alexei Podtelezhnikov, 2018/06/13
- Re: [ft-devel] completed CPAL/COLR support, Werner LEMBERG, 2018/06/17
- Re: [ft-devel] completed CPAL/COLR support, Behdad Esfahbod, 2018/06/30
- Re: [ft-devel] completed CPAL/COLR support, Behdad Esfahbod, 2018/06/30
- Re: [ft-devel] completed CPAL/COLR support, Werner LEMBERG, 2018/06/30
- Re: [ft-devel] completed CPAL/COLR support, Behdad Esfahbod, 2018/06/30
- [ft-devel] Fwd: completed CPAL/COLR support, Behdad Esfahbod, 2018/06/30
- Re: [ft-devel] Fwd: completed CPAL/COLR support, Werner LEMBERG, 2018/06/30
- Re: [ft-devel] Fwd: completed CPAL/COLR support, Behdad Esfahbod, 2018/06/30
- Re: [ft-devel] Fwd: completed CPAL/COLR support,
Werner LEMBERG <=
Re: [ft-devel] completed CPAL/COLR support, Alexei Podtelezhnikov, 2018/06/30