GNOME Bugzilla – Bug 608512
pangocairo scaling problem.
Last modified: 2010-09-23 00:24:55 UTC
Hi everyone , I've encountered a pango bug, which spent me amount of time.. :-( if you scale a cairo context to a small value( 1 ~ 10 ) , the text extents (ink) is ok. the ink extents rectangle is stick on text. if you scale a cairo context to a large value ( 20 > .. ), the text extents (ink) will be very strange, ink ascent is ok , but descent is not good. here is my test case, thought it's in perl
Created attachment 152624 [details] when scale to 21 x 21.
Created attachment 152625 [details] when scale to 3 x 3
Hi, your test cases don't work for me. When I install perl-Gtk2 on Fedora 12, all I get is this error: > $ perl scale33.pl > Can't locate Pango.pm in @INC (@INC contains: lib /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at scale33.pl line 7. BEGIN failed--compilation aborted at scale33.pl line 7. Can you please provide working test cases?
Alright, I had to change "use Pango;" to "use Gtk2::Pango;". Now I get this error: > Undefined subroutine &Pango::Cairo::create_layout called at scale21x21.pl line 46. Can you please specify the versions of the language bindings that you use?
ok, my Pango module version is: Pango 1.221 Cairo 1.061 you will need to reinstall these module via: # cpan Pango # cpan Cairo my libraries: glib version 2.22.4 cairo version: 1.8.8 pango version: 1.26.2 and I am on Mac OS 10.6. :-)
and the perl version is: 5.10.1 another question: when i scaling a cairo context to 23:23 I use font size < 5 to get ink ,logical extents but they both will be the same. (but it shouldn't, the ink extents should stick on text , right ? ) font size >12 , the text extents will be more concise.
Reopening as the requested information has been provided.
Attach screenshot please.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!