12 lines
440 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
} |