Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I am trying to make – specifically Norwegian characters – appear properly. Right now they look like this:
http://i51.tinypic.com/mc7j3q.png
when they should look like æ, ø & å. (Hope you can see the characters! ) Characters like ü turns the same.
This is a font that I downloaded called PT Sans. The letters I want are included, they just don't appear right in the GNOME environment, it seems. They work just fine in other applications, such as OOo Writer.
This looks like a tricky question. I've just examined the font, and there are no problems in it. Which applications are giving you the Cyrillic characters? And what do you get from entering the command "locale" in a terminal?
I get these weird signs in 'the Gnome environment', if I can call it that, when PT Sans is set as Application font. As you see in the picture, all folder names containing æøå become like this. The same happens if I try to create a folder (or file, for that matter). It also occurs in Empathy.
As for X-Chat: When the Application font overrules the font settings, I get weird characters there also. When I turned that off, however, and specifically chose PT Sans for it, I didn't get weird characters anymore.
So, what all these have in common is that it is when PT Sans is set as a standard font I get these characters.
Could it have something to do with the way I installed the font? First, I just put it in the .font folder in Home, then I did this:
Quote:
Originally Posted by Ubuntu Wiki
Manually:
There are various locations in GNU/Linux in which fonts can be kept. These locations are defined in /etc/fonts/fonts.conf; standard ones include /usr/share/fonts, /usr/local/share/fonts, and /home/<username>/.fonts (where <username> is your user name).
The easiest way to install a truetype font is to press alt-F2 and enter the following code (this will open nautilus in the right directory):
gksu nautilus /usr/share/fonts/truetype
Then create a new directory, name the directory whatever you like (choose a name that you remember if you ever need to backup your fonts personal fonts). Copy the fonts into that directory and finally rebuild the font information files by pressing alt-F2, mark 'run in terminal' so you can see the progress and entering the following code:
sudo fc-cache -f -v
I did not remove the original files I had put in the .font folder prior to that.
Are this symbols look the same with different fonts?
If they are shown properly with other fonts, then it's internal encoding in PT Sans, which is corrupted.
If they look alike in all other UTF fonts - then you should check, if your filesystem is kept in utf8 encoding. If it is not, then you can convert it in utf8 with convmv command.
I haven't tried every other font. I don't know what differates 'UTF fonts' from other types of fonts, so I wouldn't know which ones to check. But as far as I know this is the only font this occurs with.
Also, I tried this for funsies: Changing the 'Window title' font to PT Sans, then opening a folder called "Blåbær". It showed correctly. So it seems to be a problem with the 'Application' font.
There's nothing wrong with the font, as far as I can see. Fontforge loads it without protest and shows a standard encoding. I've installed it in .fonts, set it as Application font, created a folder with å in the name, and Nautilus displayed the character properly.
It's very strange that Latin 1 characters should appear as Cyrillic, even if you had the wrong locale, which you don't.
So, it works with my version of Gnome but not yours, and your version of Gnome works with other fonts! Obviously there's some strange interaction going on, but it's beyond my skills to sort it out. You may just have to give up on PT sans.
I got it fixed now. I honestly don't know what fixed it, but I once again took the files from the download folder and put them in the .font folder. It now works.
Aaand I restarted, and now they're back to being weird characters again. xD What the hell. Well, tough crap, I guess.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.