From d18374bffe2ece980edeb6c2b356de99c5d2cce6 Mon Sep 17 00:00:00 2001 From: elexis Date: Sat, 30 Dec 2017 17:56:07 +0000 Subject: [PATCH] Fix ugly font rendering using GL linear interpolation if the UI scale was changed. Patch By: Dariost Refs D332 This was SVN commit r20735. --- source/graphics/FontManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/graphics/FontManager.cpp b/source/graphics/FontManager.cpp index f7038c0864..8476e80be0 100644 --- a/source/graphics/FontManager.cpp +++ b/source/graphics/FontManager.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2013 Wildfire Games. +/* Copyright (C) 2017 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -125,7 +125,7 @@ bool CFontManager::ReadFont(CFont* font, CStrIntern fontName) // Load glyph texture const VfsPath imgName(fontName.string() + ".png"); CTextureProperties textureProps(path / imgName); - textureProps.SetFilter(GL_NEAREST); + textureProps.SetFilter(GL_LINEAR); if (!font->m_HasRGB) textureProps.SetFormatOverride(GL_ALPHA); font->m_Texture = g_Renderer.GetTextureManager().CreateTexture(textureProps);