- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要在高级 PDF 上显示数据,其中字段包含英文和中文字符。英文显示正常,但中文不出现。有哪些选项可以让汉字也出现?
最佳答案
NetSuite 在后台使用名为 BFO 的库来呈现 PDF。 User Guide从第 30 页开始详细介绍如何使用内置字体以及嵌入您自己的字体。
As well as the standard 5 fonts, users with the appropriate language version of Acrobat can access up to 7 further fonts to display Chinese, Japanese and Korean text. The names for these fonts are “stsong” (STSong-Light, simplified Chinese), “msung” (MSungLight, traditional Chinese), “mhei” (MHei-Medium, traditional Chinese), “heiseimin” (HeiseiMin-W3, Japanese), “heiseikakugo” (HeiseiKakuGo-W5, Japanese), “hygothic” (HYGoThic-Medium, Korean) and “hysmyeongjo” (HYSMyeongJo-Medium, Korean)
另请查看内置的 NetSuite 模板,因为它们会根据区域设置自动嵌入一些字体。如果你只是删除 <#if>
围绕中文编写的代码可能会奏效。
<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
<#if .locale == "zh_CN">
<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
<#elseif .locale == "zh_TW">
<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
<#elseif .locale == "ja_JP">
<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
<#elseif .locale == "ko_KR">
<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
<#elseif .locale == "th_TH">
<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
</#if>
关于html - NetSuite 高级 PDF 外语,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54950597/
例如,日语、unicode 或 HTML 编码的属性中的字符串的正确格式是什么? 例如,其中哪一个使用正确? title=パートナー
现在我正在使用 spring 框架 + java + mysql(maria db)执行 select query(for searching) 时,没有问题但是当用韩语 (utf-8) 词搜索时那个
我的目标是编写某种会说西类牙语的聊天机器人。我见过简单的 python 聊天机器人的示例,但它们的答案大多只是随机的。我希望机器人能够部分理解问题并制定回应,例如 http://cleverbot.c
我正在尝试开发一个从段落中提取主题标签的函数,基本上是以#开头的单词 (#cool #life #cars #سيارات) 我已经尝试了几种方法,例如使用 split() 和使用正则表达式,但没有尝
我希望检索字符串中包含的工作日的下一个可能日期。复杂之处在于这个工作日将使用外语(sv_SE)。 在 bash 中我可以使用“dateround”解决这个问题: startdate=$(daterou
我需要在高级 PDF 上显示数据,其中字段包含英文和中文字符。英文显示正常,但中文不出现。有哪些选项可以让汉字也出现? 最佳答案 NetSuite 在后台使用名为 BFO 的库来呈现 PDF。 Use
是否可以重新发布具有不同标题的现有 iOS 应用程序? 该应用程序支持多种语言,但在应用商店中只有一个英文标题。我的想法很可能是任性的,我的潜在俄罗斯/印度/中国/法国观众看不到它。 听起来不像是 A
我是一名优秀的程序员,十分优秀!