mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix #1721: floor result of scaling kerning based on dpi
This commit is contained in:
@@ -333,7 +333,7 @@ float Font::getKerning(uint32 leftglyph, uint32 rightglyph)
|
||||
if (it != kerning.end())
|
||||
return it->second;
|
||||
|
||||
float k = rasterizers[0]->getKerning(leftglyph, rightglyph) / dpiScale + 0.5f;
|
||||
float k = floorf(rasterizers[0]->getKerning(leftglyph, rightglyph) / dpiScale + 0.5f);
|
||||
|
||||
for (const auto &r : rasterizers)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user