Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

预览显示与pdf导出的显示不一致 #2490

Open
LostEcho-TeaParty opened this issue Apr 24, 2024 · 0 comments
Open

预览显示与pdf导出的显示不一致 #2490

LostEcho-TeaParty opened this issue Apr 24, 2024 · 0 comments

Comments

@LostEcho-TeaParty
Copy link

Describe the bug
我很喜欢使用vnote,但这个问题困扰了我很久,我只单纯的安装了vnote,没有安装web.css里面说明的非默认字体。

在预览显示如下:
image

但是使用wkhtmltopdf导出的pdf显示如下
image

可以发现,导出的pdf的字体与预览的不同,pdf的排版、字体都非常好看,我能不能让预览显示和pdf导出一样好看呢。
我找到了theme的web.css,里面body中描述的font-family很多我都没有安装,可为什么导出的pdf会有些非默认字体呢?

body {
    font-family: "YaHei Consolas Hybrid", "Noto Sans", "Helvetica Neue", "Segoe UI", Helvetica, Tahoma, Arial, Geneva, Georgia, Palatino, "Times New Roman", "冬青黑体", "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "WenQuanYi Micro Hei", "文泉驿雅黑", Dengxian, "等线体", STXihei, "华文细黑", "Liberation Sans", "Droid Sans", NSimSun, "新宋体", SimSun, "宋体", "Apple Color Emoji", "Segoe UI Emoji";
}

Desktop (please complete the following information):

  • OS: [e.g. Windows 11]
  • Version [e.g. 3.17.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant