WritingTools icon indicating copy to clipboard operation
WritingTools copied to clipboard

Chinese Fonts support needed

Open lukaschan opened this issue 1 year ago • 3 comments

Chinese fonts not displayed properly.

微信截图_20250107155311

lukaschan avatar Jan 07 '25 07:01 lukaschan

Hi! Could you please elaborate on the nature of the issue?

Is the inconsistent bolding of the text the issue?

Could you:

  • Ask a follow-up, asking the model to not use markdown
  • Try using a larger model (Gemini 1.5 Pro instead of Gemini 2.0 Flash) as the larger model may work better with Chinese

theJayTea avatar Jan 07 '25 15:01 theJayTea

微信截图_20250108125529

Thanks.

  • Same issue with the follow-up answer.
  • I used grokcloud with llama3.3, and I can't try Gemini coz I can't get a valid api.

It might be possible to resolve the issue by adjusting the text font to one that supports Chinese characters.

lukaschan avatar Jan 08 '25 05:01 lukaschan

Hi! A quick update: On looking deeper into this, I think it's because QTextBrowser (which is used to render each message/text box) defaults to the system font (probably Segoe UI), which for some reason isn't properly rendering Chinese characters. I can try forcing the usage of a font that supports Chinese characters and see if it fixes it. If it does, I can add an option to force a custom font in Settings so if the default doesn't work well (as in your case), one could switch it. Thanks for bringing this up :)

theJayTea avatar Jan 23 '25 19:01 theJayTea