Sublime Forum

Version 3143 just can not handle chinese encoding

#1

partial Chinese can not display normally

0 Likes

Letters are gone
Chinese language can't be better dealt with[3143, windows]
#2

what platform are you using? also, different themes might specify different fonts, which might improve matters

0 Likes

#3

I am using Windows 10 system.

And the icon is default

How can I solve this problem

0 Likes

#4

anyone have the same problem with me ?

0 Likes

#5

Maybe the font used by the Default/Adaptive theme can’t display some of the glyphs.

Assuming you are using one of the default themes, you could try to create a Default.sublime-theme and/or Adaptive.sublime-theme in your user package with the following content

[
    {
        "class": "sidebar_heading",
        "font.face": "Roboto Mono",
    },
    {
        "class": "sidebar_label",
        "font.face": "Roboto Mono Light",
    },
    {
        "class": "tab_label",
        "font.face": "Roboto Mono Light",
        "font.size": 12,
    },
    {
        "class": "quick_panel_label",
        "font.face": "Roboto Mono Light",
    },
    {
        "class": "label_control",
        "font.face": "Roboto Mono Light",
    },
    {
        "class": "tool_tip_label_control",
        "font.face": "Roboto Mono Light",
    }
]

You could play around with different “font.face” values. Not sure which ones fully support Chinese.

1 Like

#6

Default.sublime-theme

what is the ext of the file and which dir to put it

PS: the service worker is cool !

0 Likes

#7

The folder location depends on your operating system.

  1. Use main menu > Preferences > Browse Packages. This opens the correct path in the file explorer.
  2. Look for a folder called User and open it.
  3. Create a new text file called Default.sublime-theme
  4. Paste the content from above into that file
  5. Modify the fonts to values which exist on your system. Maybe start with one entry to check and copy to all the others then.
  6. Save the file using utf-8 encoding (ST should do so by default)
  7. If everything goes right, ST should update the fonts immediately.
0 Likes

#8

Nothing can express my appreciation to you

Thank you!

0 Likes

#9

Like these API, where should I get to know? Is it public?
I want to learn more about Sublime.

0 Likes

#10

You can find infos about ST’s file types / APIs at https://www.sublimetext.com/docs/3/

Theming is described at https://www.sublimetext.com/docs/3/themes.html

Could also use the Default.sublime-theme found via View Package Resource command to get a feeling about the required structure.

0 Likes

#11

Thank you very much for your quick reply

0 Likes

#12

Can you tell me why the indent line will break?

0 Likes