Don't return a null point when no glyph can be found in any font.

Patch from Jon Burgess <jburgess777@googlemail.com>.
This commit is contained in:
Tom Hughes 2008-07-29 07:51:45 +00:00
parent 791874a859
commit 271540f710

View file

@ -164,7 +164,8 @@ namespace mapnik
if (g) return glyph_ptr(new font_glyph(*face, g));
}
return glyph_ptr();
// Final fallback to empty square if nothing better in any font
return glyph_ptr(new font_glyph(*faces_.begin(), 0));
}
dimension_t character_dimensions(const unsigned c)