From 1ddc2e83b8f0871b3c793b327cdce96ecf81f73d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 18 Apr 2015 14:28:44 +0000 Subject: [PATCH] font: make bitmap fonts use linear filtering by default. --- src/font.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/font.cpp b/src/font.cpp index f6932425..76ea4d9a 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -55,6 +55,12 @@ Font::~Font() void Font::TickDraw(float seconds, Scene &scene) { Entity::TickDraw(seconds, scene); + + if (data->tileset->GetTexture()) + { + data->tileset->GetTexture()->SetMinFiltering(TextureMinFilter::LINEAR_TEXEL_NO_MIPMAP); + data->tileset->GetTexture()->SetMagFiltering(TextureMagFilter::LINEAR_TEXEL); + } } char const *Font::GetName()