WIP: fonts.
This commit is contained in:
@@ -4,13 +4,16 @@ public class FontLoader : IResourceLoader
|
||||
{
|
||||
public IEnumerable<string> SupportedExtensions => new string[]
|
||||
{
|
||||
".ttf"
|
||||
"ttf"
|
||||
};
|
||||
|
||||
public Type ResourceType => typeof(Font);
|
||||
|
||||
public Resource Load(string path)
|
||||
{
|
||||
return default;
|
||||
byte[] fileBuffer = File.ReadAllBytes(path);
|
||||
var result = new Font(path, fileBuffer);
|
||||
result.BufferSize = fileBuffer.Length;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user