is there any chance to make the font in Netbeans 7.3 under ubuntu 12 to look better???
take a look on how the same code looks in eclipse and netbeans
while both IDEs configured with the same editor fonts settings (monospaced), i tried with other fonts also. it seams like netbeans rendering the fonts completely in a different way, the font is much more thinner ? why is it happening ?
i read a lot about that issue and already added the following to the netbeans.conf file
-J-Dapple.awt.graphics.UseQuartz=false
-J-Dswing.aatext=true
-J-Dawt.useSystemAAFontSettings=lcd
it fixed a little, but still it is a big difference between the both,
did anyone found a proper solution for that problem or maybe one can state here that there is no solution at all ??? i am a new Netbeans user and love this IDE but this thing is driving me crazy ;((
will thank a lot !
The fonts will look different regardless of the changes you make, as Eclipse is based upon SWT, and NetBeans on Swing; the two UI tool kits use different font rendering engines.
Some fonts look better than others in Swing. My preference in Swing (and nearly everywhere I use mono-spaced fonts, really) is Ubuntu Mono, but both Deja Vu Sans Mono and Source Code Pro render well in Swing, as well.
You almost certainly have the first two on your system already, and the third is easy enough to install, should you wish. I will say that the line pitch of Source Code Pro is way to large for my taste, though it is otherwise a nice font.
After enabling the JRE flags you mention, and choosing an appropriate font, the next vital item is to choose the best font size. A given font in a given rendering engine may look better or worse at a given size than in a different environment.
I find that, in Swing, Deja Vu Sans Mono looks better in even point sizes, so I typically use it at either 10pt or 12pt in NetBeans. Ubuntu Mono, on the other hand, renders much nicer at odd sizes, so I typically use it at either 11pt or 13pt in NetBeans.
Font rendering is different because they use different UI libraries.
Netbeans uses swing.
Eclipse uses swt.
You can patch the jdk to get swing to respect your font rendering settings:
https://gist.github.com/aleksandara/2963640
PPA for ubuntu with patch applied:
https://launchpad.net/~no1wantdthisname/+archive/openjdk-fontfix
Related
For an international project I need to display korean letters/signs inside Flash.
Because most of the fonts that include the "asian unicode range" are too big to embed completely into the swf, I'm sticking with Malgun Gothic as a font. It's pre-installed on Windows (7 at least) so no need to load anything.
With my german Windows7 installation I can just say
new TextFormat('Malgun Gothic');
and it's displayed correctly but in Korea the font(-name) isn't recognized.
Anyone ever tried this?
I'd suggest loading a different font library for the different languages. This way you can save non-Korean users from the massive download. I have done something similar to this for Chinese using the technique outlined on my blog here
I'm sorry if this isn't the right place to be posting a question like this, but I'm at wit's end trying to figure out an answer. I don't know if it's an encoding issue or what, but on SO many web pages, Chrome won't display some characters properly. Namely things like en and em dashes, elipses, etc.
Here's an example.
That O with the umlaut is supposed to be an ellipses. I don't see the problem on Firefox, and I don't see the problem on another computer with Chrome. Encoding is set to Auto-Detect and UTF-8. If I copy and paste the O with the umlaut, it pastes as an ellipses.
Any idea why this is happening and how I can fix it?
If it pastes back as the expected character, then it is not an encoding problem - it rather would be a font problem: you likely have a font installed in your system that is being used by Chrome to display S.O. (and possibly other pages' text). If this font is broken (like, it has an incorrect encoding declaration itself), this could happen.
The workaround is finding out which is the offensive font and uninstall it from your system.
I had the problem with Chrome on Mac OSX.7.5 using Universal Type Client.
In Chrome go to pop-out side menu (3 horizontal bars) > Tools > Encoding and set the page to Auto-detect, UTF-8 (you should switch auto-detect off if it's slowing the browser down).
In Universal Type Client, there was 2 versions of Arial in conflict with each other.
Select the universal copy of Arial and deactivate it.
All pages now render correctly in Chrome.
I have a similar problem. But the thing is, the writing on the websites displays fine. It is just the writing in the Google Chrome tab that doesn't show. It comes up with squares. To fix this, I had to change the encoding to Auto-Detect and UTF-8 (I have to deselect it and then select it again). Then restart my computer in order for the writing in the tabs to display.
However, I find that the next time I turn on my computer, I have to go through the same process and it's quite irritating. Has anyone else had this problem and if so, how do we work about this?
Cheers,
C
This has been driving me bananas too. The resolution for me was similar to pho3nix's answer; but rather than creating local stylesheet overrides I removed Helvetica Neue Regular from my system. Call me a snob but better than mapping it to Aerial :-)
There was no need to remove Helvetica Neue Condensed, Light or other variants. Somehow Chrome chooses Helvetica Neue Regular to render Helvetica Regular if you have it installed.
There seems to be a problem with the way (at least some) Helvetica Neue font files have been mapped that makes them unsuitable for displaying in a browser but OK in Photoshop or Illustratior.
I have two specific fonts installed on my computer and would like to configure the JRE to make them
available to my application, specifically Calibri and Cambria Math. However, I understand the basics of how default fonts work in Java; how the JRE reads a properties file that sets the default fonts for any Java application running on top of it.
However, these two fonts are not available in any of the properties files that I can find. So:
(1) Is it possible to "add" these two new fonts to the JRE's config, so that in my program I can call myJButton.setFont(myCambriaMathFont) on a component and make use of these added fonts? If so, how? If not, then:
(2) Are there any libraries/JARs out there for matching font names/font families to the fonts available via the JRE, and matching them as close as possible, algorithmically?
C'mon, I know you'd all love to see what a JList looks like....on Wingdings!!!
Thanks and sorry for this quirky question.
Would you like to load the font at runtime?
See Font.createFont(...)
I used to use #font-face an awful lot (while developing on my mac) and now on PC I see it looks awful.
I've tried searching on stack overflow and I see to make sure hinting is on (it is). It doesn't help at all though.
I hate cufon because it has the burst of unstyled content.
For most professional projects, say sites above $7,000 budget, do you use #font-face and just ignore the fact it looks awful? Or do you use cufon or something else? I have a lot of big projects that need to be perfect in this area.
I understand there are some 'hacks' but it still isn't airtight like it should be.
Thanks
In this regard, the only thing you can do is test extensively.
Pick fonts that look decent at various sizes and test on PCs. There are a number of decent fonts that are compatible.
Also, consider using the Google Fonts api. Their stuff renders pretty well: http://code.google.com/apis/webfonts/
Font Squirrel has decent fonts too: http://www.fontsquirrel.com/ On their site, they have a view function that allows you to test it.
So tired to search solution..
I use PHPStorm IDE for my php projects and one trouble just makes me crazy.
Editor fonts (editor, don't care about interface) looks horrible. I've tried on different distributions and different DE but result is always the same :(
There are screenshots to compare Kate and PHPStorm fonts. I know that PHPStorm is an JAVA application and it uses different font hitting engine, but.. Eclipse is an JAVA app too, but has pretty nice fonts.
PHPStorm fonts on both Windows and OSX looks like other system fonts. Smooth and readable.
Is there way to fix this font issue before my eyes will explode..?
Thanks.
Following the PhpStorm issue, here is what I added to phpstorm64.vmoptions (that I have installed in /usr/local/bin/PhpStorm/bin/):
-Dswing.aatext=true
-Dawt.useSystemAAFontSettings=gasp
-Dsun.java2d.xrender=true
I also did the trick of opening the font in FontForge:
Ctrl+A (select all chars)
Hints -> Clear Hints
Hints -> Clear Instructions
File -> Generate Font
I put it in ~/fonts/
I am running Ubuntu 12.10 and after all that, everything looks quite great (I did it for Ubuntu Mono).
The only problem I noticed is that -Dawt.useSystemAAFontSettings=gasp leads to great editor font rendering, but poor rendering for menus and other stuffs. Whereas -Dawt.useSystemAAFontSettings=lcd gives awesome font rendering for menus, but less good font rendering in the editor. So try both and pick the one you prefer.
Update: on Ubuntu 13.10, I have no problem anymore.
This is Linux specific issue, you can find a lot of information on this problem here. Check the comments for various suggestions and workarounds.
Here is what you can get with just a different font:
You can install infinality patches and patch OpenJDK to make it use freetype for fonts rendering.
Here are links about installing infinality and patched OpenJDK for Ubuntu-based distributions:
http://www.webupd8.org/2013/06/better-font-rendering-in-linux-with.html
http://www.webupd8.org/2013/06/install-openjdk-patched-with-font-fixes.html
And here is my screenshot of PHPStorm running on Fedora 20 with infinality and patched OpenJDK:
Try adding -Dawt.useSystemAAFontSettings=lcd to bin/phpstorm.vmoptions
Try Settings -> Editor -> Appearance -> Use anti-aliased font
The best solution I've found is to use FontForge.
FontForge it's a linux application which allows you to edit some font preferences.
Just open ttf font within app.
Press ctrl+a to select all chars. Then choose from menu Hints -> Clear Hints. Then Hints -> Clear Instructions. And last File -> Generate Fonts. Just save the new font as new or replace existing and try to use this font with PhpStorm. Looks not ideal but much better than before.
Also I've noticed that fonts on a dark background looks pretty good in Linux
Comparing NetBeans and PhpStorm side by side on my Debian-Squeeze box and I found NetBeans looked much better even when the same font and font-size was selected. The difference was that PhpStorm had bolded most of the code. After going through the editor configuration and getting rid of all the bolding the editor looks much better now.
Monospaced with anti-aliasing looks good to me for WebStorm.