Fixed c_stor to ensure that a valid charmap is created
diff --git a/src/FTCharmap.cpp b/src/FTCharmap.cpp
index ae9075b..75f9224 100644
--- a/src/FTCharmap.cpp
+++ b/src/FTCharmap.cpp
@@ -5,6 +5,12 @@ FTCharmap::FTCharmap( FT_Face face)
: ftFace( face),
err(0)
{
+ // Check that the default is valid
+ if( !face->charmap)
+ {
+ FT_Set_Charmap( ftFace, ftFace->charmaps[0]);
+ }
+
ftEncoding = face->charmap->encoding;
}