medfall

A super great game engine
Log | Files | Refs

commit 0792c3cb35df95173148ab576919de7a8ef14f2e
parent dc6d5257751647a4349c4cc0aaac1f9302635253
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat, 24 Nov 2018 16:56:41 +0200

4x1 font oversampling

Diffstat:
text_renderer.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/text_renderer.cc b/text_renderer.cc @@ -44,7 +44,7 @@ void text_renderer_init( MemoryArena * arena ) { FATAL( "stbtt_PackBegin" ); for( size_t i = 0; i < ARRAY_COUNT( sizes ); i++ ) { - stbtt_PackSetOversampling( &pack_context, 2, 2 ); + stbtt_PackSetOversampling( &pack_context, 4, 1 ); int ok = stbtt_PackFontRange( &pack_context, ttf, 0, pixel_sizes[ i ], ' ', 127 - ' ', sizes[ i ].baked_chars ); ASSERT( ok != 0 );