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

添加翻译出的英文字体的大小控制 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhanglintc
Copy link

实际使用体验我感觉翻译出来的英文字体太小了,所以加上了这句:

rt.setAttribute('style', 'font-size: 60%');

这样就可以调整大小了。
如果有更合适的地方也可以麻烦你调整下修改方式。

@Arnie97
Copy link
Owner

Arnie97 commented Jan 10, 2021

这个问题没有这么简单,某些情况下这么改会导致大字更大,小字反而不变,可以考虑改浏览器最小字体
https://greasyfork.org/zh-CN/scripts/33268-katakana-terminator/discussions/33584

@zhanglintc
Copy link
Author

なるほど、那就这样吧,我再研究研究。这个就不用 merge 了,我去改 chrome 设置好了。

@zhanglintc zhanglintc closed this Jan 10, 2021
@zhanglintc
Copy link
Author

咦,好像不太一样。你给的链接里的反馈那里说的是改 rt.katakana-terminator-rt::before before 伪元素,我这里改的是 rt 元素本身。

我这里浏览器里看到的是不做任何调整的情况下, rt.font-size = 50%,也就是 ruby 字体大小的 50%,而 ruby 字体大小本身应该就是继承于原来网页设置的大小。这里我加大了一点到 66% 感觉应该能正常显示吧。

你说的那个大字更大,小字反而不变是什么情况我有点没太理解。

@zhanglintc zhanglintc reopened this Jan 10, 2021
@Arnie97 Arnie97 self-assigned this Jan 14, 2021
@Arnie97 Arnie97 force-pushed the master branch 2 times, most recently from faedafd to dbbff05 Compare February 18, 2022 14:06
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

Successfully merging this pull request may close these issues.

2 participants