mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
Guarantee rounding advanceX/kerning pair distances
This commit is contained in:
parent
aa3b991932
commit
47902f9770
1 changed files with 3 additions and 1 deletions
|
|
@ -426,7 +426,9 @@ internal sealed partial class FontAtlasFactory
|
|||
var scale = this.Scale;
|
||||
foreach (ref var font in this.Fonts.DataSpan)
|
||||
{
|
||||
if (!this.GlobalScaleExclusions.Contains(font) && Math.Abs(scale - 1f) > 0f)
|
||||
if (this.GlobalScaleExclusions.Contains(font))
|
||||
font.AdjustGlyphMetrics(1f, 1f); // we still need to round advanceX and kerning
|
||||
else
|
||||
font.AdjustGlyphMetrics(1 / scale, scale);
|
||||
|
||||
foreach (var c in FallbackCodepoints)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue