Skip to content

Commit

Permalink
Set sdfGlyphSpacing to 0
Browse files Browse the repository at this point in the history
This value is a remnant of an earlier SDF implementation. SDF glyph spacing is now handled by glyph advancement property in font data.
This had the effect of spacing out characters more than intended, which could be substantial for non-Latin characters.
Classic text engine still uses 1px glyph spacing as always.
  • Loading branch information
Interkarma committed Oct 4, 2023
1 parent a0c9554 commit a750eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Game/UserInterface/DaggerfallFont.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DaggerfallFont
const int defaultAsciiStart = 33;
public const string invalidCode = "Font does not contain glyph for code: ";
float classicGlyphSpacing = 1;
float sdfGlyphSpacing = 0.2f;
float sdfGlyphSpacing = 0f;
float sdfShadowPositionScale = 0.4f;

int glyphHeight;
Expand Down

0 comments on commit a750eed

Please sign in to comment.