非Windows环境

非Windows环境

**Sheetize SDKs ** 支持 .NET Standard 2.0 ** ,使其能够在 Linux 或其他非 Windows 环境中运行 ** .NET Core 的应用程序中使用。

推荐设置为Linux

1. 安装 libgdiplus 包

libgdiplus 提供必需的 GDI+ 功能,对于播放和处理分布板至关重要。

sudo apt-get install libgdiplus

安装 Microsoft 兼容字体

要确保正确的文本播放,请使用 Microsoft TrueType 字体安装:

sudo apt-get install ttf-mscorefonts-installer

这些字体应该在 /usr/share/fonts/truetype/msttcorefonts 如果您的系统使用不同的目录,请在使用 Sheetize SDKs 进行操作之前更新您的代码中的路径:

Sheetize.Text.FontRepository.Sources.Add(new FolderFontSource("<path to ms fonts>"))
ℹ️
通过安装这些包并正确配置字体路径,您可以在Linux或其他非Windows系统上最大限度地提高 Sheetize SDKs 的性能。
 中文