mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix initial texture atlas size of fonts with high dpi scales
This commit is contained in:
@@ -71,7 +71,8 @@ Font::Font(love::font::Rasterizer *r, const SamplerState &s)
|
||||
// largest texture size if no rough match is found.
|
||||
while (true)
|
||||
{
|
||||
if ((shaper->getHeight() * 0.8) * shaper->getHeight() * 30 <= textureWidth * textureHeight)
|
||||
float dpiscale = r->getDPIScale();
|
||||
if ((shaper->getHeight() * 0.8 * dpiscale) * shaper->getHeight() * 30 * dpiscale <= textureWidth * textureHeight)
|
||||
break;
|
||||
|
||||
TextureSize nextsize = getNextTextureSize();
|
||||
|
||||
Reference in New Issue
Block a user