muon-ssh icon indicating copy to clipboard operation
muon-ssh copied to clipboard

UI can not show Chinese font

Open inuxor opened this issue 3 years ago • 1 comments

Describe the bug UI can not show Chinese font

To Reproduce Steps to reproduce the behavior:

  1. Go to 'add'
  2. Click on 'import'
  3. the buttons show ⬛

Expected behavior some where used a chinese font can not be find.

Screenshots

Screenshot_20220425_222705

Desktop (please complete the following information): OS: Manjaro Linux x86_64 Kernel: 5.17.4-1-MANJARO DE: Plasma 5.24.4 WM: KWin

locale LANG=zh_CN.UTF-8 LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC=zh_CN.UTF-8 LC_TIME=zh_CN.UTF-8 LC_COLLATE="zh_CN.UTF-8" LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES="zh_CN.UTF-8" LC_PAPER=zh_CN.UTF-8 LC_NAME=zh_CN.UTF-8 LC_ADDRESS=zh_CN.UTF-8 LC_TELEPHONE=zh_CN.UTF-8 LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=zh_CN.UTF-8 LC_ALL=

install with

yay -S muon-ssh

Additional context same issue in colors select part

Screenshot_20220425_225106

inuxor avatar Apr 25 '22 14:04 inuxor

getResourceAsStream("/fonts/Helvetica.ttf")) 换一下这里的Helvetica.ttf,就可以了支持中文了。 我用的是zysong.ttf这个,就可以正常显示,输入 中文了

liunn123 avatar Jun 24 '22 01:06 liunn123