1

In my Debian Linux terminal some fonts looks like this. But any text editor (i.e leafpad) shows this font correctly. What is the problem?

enter image description here

enter image description here

enter image description here

  • ouch, please show echo $LANG echo $0 echo -e "\xE2\x98\xA0". If you launch uxterm, does the same problem appear? Also, while it is exemplary to have strong sudo passwords (in your case 24 characters), it is not advisable to save it in clear text in your home directory. – Sebastian Aug 28 '15 at 8:54
  • I should say that this happens with some fonts that i manually installed! – HBS Aug 28 '15 at 9:39
2

It looks like you're using a variable width font in your terminal in the first picture. This is why characters are smashed. Terminal prompts should be used only with fixed width fonts (e.g. Monospace, FreeMono, Courier).

| improve this answer | |
  • Is there a way to fix this? I really want this font!!! – HBS Aug 28 '15 at 9:38
  • 1
    You could try to find a font which looks similar but it's monospaced. – dr_ Aug 28 '15 at 9:39
  • This will suggest you similar fonts: identifont.com/similar.html – dr_ Aug 28 '15 at 9:47
0

With the information you provided, I have two guesses:

  1. Font configuration is somehow incorrect.
  2. Customized prompt with some special character messing with the character encoding.

For the first guess, since you are using a graphical interface, check that the font configuration is correct under System->Preferences->Appearance->Fonts tab and play around the font settings and formats.

For the second guess, check the contents of your environmental variables PS1, PS2, PS3 and PS4 running echo $PS1, echo $PS2, etc. in the terminal and check that the contents do not contain special characters that could mess the encoding. Make some tests changing the prompt to very simplistic ones (but backup the contents of the variables first!) In case you are not familiar with prompt customization or with the meaning of all the characters that will come with the contents of the PS* variables, consult this nice tutorial, it is short and very illustrative.

Good luck!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.