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

在英语界面下关系图的字不会跟随字体设置 The font within the graphs does not use the appropriate font when the display language is set to English #13187

Closed
3 tasks done
quiniapiezoelectricity opened this issue Nov 18, 2024 · 15 comments

Comments

@quiniapiezoelectricity
Copy link

quiniapiezoelectricity commented Nov 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

把显示语言设置为英语(或其他非汉字语言)后,关系图的字体直接变了新细明体/times new roman: 如下图
在显示语言为中文(不论繁简)的时候则没有这个问题 (日语也是正常的)

Expected result

关系图的字体应不分显示语言跟随思源里的字体

Screenshot or screen recording presentation

英文为显示语言时(bug):
image

中文为显示语言时(正常):
image

Version environment

- Version: v3.1.11
- Operating System: MacOS
- Browser (if used):

Log file

n/a

More information

No response

@88250
Copy link
Member

88250 commented Nov 19, 2024

我这里正常,建议检查一下是不是插件、代码片段等设置问题。

@88250 88250 closed this as completed Nov 19, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Nov 19, 2024

我这里在中文和英文状态下字体是一致的。你能够在一个新建的工作空间复现这个问题吗?

@quiniapiezoelectricity
Copy link
Author

@88250 我再试了一试 应该是在OS语言也是英文的情况下才会产生这个bug 你可以试试能不能复现这个问题吗
我测试的结果如下:
MacOS(英文) -> 思源(英文) -> bug
MacOS(英文) -> 思源(简体中文) -> 正常
MacOS(简体中文) -> 思源(英文) -> 正常
MacOS(简体中文) -> 思源(简体中文) -> 正常
我在ios跟docker环境里测试的结果也相同

@88250
Copy link
Member

88250 commented Nov 19, 2024 via email

@quiniapiezoelectricity
Copy link
Author

@88250 我不是很理解 所以意思就是说关系图里的字体是跟随系统字体而不是思源里设定的字体的意思吗? 还有这个issue应该可以重开一下吧 感谢🙏

@TCOTC
Copy link
Contributor

TCOTC commented Nov 20, 2024

思源里设定的字体

你选的是哪个字体?

@quiniapiezoelectricity
Copy link
Author

我选的是预设的字体 但是其实我无论选哪个都是在关系图里被无视 而关系图里甚至不是用思源本身UI的字体

@TCOTC
Copy link
Contributor

TCOTC commented Nov 20, 2024

你的意思是无论这里选择什么字体,关系图里的字体都不会变吗?

image

@quiniapiezoelectricity
Copy link
Author

quiniapiezoelectricity commented Nov 20, 2024

这个是没错 关系图里的字体确实是不跟随那个选项(毕竟那里写的是编辑器里的字体 所以我也不确定这个是feature 还是 bug)
但是我这个issue的重点是当OS和思源的语言都设为英文的时候 关系图里的字体就会变了一个既不是UI字体也不是设定里的字体的字体

@TCOTC
Copy link
Contributor

TCOTC commented Nov 20, 2024

哦对,那个是编辑器字体,不影响关系图

@TCOTC

This comment was marked as outdated.

@TCOTC
Copy link
Contributor

TCOTC commented Nov 21, 2024

我知道问题在哪了,这个字体是单独设置的,只有用 CSS 才能改:

image

@Vanessa219 为什么默认主题限制用 mononoki ?

@quiniapiezoelectricity
Copy link
Author

我下载了momonoki 然后那个字体就显示正常了
其实我觉得单独设置momonoki没啥问题 但是就可能应该要附上字体的otf会比较好一点(毕竟总不能假设所有人都有下那个字体)
然后我试了试发现 数据库(Database) -> 表格(Table) -> 设置(Settings) -> 字段(Fields) 也有同样的问题 但是这个就安装了momonoki也解决不了
image

@TCOTC
Copy link
Contributor

TCOTC commented Nov 21, 2024

这个也有问题,字体指定的是 emoji 字体,但 emoji 字体里又没有字母的字形

image

关联 #13219

@Vanessa219
Copy link
Member

可能是以前要计算宽度,选了个等宽字体吧。我把它改成默认的 arial 吧。

Vanessa219 added a commit that referenced this issue Nov 30, 2024
Vanessa219 pushed a commit that referenced this issue Dec 14, 2024
* Improve font family and emoji (#45)

fix #13213 #13187

* 补充字体 LICENSE

* 去除新增的变量

* 优先使用自定义字体的数字字形;更新 --b3-font-family-emoji

* 代码中的数字字形应使用 JetBrainsMono-Regular
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

4 participants