Move FreeType handling into the Platform dll.

This commit is contained in:
Paul Chote
2019-03-06 20:16:58 +00:00
committed by reaperrr
parent e2a51676f7
commit 1d4576229a
8 changed files with 139 additions and 49 deletions

View File

@@ -19,6 +19,7 @@ namespace OpenRA
{
IPlatformWindow CreateWindow(Size size, WindowMode windowMode, int batchSize);
ISoundEngine CreateSound(string device);
IFont CreateFont(byte[] data);
}
public interface IHardwareCursor : IDisposable { }
@@ -129,4 +130,17 @@ namespace OpenRA
Fullscreen,
PseudoFullscreen,
}
public interface IFont : IDisposable
{
FontGlyph CreateGlyph(char c, int size, float deviceScale);
}
public struct FontGlyph
{
public int2 Offset;
public Size Size;
public float Advance;
public byte[] Data;
}
}