LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-21-2011, 04:06 PM   #1
Jetro
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
Question Special characters don't appear in GNOME


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.

I'm using Ubuntu 10.04.
 
Old 01-22-2011, 07:41 PM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,162

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
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?
 
Old 01-23-2011, 04:21 AM   #3
Jetro
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your reply, I had almost given up...

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.

Code:
locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
I'm running an English interface, but it has never been an issue with Norwegian characters before.
 
Old 01-23-2011, 04:41 AM   #4
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
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.
 
Old 01-23-2011, 04:51 AM   #5
Jetro
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
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 "Blbr". It showed correctly. So it seems to be a problem with the 'Application' font.
 
Old 01-23-2011, 06:10 PM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,162

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
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.
 
Old 01-24-2011, 07:57 AM   #7
Jetro
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Hehe, all right. Thank you still, though!
 
Old 01-25-2011, 06:09 AM   #8
Jetro
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
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.

Last edited by Jetro; 01-25-2011 at 03:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Characters SimeonV SUSE / openSUSE 14 07-07-2006 02:29 PM
X-resolution, installing GNOME and special/non-Latin characters on 10.2 Svip Slackware 6 05-22-2006 05:21 PM
special characters greenbox Linux - Software 9 12-23-2005 08:33 PM
Special characters consty Programming 3 08-07-2005 06:53 AM
using special characters one_ro Mandriva 5 11-04-2004 09:52 AM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration