Replaced "EnvelopeGenerator.WebUI" with "EnvelopeGenerator.Server" and "EnvelopeGenerator.WebUI.Client" with "EnvelopeGenerator.Server.Client". Updated project entries, solution configuration platforms, and nested projects to reflect these changes.
12 lines
408 B
C#
12 lines
408 B
C#
using DevExpress.Drawing;
|
|
|
|
namespace EnvelopeGenerator.WebUI.Client.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);
|
|
}
|
|
}
|
|
} |