Files
EnvelopeGenerator/EnvelopeGenerator.ReceiverUI/Services/FontLoader.cs
2026-05-22 10:50:25 +02:00

12 lines
440 B
C#

using DevExpress.Drawing;
namespace EnvelopeGenerator.ReceiverUI.Services {
public static class FontLoader {
public async static Task LoadFonts(HttpClient httpClient, List<string> fontNames) {
foreach(var fontName in fontNames) {
var fontBytes = await httpClient.GetByteArrayAsync($"fonts/{fontName}");
DXFontRepository.Instance.AddFont(fontBytes);
}
}
}
}