This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Font anti-aliasing problems | ||
---|---|---|---|
Product: | editor | Reporter: | dalelarsen |
Component: | Painting & Printing | Assignee: | Miloslav Metelka <mmetelka> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic, Vark, yuriy_lalym |
Priority: | P2 | ||
Version: | 7.2.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
dalelarsen
2012-07-20 15:28:26 UTC
Created attachment 122229 [details]
IDE log
I should also note that that fonts I am testing with are "Courier New" and "Consolas". This happens after installing 7.2 and choosing to import settings from the previous installation. I haven't pin pointed which setting causes it to happen yet. I have tried all different fonts with no luck, including the default Monospace. It doesn't seem to get fixed by changing any options directly related to the font itself. Confirmed for me as well... I did an installation and then imported settings from a previous version, and font anti-aliasing was then turned off. I can't get it to re-enable, and the font just looks awful. This is only in the editor, and not in the rest of the UI. (In reply to comment #3) > This happens after installing 7.2 and choosing to import settings from the > previous installation. I haven't pin pointed which setting causes it to happen > yet. I have tried all different fonts with no luck, including the default > Monospace. It doesn't seem to get fixed by changing any options directly > related to the font itself. I should add that this happens in 7.2 final release as well, not just RC1. Problem solved (however I think it's still a bug): For anyone looking for the answer to this: it happens when you import settings from a previous NetBeans installation. Specifically, it is the "Editor > Other" settings that cause this. You can delete your 7.2 configuration to reset it (ie AppData\Roaming\Netbeans\7.2, or Local\NetBeans...). Using your previous NetBeans installation (ie, 7.1), go to Tools > Options, and export your entire configuration as a ZIP file. But when you import into 7.2, check the "All" option, but then under "Editor", uncheck the "Other" option, and font anti-aliasing will remain as normal. Everything else can import okay. You will need to edit a couple of settings to match your previous installation (ie, tab size settings), but otherwise, this should solve the problem. I also had this issue (DejaVu Sans Mono 11) and spye's workaround did the trick for me. There was one customization I had made in 7.1 when I switched to a smaller font. I added a line-height-correction value (from 1.0 to 1.1) to make it more readable. When I added that value back to the xml configuration file, it stopped rendering with anti-aliasing. I tried values of 0.9, 1.0 (default), 1.1, and 1.2 and the only value that rendered properly was 1.0. From post: http://justcheckingonall.wordpress.com/2008/12/26/change-line-height-in-netbeans/ File is 7.2\config\Editors\Preferences\org-netbeans-modules-editor-settings-CustomPreferences.xml and the xml entry is <entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve"> <value><![CDATA[1.1]]></value> </entry> The problem was that for line-height-correction != 1.0f the Math.ceil() was not re-applied to the resulting font's ascent leading to the text being rendered on fractional pixel boundaries which is allowed by the API but in reality it looks bad. Also when text-zooming with Alt+MouseWheel the line-height-correction was not applied properly so I've fixed that problem as well together with a minor problem with applying global ascent in a collapsed fold's text. http://hg.netbeans.org/jet-main/rev/b932b73d2119 Integrated into 'main-golden', will be available in build *201208040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b932b73d2119 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #215785 - Font anti-aliasing problems - line-height-correction leading to rendering on pixel fractions. Note: a possible integration of this issue requires a regression integration - issue #216395 as well. verified in trunk In release72: b932b73d2119 transplanted as 7335ac6c05c5 Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/7335ac6c05c5 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #215785 - Font anti-aliasing problems - line-height-correction leading to rendering on pixel fractions. (transplanted from b932b73d21196db3d4951c965c103c2633bfa145) *** Bug 200378 has been marked as a duplicate of this bug. *** *** Bug 216111 has been marked as a duplicate of this bug. *** |