- i->lastadvance = font->glyphs[glyphnr].advance*matrix->m00;
-
- int u = font->glyphs[glyphnr].unicode;
+ int u;
+ if(font) {
+ i->lastadvance = font->glyphs[glyphnr].advance*matrix->m00;
+ u = font->glyphs[glyphnr].unicode;
+ } else {
+ u = glyphnr;
+ i->currentx = 0;i->currenty = 0;
+ }