Cruisehu
Cruisehu

Reputation: 343

the size of the space and the char on the sublime text

When I use the sublime in the default setting, the font is consolas, but the size of the space and the char is not the sameenter image description here

In the picture, four space occupy two char size. Why? When I change the font, there is no problem. Why?

Upvotes: 0

Views: 1646

Answers (2)

D0neZer0
D0neZer0

Reputation: 9

edit your Preferences.sublime-settings file.

location: preferences -> settings-user

{ "font_face": "Courier", "font_size": 12 }

Upvotes: 0

Mohammad Dashti
Mohammad Dashti

Reputation: 755

Actually, this problem is not sublime's problem and it is a font-related problem that is known and has a history about the history of computer science.

A monospaced font, also called a fixed-pitch, fixed-width or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters differ in size from one another.

I suggest that you read Top 10 Programming Fonts and Wikipedia page about Monospaced font.

Then, after choosing your desired font to use in sublime, just change the default font to it, using Font Settings.

Upvotes: 1

Related Questions