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

如何修改输入框拼音的字体? #1755

Open
coffeetaste opened this issue Dec 19, 2024 · 4 comments
Open

如何修改输入框拼音的字体? #1755

coffeetaste opened this issue Dec 19, 2024 · 4 comments

Comments

@coffeetaste
Copy link

小狼毫输入法拼音输入,可以修改候选字的字体和字号。输入框输入的拼音字体是否可以修改?

@yfdyh000
Copy link

@coffeetaste
Copy link
Author

PreeditText字体,也许继承font_facehttps://github.com/rime/weasel/blob/37c8fa161a221a263bb439a1158ba401c0cf90a3/WeaselUI/DirectWriteResources.cpp#L165

请问一下具体怎么操作?

@yfdyh000
Copy link

我不确定,没试过。您看看 https://github.com/rime/weasel/wiki/%E5%AD%97%E9%AB%94%E8%A8%AD%E5%AE%9A ,改动 style/font_face。
参考其 例子解析 部分,30:39表示十六进制的30~39,是ASCII 48~57(字符0~9)。您照此给a-z A-Z等字符换个字体。

@coffeetaste
Copy link
Author

好的,谢谢您!

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

2 participants