namespace DaggerFramework.Resources; public class FontLoader : IResourceLoader { public IEnumerable SupportedExtensions => new string[] { "ttf" }; public Type ResourceType => typeof(Font); public Resource Load(string path) { byte[] fileBuffer = File.ReadAllBytes(path); var result = new Font(path, fileBuffer); result.BufferSize = fileBuffer.Length; return result; } }