After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 519526 - Wrong thickness and position of underlining.
Wrong thickness and position of underlining.
Status: RESOLVED DUPLICATE of bug 457990
Product: pango
Classification: Platform
Component: cairo
1.18.x
Other All
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2008-02-29 14:45 UTC by Bastiaan
Modified: 2009-01-03 01:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Illustrating code. (10.64 KB, text/plain)
2008-02-29 14:46 UTC, Bastiaan
Details
Screenshot win32. (6.61 KB, image/png)
2008-02-29 14:53 UTC, Bastiaan
Details
Export to PDF (43.29 KB, application/pdf)
2008-02-29 14:58 UTC, Bastiaan
Details
Export to PDF (42.99 KB, application/pdf)
2008-02-29 15:02 UTC, Bastiaan
Details
Screenshot Linux, DRAWING_IN_MM defined. (13.60 KB, image/png)
2008-02-29 15:06 UTC, Bastiaan
Details
Screenshot Linux, no scaling. (7.15 KB, image/png)
2008-02-29 15:09 UTC, Bastiaan
Details
Export to PDF, DRAWINF_IN_MM defined, Linux (12.56 KB, application/pdf)
2008-02-29 15:13 UTC, Bastiaan
Details
Export to PDF, no scaling, Linux. (12.43 KB, application/pdf)
2008-02-29 15:14 UTC, Bastiaan
Details
Screenshot from WordPad (win32) (4.56 KB, image/png)
2008-02-29 15:57 UTC, Bastiaan
Details
PDF Created by PDFCreator from WordPad (win32) (2.86 KB, application/pdf)
2008-02-29 16:00 UTC, Bastiaan
Details

Description Bastiaan 2008-02-29 14:45:56 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:
Comment 1 Bastiaan 2008-02-29 14:46:38 UTC
Created attachment 106254 [details]
Illustrating code.
Comment 2 Bastiaan 2008-02-29 14:53:25 UTC
Created attachment 106255 [details]
Screenshot win32.
Comment 3 Bastiaan 2008-02-29 14:54:35 UTC
Comment on attachment 106255 [details]
Screenshot win32.

DRAWING_IN_MM defined.
Comment 4 Bastiaan 2008-02-29 14:58:26 UTC
Created attachment 106257 [details]
Export to PDF

DRAWING_IN_MM defined, win32.
Comment 5 Bastiaan 2008-02-29 15:02:10 UTC
Created attachment 106258 [details]
Export to PDF

no scaling, win32.
Comment 6 Bastiaan 2008-02-29 15:06:44 UTC
Created attachment 106259 [details]
Screenshot Linux, DRAWING_IN_MM defined.
Comment 7 Bastiaan 2008-02-29 15:09:19 UTC
Created attachment 106260 [details]
Screenshot Linux, no scaling.
Comment 8 Bastiaan 2008-02-29 15:13:41 UTC
Created attachment 106261 [details]
Export to PDF, DRAWINF_IN_MM defined, Linux
Comment 9 Bastiaan 2008-02-29 15:14:20 UTC
Created attachment 106262 [details]
Export to PDF, no scaling, Linux.
Comment 10 Bastiaan 2008-02-29 15:57:52 UTC
Created attachment 106270 [details]
Screenshot from WordPad (win32)

For comparison.
Comment 11 Bastiaan 2008-02-29 16:00:59 UTC
Created attachment 106271 [details]
PDF Created by PDFCreator from WordPad (win32)

For comparison.
Comment 12 Behdad Esfahbod 2009-01-03 01:15:27 UTC

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