arch linux: sublime text text not alligned vertically

-1

so instead of my code being vertically aligned like usual and in any other code text editor it has weird vertical alignment like i am typing in Microsoft Word or something. anyone have an idea what this could be?

ps its a fresh install not me messing up some unknown setting

enter image description here

EDIT: solution i forgot to install a default font library during my arch linux install, if you have this problem, do this and restart your X server

user2255757

Posted 2016-08-30T00:51:56.447

Reputation: 119

1

A picture would be extraordinarily helpful. Additionally, I would strongly suggest using Sublime Text 3 instead. All development work is now focused on ST3 - "I don't know of any good reason to not use Sublime Text 3" - Will Bond, ST core developer. Additionally, ST2 is no longer the default download. ST3 has many bug fixes over 2, so this may not even be an issue once you upgrade.

– MattDMo – 2016-08-30T01:05:55.500

thanks for the reccomendation, but nothing changed. text ist still lined up like Word text – user2255757 – 2016-08-30T01:40:06.227

1The profanity is not necessary. – MattDMo – 2016-08-30T01:45:47.240

uuu... i meant no harm, surprised its a big deal – user2255757 – 2016-08-30T02:14:21.673

@user2255757 It may or may not be a big deal to you, but it is completely unnecessary. You could have made an example that wouldn't offend anybody. Unfortunately I can't clean up without removing all meaning from your post. Note that other users may flag your post as "rude or abusive" leading to possible rep loss or suspension. Please read Be Nice: "Avoid vulgar terms and anything sexually suggestive"

– DavidPostill – 2016-08-30T12:56:00.277

You haven't explained what you think is wrong with your indentation. – DavidPostill – 2016-08-30T12:57:11.357

Answers

0

forgot to install a default font library during my arch linux install, if you have this problem, do this and restart your X server

user2255757

Posted 2016-08-30T00:51:56.447

Reputation: 119

1

Since your screenshot doesn't illustrate any obvious problems, I'm going to assume using a variable-width font is giving you troubles. Commonly, monospaced fonts are used for coding.

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 and spacings have different widths. –Wikipedia

Popular examples for monospaced fonts are Fira Mono, Source Code Pro, Inconsolata, or system-default fonts like Courier New, Lucida Console (both Windows), Monaco (Mac OS X), or Ubuntu Mono (Ubuntu Linux).

You can change the font in your user settings (Preferences > Settings, or “Preferences: Settings” from the command palette).

Example:

{
  "font_face": "Fira Mono"
}

idleberg

Posted 2016-08-30T00:51:56.447

Reputation: 1 200

hey thanks yes mono-space is what i am looking for. didn't know the terminology for it. changing the settings according to your specifications didn' fix the problem though. they are still variable spaced. – user2255757 – 2016-09-02T13:17:00.930

@user2255757 Interesting. Could you add a screenshot? – idleberg – 2016-09-02T13:36:31.180

my apologies, I forgot to install a default font library during my fresh arch linux install. never forgot that before so it seemed like an alien problem. thank you for taking the time to try and help me though :) – user2255757 – 2016-09-02T13:41:11.013