GNOME Bugzilla – Bug 519526
Wrong thickness and position of underlining.
Last modified: 2009-01-03 01:15:27 UTC
Please describe the problem: When using a custom pango_cairo_context resolution to compensate for a custom cario scale (so that we can draw in the same units on all kinds of surfaces), the underlining gets out of proportions. Steps to reproduce: 1. Compile the attached program in two versions, with and without #define DRAWING_IN_MM (line 3). 2. Compare the versions on screen and in PDF. Actual results: When DRAWING_IN_MM is defined, underlining thickness increases and lowers in position. On Linux the lowering is much more clear than the increase in thickness (you need to zoom in on the PFD and use a ruler to see the latter) and on Windows it is the other way round: here the increase in thickness is much more apparent, although the effect decreases for larger fonts. Expected results: Underlining should be proportional to font size alone so results should be identical, whether DRAWING_IN_MM is defined or not. Does this happen every time? Yes Other information:
Created attachment 106254 [details] Illustrating code.
Created attachment 106255 [details] Screenshot win32.
Comment on attachment 106255 [details] Screenshot win32. DRAWING_IN_MM defined.
Created attachment 106257 [details] Export to PDF DRAWING_IN_MM defined, win32.
Created attachment 106258 [details] Export to PDF no scaling, win32.
Created attachment 106259 [details] Screenshot Linux, DRAWING_IN_MM defined.
Created attachment 106260 [details] Screenshot Linux, no scaling.
Created attachment 106261 [details] Export to PDF, DRAWINF_IN_MM defined, Linux
Created attachment 106262 [details] Export to PDF, no scaling, Linux.
Created attachment 106270 [details] Screenshot from WordPad (win32) For comparison.
Created attachment 106271 [details] PDF Created by PDFCreator from WordPad (win32) For comparison.
*** This bug has been marked as a duplicate of 457990 ***