Commit 683bae3b authored by Nicolas Rougier's avatar Nicolas Rougier

FIX: Put back PR #28 code that dit not get merged for some reason

parent 1b390999
......@@ -443,7 +443,12 @@ texture_font_load_glyphs( texture_font_t * self,
for(j = 0; j < self->glyphs->size; ++j ) {
glyph = *(texture_glyph_t **) vector_get( self->glyphs, j );
// If charcode is -1, we don't care about outline type or thickness
if( (glyph->charcode == charcodes[i])) {
// if( (glyph->charcode == charcodes[i])) {
if( (glyph->charcode == charcodes[i]) &&
((charcodes[i] == (wchar_t)(-1) ) ||
((glyph->outline_type == self->outline_type) &&
(glyph->outline_thickness == self->outline_thickness)) ))
{
pass = 1;
break;
}
......@@ -708,5 +713,3 @@ texture_font_get_glyph( texture_font_t * self,
}
return NULL;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment