Browse Source

fixed glyph index for composite glyph components not being set

IverMartinson 4 months ago
parent
commit
66054ea1ee
2 changed files with 1 additions and 1 deletions
  1. BIN
      build/libsourparse.so
  2. 1 1
      src/library/sourparse.c

BIN
build/libsourparse.so


+ 1 - 1
src/library/sourparse.c

@@ -151,7 +151,7 @@ void read_glyph(SP_font *font, int current_glyph){
             SP_component *c_glyph = &glyph->components[glyph->number_of_components];
 
             flags = get_u16(font);
-            uint16_t glyph_index = get_u16(font);
+            c_glyph->glyph_index = get_u16(font);
 
             c_glyph->scale_x = c_glyph->scale_y = c_glyph->scale01 = c_glyph->scale10 = 1;