- pos[font.glyphs[i].encoding] = dim(bytes);
- for (int b = 0; b < dim(font.glyphs[i].bytes); b++)
- bytes[dim(bytes)] = font.glyphs[i].bytes[b];
+ if (font.glyphs[i].encoding < dim(pos))
+ {
+ pos[font.glyphs[i].encoding] = dim(bytes);
+ for (int b = 0; b < dim(font.glyphs[i].bytes); b++)
+ bytes[dim(bytes)] = font.glyphs[i].bytes[b];
+ }