Skip to content

Commit

Permalink
Increased SDF texture font size
Browse files Browse the repository at this point in the history
  • Loading branch information
subchannel13 committed Jun 13, 2020
1 parent 8b3522a commit a40a797
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion source/Stareater.UI.WinForms/GLData/TextRenderUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static TextRenderUtil Get
}
#endregion

const float SdfFontSize = 24;
const float SdfFontSize = 35;
const int SdfPadding = 4;

public const float AntialiasPixelSize = SdfFontSize / SdfPadding / 2;
Expand Down
1 change: 0 additions & 1 deletion source/Stareater.UI.WinForms/GLData/TextureUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public static void UpdateTexture(int textureId, ColorMap image)
}

textureSizes[textureId] = new Vector2(image.Width, image.Height);
GL.GenerateMipmap(GenerateMipmapTarget.Texture2D); //TODO(v0.9) make custom mipmap algorithm
ShaderLibrary.PrintGlErrors("UpdateTexture generate mipmaps");
}

Expand Down

0 comments on commit a40a797

Please sign in to comment.