azure - Azure Web Apps 上安装了哪些默认字体?

标签 azure azure-web-app-service azure-webapps

我正在使用 SelectPdf 在我的 Azure Web 应用程序上呈现 PDF,结果发现 Azure 沙盒模型意味着自定义 Web 字体(OTF、TTF 等)无法嵌入 PDF 中。显然,其他 PDF 生成工具也存在同样的问题。

微软已确认他们目前尚未解决该问题,但已将其纳入 future 计划中: https://feedback.azure.com/forums/169385-web-apps/suggestions/32622797-support-custom-web-fonts-in-azure-app-services

我想知道 Azure Web Apps 上已安装哪些可供使用的字体?

最佳答案

一种可能性是在应用服务上使用 Windows 容器,它没有沙箱限制,因为 Web 应用在 Hyper-V 容器中运行。

在这里,您可以按照快速入门在应用服务中运行 Windows 容器: https://learn.microsoft.com/en-us/azure/app-service/app-service-web-get-started-windows-container

这是使用 Windows 容器的应用服务的自定义字体示例 https://azure.microsoft.com/en-us/resources/samples/custom-font-win-container/

关于azure - Azure Web Apps 上安装了哪些默认字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58239229/

相关文章:

azure - 当 Azure 应用程序服务(网站)抛出异常时,通过电子邮件通知我的管理员的最佳方式

asp.net-core - Kestrel 解决 Azure 应用服务中的绑定(bind)错误

azure - 我可以/应该将 Asp.Net Identity 与组织帐户一起使用吗?

c# - Web 应用程序在 Visual Studio 和 Azure 上显示不同的屏幕

angular - 将 Angular 应用程序部署到 Azure Web 应用程序 - 但显示默认的 Azure 页面

node.js - 通过FTP将nodejs应用程序部署到Azure不起作用

azure - 应用服务上的内部负载均衡器在配置了 NAT 网关后是否仍执行 SNAT?

适用于 Azure AD 联合域的 PowerShell cmdlet

python - VS代码错误ECONNREFUSED 127.0.0.1 :12345

azure - 在 Azure 数据工厂中使用动态日期筛选器查询 SQL 表(Azure 突触分析)