Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 260661

Summary: [GTK/Linux] Huge Printed Fonts in KDE & Gnome
Product: [Eclipse Project] Platform Reporter: Mark A. Taff <mark>
Component: IDEAssignee: Paul Webster <pwebster>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: dak2009, Mike_Wilson, remy.suen, trevor
Version: 3.5   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
PDF of printed file showing huge fonts
none
PDF of file printed by kwrite showing normal font sizes
none
Screenshot of fonts in eclipse editor none

Description Mark A. Taff CLA 2009-01-11 22:21:25 EST
Created attachment 122223 [details]
PDF of printed file showing huge fonts

Build ID: I20080617-2000

Steps To Reproduce:
1. Print a *.java file in eclipse, either in KDE or Gnome
2. Print same file in krwite/kate/gedit/etc
3. Notice obscenely large fonts. ;-)


More information:
The onscreen font is just fine--it is set at 10pt.  The printed fonts are more like 20+ pts.

Using openSUSE 11.1, KDE 4.1.3, and whatever current Gnome is.

Will attach pdf's and a screenshot.
Comment 1 Mark A. Taff CLA 2009-01-11 22:23:26 EST
Created attachment 122224 [details]
PDF of file printed by kwrite showing normal font sizes

Prints the same from kate or gedit.
Comment 2 Mark A. Taff CLA 2009-01-11 22:24:20 EST
Created attachment 122225 [details]
Screenshot of fonts in eclipse editor
Comment 3 Mike Wilson CLA 2009-05-05 12:40:48 EDT
Changing Version tag to something more believable.
Comment 4 Trevor Campbell CLA 2009-07-07 02:05:36 EDT
This is really a duplicate of 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162500 and related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150870

Both of these have been outstanding way too long.  The problem stems from the fact that Cairo and Pango do everything in Points and Eclipse treats everything as Pixels.

Comment 5 Trevor Campbell CLA 2009-07-07 03:19:12 EDT
See:
http://library.gnome.org/devel/pango/stable/pango-Cairo-Rendering.html#pango-cairo-context-set-resolution

This implies to me the fonts are being printed 1.33 times larger than they should, and from my testing this seems about right.
Comment 6 Paul Webster CLA 2009-07-07 05:37:04 EDT
Thanx, Trevor
PW


*** This bug has been marked as a duplicate of bug 150870 ***