| View previous topic :: View next topic |
| Author |
Message |
Richard Turner Posted via mailing list.
|
Posted: Tue Feb 10, 2009 2:08 pm Post subject: Linux: missing fonts? |
|
|
Hi,
I've just started using NetBeans for PHP development, being fed-up with
Eclipse/PDT being slow and resource hungry. I'm really impressed so far;
it's much more responsive than Eclipse and seems to do everything I need
it to with a shallow learning curve.
One thing I'd like to do and have been unable to is set my editor font
to Monaco. I run Ubunutu Intrepid, and have installed Monaco_Linux.ttf
in ~/.fonts/. The font is available to all the applications I use
except, it seems, NetBeans. NetBeans gives me quite a list of fonts to
choose from, but Monaco isn't one of them.
I've tried dropping the TTF file into /usr/share/fonts/truetype and
running fc-cache -f -v. Output on the terminal shows that the font has
been found and info cached, but still NetBeans doesn't see it.
I've searched the web looking for clues, but drawn a blank so far: all
the hits seem to be about turning-on anti-aliasing, not about missing
fonts. I gather that my issue is probably one of configuring Java, and
it's NetBeans specific, but that doesn't help me resolve it. I'm using
Ubuntu's java-6-sun packages.
Can anyone offer some help?
Cheers,
Richard. |
|
| Back to top |
|
 |
Richard Turner Posted via mailing list.
|
Posted: Tue Feb 10, 2009 2:13 pm Post subject: Linux: missing fonts? |
|
|
I forgot to say - I'm using NetBeans 6.5 downloaded from netbeans.org,
not the Ubuntu package.
R. |
|
| Back to top |
|
 |
cdonohue
Joined: 13 May 2009 Posts: 4
|
Posted: Wed May 13, 2009 3:27 am Post subject: Same problem... |
|
|
| I would be interested in the solution to this, as I am in the same boat... |
|
| Back to top |
|
 |
cdonohue
Joined: 13 May 2009 Posts: 4
|
Posted: Wed May 13, 2009 2:36 pm Post subject: |
|
|
This seems to be more of a Swing issue than a Netbeans specific issue.
Eclipse displays the Monaco font perfectly... If I recall correctly, though, Eclipse does not use Swing (it uses SWT) so maybe this could be why it displays the font.
My question is this... Is there any way to direct Swing to look in the appropriate places for fonts? I have tried modifying the fontconfig.properties file within the jre/lib/ directory and also tried adding the font to the jre's lib/fonts/ directory. No Luck.
Does anyone have any idea how this would be solved, or maybe a nudge in the right direction? |
|
| Back to top |
|
 |
Thomas Wolf Posted via mailing list.
|
Posted: Wed May 13, 2009 5:55 pm Post subject: Linux: missing fonts? |
|
|
I don't remember the exact steps, but I googled for how to install the
Microsoft core TT fonts in Linux because I wanted access to "Trebuchet
MS" - which is very good for LCD screens. I'm not sure which directions
did the trick: putting the TT fonts in the $HOME/.fonts directory and
telling X (via fc-cache) to reload its cache or installing the
msttcorefonts (or some such) package. In any event, I see the fonts in
the preferences for Gnome, firefox, Thunderbird, and Netbeans now.
tom
On 05/13/2009 10:36 AM, cdonohue wrote:
| Quote: | This seems to be more of a Swing issue than a Netbeans specific issue.
Eclipse displays the Monaco font perfectly... If I recall correctly, though, Eclipse does not use Swing (it uses SWT) so maybe this could be why it displays the font.
My question is this... Is there any way to direct Swing to look in the appropriate places for fonts? I have tried modifying the fontconfig.properties file within the jre/lib/ directory and also tried adding the font to the jre's lib/fonts/ directory. No Luck.
Does anyone have any idea how this would be solved, or maybe a nudge in the right direction?
|
|
|
| Back to top |
|
 |
cdonohue
Joined: 13 May 2009 Posts: 4
|
Posted: Wed May 13, 2009 6:09 pm Post subject: |
|
|
I've gone through the steps of adding many other fonts, such as Consolas to my /home/<user>/.fonts/ directory and then running fc-cache -vf.
These all appear perfectly in NetBeans, but not Monaco.
It just seems to be a select group of fonts that the JRE doesn't 'pick up'.
Inconsolata is another one that doesn't show up.
Strange... |
|
| Back to top |
|
 |
cdonohue
Joined: 13 May 2009 Posts: 4
|
Posted: Fri Jun 12, 2009 7:59 pm Post subject: Solved! |
|
|
I found the solution for this. It is a font issue and not an application/Java issue. It seems that the Monaco TTF file that I was using in Linux was not a unicode font.
Make sure that the font is unicode and you should be good to go (works for me) |
|
| Back to top |
|
 |
tamasrepus
Joined: 03 Aug 2009 Posts: 1
|
Posted: Mon Aug 03, 2009 6:37 pm Post subject: |
|
|
The JVM on Linux only supports TTF (TrueType) fonts, not OTF fonts. Inconsolata is an OTF font, so it (and other OTF fonts) do not appear.
Luckily, you can convert Inconsolata into a TTF font, and Kevin van Zonneveld did just that. There's a download on that page. |
|
| Back to top |
|
 |
marcelorodrigo
Joined: 02 May 2010 Posts: 1
|
Posted: Sun May 02, 2010 1:18 pm Post subject: Re: Solved! |
|
|
| cdonohue wrote: | I found the solution for this. It is a font issue and not an application/Java issue. It seems that the Monaco TTF file that I was using in Linux was not a unicode font.
Make sure that the font is unicode and you should be good to go (works for me) |
cdonohue, can you post link to a Monaco TTF font you've used?
I tryed with link above, but no success  |
|
| Back to top |
|
 |
yoyosan
Joined: 11 Jun 2012 Posts: 2 Location: Bucharest, Romania
|
Posted: Mon Jun 11, 2012 8:39 am Post subject: Getting Monaco font into Netbeans |
|
|
Hello.
Here is how I did it in Ubuntu 10.04.
| Code: |
[ "$(whoami)" = "root" ] && {echo "No this time you really can't be root ; )" exit 1}
sudo echo "Installing monaco font..."
[ -d "~/.fonts" ] || mkdir "~/.fonts/"
cd ~/.fonts/
wget http://www.gringod.com/wp-upload/MONACO.TTF
sudo echo "Refreshing cache..."
sudo fc-cache -f -v
sudo echo "Done."
|
Restart Netbeans and you should be able to use it.
I'm using Netbeans 7.1.2. |
|
| Back to top |
|
 |
yoyosan
Joined: 11 Jun 2012 Posts: 2 Location: Bucharest, Romania
|
Posted: Mon Jun 11, 2012 8:40 am Post subject: Re: Solved! |
|
|
| marcelorodrigo wrote: | | cdonohue wrote: | I found the solution for this. It is a font issue and not an application/Java issue. It seems that the Monaco TTF file that I was using in Linux was not a unicode font.
Make sure that the font is unicode and you should be good to go (works for me) |
cdonohue, can you post link to a Monaco TTF font you've used?
I tryed with link above, but no success  |
Check this out: http://www.gringod.com/wp-upload/MONACO.TTF |
|
| Back to top |
|
 |
|