Bug 224679

Summary: [content assist] Code assist description font too big
Product: [Eclipse Project] JDT Reporter: Kevin McGuire <Kevin_McGuire>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3 CC: b.muskalla, daniel_megert, eclipse, martinae, remy.suen
Version: 3.4Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen cap showing relative font sizes of code assist list and text
none
screenshot gtk with partial big fonts
none
Sceen cap showing font comparison
none
Good Javadoc hover in HC
none
IE in HC alongside eclipse none

Description Kevin McGuire CLA 2008-03-28 13:02:46 EDT
I20080327-0100

1. open code assist on java source
2. select an element that has description text

Observe: the resulting font is HUGE, so much so that the text is likely useless (hence marking this major).
Comment 1 Kevin McGuire CLA 2008-03-28 13:04:07 EDT
Created attachment 94009 [details]
screen cap showing relative font sizes of code assist list and text
Comment 2 Remy Suen CLA 2008-03-28 13:07:43 EDT
This _was_ a problem on Linux/gtk+ with I20080325-0100 but I cannot reproduce it on I20080327-2251.
Comment 3 Benjamin Muskalla CLA 2008-03-28 13:15:59 EDT
Created attachment 94013 [details]
screenshot gtk with partial big fonts

Just in case it isn't fixed already, this is a screenshot of 0335-2233 on gtk. The fonts of the content assist are way too big but the javadoc font is alright.
Comment 4 Kim Horne CLA 2008-03-28 15:23:53 EDT
I dont believe our popup has anything to do with the javadoc blob that appears.  Moving to JDT for comment.
Comment 5 Dani Megert CLA 2008-03-28 15:31:45 EDT
Guys please. One bug one bug report. This bug is about the Javadoc and latest comment says Javadoc is good but...

Anyway, the content assist proposal list bug is fixed in I20080327-2251.

Kevin, the picture looks as if you switched to HC under WinXP. This them *has* big fonts. For M7 we will provide a way to move into the Javadoc window and resize it. Are you suggesting to ignore HC and set a hard-coded small font?
Comment 6 Kevin McGuire CLA 2008-03-28 18:43:03 EDT
(In reply to comment #5)

> Kevin, the picture looks as if you switched to HC under WinXP. This them *has*
> big fonts. For M7 we will provide a way to move into the Javadoc window and
> resize it. Are you suggesting to ignore HC and set a hard-coded small font?

Correct I'm using HC in WinXP.  While its true that this mode does use larger fonts, the font in question is bigger than say the list font, default text font (say from 3.3.2, current is smaller but that's a separate bug), etc.  We're talking PowerPoint presentation size font here. I'm not suggesting we don't observe the system font choices. I just wonder if we're computing something, or picking up a font that was intended for something else (although what I'm not sure, its not title or anything else I can spot).  In any case it makes the description portion unusable so something's not right here.

By the way, I'm seeing the same behaviour in 3.3.2 so its not a regression.

Comment 7 Kevin McGuire CLA 2008-03-28 18:44:42 EDT
Created attachment 94081 [details]
Sceen cap showing font comparison

In the screen shot you can see that the description font (left box) is considerably bigger than the explorer list font, the title font, etc.  Looks about 2x.
Comment 8 Kevin McGuire CLA 2008-03-28 18:52:26 EDT
FYI, I looked through the system Display Properties -> Appearance -> Advanced dialog on XP when in HC mode and the largest font I could find is 18pt (active title etc).  So I don't think this is a system font size we're seeing.

In case it helps, its true that the javadoc view seems to be using the same font (both in i0327 and in 3.3.2).
Comment 9 Dani Megert CLA 2008-03-31 06:11:58 EDT
I cannot reproduce this here (see attached picture). Most likely this has to do which browser is used by the Browser widget on your computer and what settings that browser is using. Are you using the standard setup? If so that would be IE.

Maybe you've set your browser to ignore custom fonts? Check your browser settings, especially those related to fonts and accessibility.

Also, please test (under normal and HC) whether your browser honors the Javadoc font at all (General > Colors and Fonts | Java > Javadoc display font (which per default its set to dialog font).

Also, you should see the same bad font in Javadoc view.
Comment 10 Dani Megert CLA 2008-03-31 06:14:22 EDT
Created attachment 94186 [details]
Good Javadoc hover in HC
Comment 11 Kevin McGuire CLA 2008-03-31 10:58:32 EDT
Interesting, didn't know the connection to the browser widget.  Will investigate the items you mentioned.
Comment 12 Dani Megert CLA 2008-04-11 08:17:14 EDT
Kevin, did you have any chance to investigate? We haven't seen this so far.
Comment 13 Kevin McGuire CLA 2008-04-14 15:56:19 EDT
Thanks for the reminder Dani.

Short answer is it looks like an IE problem:

It seems that IE on my machine is scaling up the fonts, and I assume then we pick that up.  No matter what font I pick in the javadoc preference, I get indeed that font but not the size, its always scaled way up. And if I simply open IE then I get a mondo font (with text size is set to medium).
Comment 14 Kevin McGuire CLA 2008-04-14 15:57:48 EDT
Created attachment 95978 [details]
IE in HC alongside eclipse