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:
parent
791874a859
commit
271540f710
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue