[sbix] Set num_glyphs on accelerator
authorEbrahim Byagowi <ebrahim@gnu.org>
Sat, 27 Oct 2018 08:45:25 +0000 (12:15 +0330)
committerGitHub <noreply@github.com>
Sat, 27 Oct 2018 08:45:25 +0000 (12:15 +0330)
dump-emoji was broken without it

src/hb-ot-color-sbix-table.hh

index 1b643c7..ec956a8 100644 (file)
@@ -99,6 +99,7 @@ struct sbix
       sbix_blob = hb_sanitize_context_t().reference_table<sbix> (face);
       sbix_len = hb_blob_get_length (sbix_blob);
       sbix_table = sbix_blob->as<sbix> ();
+      num_glyphs = face->get_num_glyphs ();
     }
 
     inline void fini (void)