首页 > 解决方案 > 使用 Asciidoctor 处理等宽字体

问题描述

处理文件后

= Monospaced Fonts

monospace `constrained` & ``un``constrained

与(的Ruby版本)asciidoctorpandoc

> asciidoctor testfile.adoc
> pandoc testfile.html -o testfile.docx

然后docx用 MacOS 打开文件PagesPages

This document has missing fonts.

如果我替换ConsolasCourier,一切都很好。

  1. 这是否意味着文件包含了比例字体docx,但不包含等宽字体?
  2. 更明显的读者的各种版本是否可以.docx处理这个问题(例如,因为它们识别Consolas)?
  3. 我可以自动替换,Courier.adoc源文件中选择,或者以其他方式Pages识别/处理Consolas吗?

标签: asciidoctorcode-documentation

解决方案


推荐阅读