[ https://issues.apache.org/jira/browse/PIVOT-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012345#comment-13012345 ]
Taro App commented on PIVOT-697: -------------------------------- Here's some more info: On my Windows XP note PC, ((java.util.Map)Toolkit.getDefaultToolkit().getDesktopProperty("awt.font.desktophints")).get(RenderingHints.KEY_TEXT_ANTIALIASING) returns "LCD HRGB antialiasing text mode" so anti-alias method used should be LCD_HRGB. (This is how Pivot determines anti-alias method in org.apache.pivot.wtk.Platform.) Compare these two very closely: - Test1.SingleLineSelectEnglish.png -> both selected and non-selected texts are anti-aliased with LCD_HRGB method. - Test2.MultipleLineSelectEnglish.png -> non-selected text is rendered with LCD_HRGB method, but selected text is rendered with some other anti-alias method. (maybe LCD_VRGB?) Windows anti-alias is something close to LCD_HRGB. Pivot anti-alias is LCD_HRGB except for multiple-line-selected text. Who's changing anti-alias method? Java? Can Pivot do something to workaround this? I'll run some more tests. > Font looks different when text is selected across multiple lines in TextArea > ---------------------------------------------------------------------------- > > Key: PIVOT-697 > URL: https://issues.apache.org/jira/browse/PIVOT-697 > Project: Pivot > Issue Type: Bug > Affects Versions: 2.0 > Environment: Windows XP SP3, JDK 1.6.0_18, Japanese > Reporter: Taro App > Priority: Minor > Fix For: 2.0.1 > > Attachments: NotePadComparison-MultipleLineSelectEnglish.png, > NotePadComparison-MultipleLineSelectJapanese.png, > Test1.SingleLineSelectEnglish.png, Test2.MultipleLineSelectEnglish.png, > Test3.SingleLineSelectJapanese.png, Test4.MultipleLineSelectJapanese.png, > TextAreaFontTestEnglish.java, TextAreaFontTestJapanese.java > > > Font looks different when text is selected across multiple lines in TextArea. > When the selection is within a single line, font looks the same. > For English text, this font change is subtle and can be ignored. > For Japanese text, this font change is obvious and looks weird. > I'm not sure if this is platform dependent or font dependent. > May have something to do with how Java2D renders fonts. > I will attach screen shots and test codes. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira