所以我正在为我们的CRM系统中的小册子/报告建设的过程中,它有能力合并数据存储到我们当前的列表到一个html pdf构建器,类似的数据被用作电子邮件和信件等的合并字段。用户只能创建块,然后编码合并到CRM的预定义字段。我试图安全地绕过一些限制。字体是一个问题。该pdf生成器不允许用户访问或类似的东西,也没有可访问的css,我可以找到。这些可访问的html块似乎只支持它允许的唯一字体是基本的,时代新罗马,helvetica等。我想能够内联
发布于 2021-11-25 01:40:39
您应该能够使用页面内样式(请参阅
https://developers.google.com/fonts/docs/technical_considerations
<html>
<head>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Tangerine">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Poppins">
<style>
body {
font-family: 'Poppins', sans serif;
font-size: 48px;
text-shadow: 4px 4px 4px #aaa;
}
</style>
</head>
<body>
<div>Making the Web Beautiful!</div>
<div style="font-family: 'Tangerine', serif;">Yours sin-serif-ly</div>
</body>
</html>产生

https://stackoverflow.com/questions/70103616
复制相似问题