Improved OutlineEntropia method.

This commit is contained in:
Martín Lucas Golini
2013-08-19 04:41:14 -03:00
parent 78ba099727
commit 20dcd26b29

View File

@@ -278,12 +278,8 @@ bool cTTFFont::iLoad( const eeUint& Size, EE_TTF_FONT_STYLE Style, const Uint16&
RPos = ( nGlyphR.Left + x ) + ( nGlyphR.Top + y ) * w;
Pos = x + y * nGlyphS.x;
// Fill the outline color
mPixels[ RPos ] = eeColorA( OutlineColor, alpha_final[ Pos ] );
// Fill the font color
if ( alpha_init[ Pos ] > 50 )
mPixels[ RPos ] = eeColorA( FontColor, alpha_init[ Pos ] );
// Blending the normal glyph color to the outline color
mPixels[ RPos ] = Color::Blend( eeColorA( FontColor, alpha_init[ Pos ] ), eeColorA( OutlineColor, alpha_final[ Pos ] ) );
}
}