(030ce635a) Fixed size field not affecting the size of dynamically loaded fonts

This commit is contained in:
Joonas Rikkonen
2019-05-07 18:06:07 +03:00
parent e0a3e8f8fb
commit d00e2975ba

View File

@@ -216,6 +216,7 @@ namespace Barotrauma
{
this.texDims = texDims;
this.baseChar = baseChar;
face.SetPixelSizes(0, size);
face.LoadGlyph(face.GetCharIndex(baseChar), LoadFlags.Default, LoadTarget.Normal);
baseHeight = face.Glyph.Metrics.Height.ToInt32();
textures.Add(new Texture2D(gd, texDims, texDims, false, SurfaceFormat.Color));