Skip to content

Western fonts cannot be changed in the output docx #7022

@TomBener

Description

@TomBener

I use Pandoc 2.11.3.2 on macOS 11.1.

When the lang is set as zh-CN in yaml block:

lang: zh-CN

Then run the command:

$ pandoc -C input.md -o main.docx 

The western fonts in the output main.docx is the same as the Chinese fonts 宋体 like the screen below. In addition, it seems the western fonts are frozen which can’t be changed, although the default fonts in the template of Pandoc for western fonts are Calibri and Cambria.

CleanShot 2021-01-12 at 15 02 06@2x

If the lang: zh-CN is removed, the issue will disappear, but some other problems emerge. For example, the Chinese quotation marks “” and ‘’ are set as western fonts, which should be avoided.

So I'd like the western fonts are with different fonts from Chinese fonts 宋体. Is it possible when lang: zh-CN is added or other solutions? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions