Cannot use new fonts on Linux

I want to use the Monaco font that I'm used to in Linux. However, I cannot seem to get RubyMine to see the font in the Settings. I've tried numerous things to get this to work all with no success. I've put the font in $JDK_HOME/jre/lib/fonts, I've tried putting it the regular places in /usr/share etc. I can get Gedit to use it, so I know the font file is good, and it is installed correctly so that Gnome programs can use it. What do I have to do to get RubyMine to use it?

Thanks!
DZ

0
Avatar
Permanently deleted user

Hello Daniel,

I want to use the Monaco font that I'm used to in Linux. However, I cannot seem to get RubyMine to see the font in the Settings. I've tried numerous things to get this to work all with no success. I've put the font in $JDK_HOME/jre/lib/fonts, I've tried putting it the regular places in /usr/share etc. I can get Gedit to use it, so I know the font file is good, and it is installed correctly so that Gnome programs can use it. What do I have to do to get RubyMine to use it?

Please try File | Settings | Appearance | Override default fonts by options.
Please ensure your fonts are installed correctly to make Java available to operate with them.

Regards,
Oleg

0
Avatar
Permanently deleted user

Thanks for the quick response! Unfortunately, that didn't seem to help. I guess it is a Java installation problem, because I can't see them in other Java applications either. I thought you just had to drop the files into the $JDK_HOME/jre/lib/fonts directory and  Java apps would pick them up, but I guess that isn't the case. I've also read that Java should find the fonts that X knows about, but I can see the fonts I want on the X server, and as I said Gedit can use them, so I don't know what the problem is at this point.

Thanks!

0
Avatar
Permanently deleted user

Have Daniel,

Thanks for the quick response! Unfortunately, that didn't seem to help. I guess it is a Java installation problem, because I can't see them in other Java applications either. I thought you just had to drop the files into the $JDK_HOME/jre/lib/fonts directory and  Java apps would pick them up, but I guess that isn't the case. I've also read that Java should find the fonts that X knows about, but I can see the fonts I want on the X server, and as I said Gedit can use them, so I don't know what the problem is at this point.

Have you used fc-cache to update system fonts cache?

Regards,
Oleg

0
Avatar
Permanently deleted user

Have you used fc-cache to update system fonts cache?


Yes, I have. I ran:

sudo fc-cache -f -v

Logged out and Logged back in just in case.

I saw the fonts I added indexed. No luck

0
Avatar
Permanently deleted user

Yeah, I'm using Ubuntu 9.04 and the Sun Java JDK. This is supposed to be easy, I don't know why I'm having such a problem.

0
Avatar
Permanently deleted user

I finally noticed in some documentation that the fonts must be Unicode fonts. The font I was trying to use was apparently not unicode. I found a Unicode TTF of the font I wanted, put it into $JDK_HOME/jre/lib/fonts and it worked.

Thanks for you help.

DZ

0
Avatar
Permanently deleted user

Thanks a lot! Seems that this can be useful to others

0
Avatar
Permanently deleted user

oleg_s wrote:

Thanks a lot! Seems that this can be useful to others :)

Sure thing.

In that case, I should also mention for completeness that the standard way of making a directory under /usr/share/fonts/truetype (this is on Ubuntu, should be a similar path under other distributions) copying the fonts into that directory and running 'fc-cache -f -v' works as well - if you have the correct Unicode TrueType fonts.

I learned today that it was all about the font file. Just because other Linux programs can read the font file doesn't mean that Java programs should be able to do the same. I assumed that the font file was good for all, which they are not.

0
Avatar
Permanently deleted user

Hi, do you have a link to the Unicode version of the Monaco TTF font?
Thanks

0
Avatar
Permanently deleted user

True Monaco Font TTF!



Attachment(s):
Monaco.ttf.zip
1
Avatar
Permanently deleted user

Hi! I had a similar trouble as you, and all linux JetBrains products users. And I found a solution which works for me and another users. Here is the link to article:http://openite.com/en/Development/2013/02/13/fonts-issues-fix-for-jetbrains-products-on-linux.html 

Hope this will help you!

0
Avatar
Permanently deleted user
0

请先登录再写评论。