[MacPorts] #15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters -----------------------------------+---------------------------------------- Reporter: takanori@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | -----------------------------------+---------------------------------------- quartz-font backend in cairo 1.6.4 might have a bug. It does not render non-latin characters properly. I guess there might be a flaw in its default font selection mechanism or something. Ryan, would you please take a look? This is very serious problem since it affects all of gtk2 applications. Thanks. '''How to reproduce:''' 1) Install cairo and pango from scratch. {{{ $ sudo port install cairo pango $ port installed The following ports are currently installed: cairo @1.6.4_1+macosx (active) expat @2.0.1_0 (active) fontconfig @2.6.0_0+macosx (active) freetype @2.3.6_0 (active) gettext @0.17_3 (active) glib2 @2.16.3_0+darwin_9 (active) gperf @3.0.3_0 (active) libiconv @1.12_0 (active) libpixman @0.10.0_0 (active) libpng @1.2.29_0 (active) ncurses @5.6_0 (active) ncursesw @5.6_1 (active) pango @1.20.3_0 (active) pkgconfig @0.23_0 (active) render @0.9_1 (active) Xft2 @2.1.12_0 (active) xorg-util-macros @1.1.5_0 (active) xorg-xproto @7.0.11_1 (active) xrender @0.9.0_2 (active) zlib @1.2.3_1 (active) }}} After installing pango, run the below command to check whether these ports can render unicode text or not. {{{ $ pango-view --backend=cairo ~/Desktop/utf8.txt (Result: picture1.png [NG]) }}} 2) Next, simply remove '${prefix}/lib/pkgconfig/cairo-quartz-font.pc' {{{ $ sudo rm /opt/local/lib/pkgconfig/cairo-quartz-font.pc }}} and then rebuild pango. Due to this operation, pango will be built without cairo-quartz-font support. {{{ $ sudo port uninstall -f pango $ sudo port install pango }}} After installing pango, please run pango-view again. {{{ $ pango-view --backend=cairo ~/Desktop/utf8.txt (Result: picture2.png [OK]) }}} That's it. -- Ticket URL: <http://trac.macports.org/ticket/15626> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters ------------------------------------+--------------------------------------- Reporter: takanori@macports.org | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Changes (by ryandesign@macports.org): * status: new => assigned Comment: I can confirm this issue, on Mac OS X 10.4.11 Intel with Xcode 2.5 and MacPorts trunk @38022. (I get a slightly different result than you without cairo-quartz-font.pc -- some characters that are drawn correctly in your image are not in mine. Maybe the fonts that come with Leopard are improved from the ones in Tiger.) I am not sure whether this is pango's bug or cairo's bug, but I will bring it up on their mailing lists. -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters ------------------------------------+--------------------------------------- Reporter: takanori@macports.org | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ryandesign@macports.org): I [http://mail.gnome.org/archives/gtk-i18n-list/2008-July/msg00002.html asked the pango mailing list] first. The versions I'm using are cairo @1.6.4_1+macosx and pango @1.20.5_0. -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters ------------------------------------+--------------------------------------- Reporter: takanori@macports.org | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ryandesign@macports.org): Nobody responded to my message on the pango list. I also [http://lists.cairographics.org/archives/cairo/2008-July/014437.html asked the cairo list] on July 6 and nobody answered there either. I [http://mail.gnome.org/archives/gtk-i18n-list/2008-July/msg00009.html asked the pango list again] just now. -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters -----------------------------------+---------------------------------------- Reporter: takanori@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by ryandesign@…): As of r47716 Quartz support is off by default in cairo and pango so that is at least a solution that can be used until someone figures out how to make things work again with Quartz. -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters ------------------------------------+--------------------------------------- Reporter: takanori@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: | ------------------------------------+--------------------------------------- Changes (by takanori@…): * status: assigned => closed * resolution: => fixed Comment: I confirmed r47716 fixes this problem as well as #16778. Thank you Ryan! -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters ------------------------------------+--------------------------------------- Reporter: takanori@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: cairo | ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * port: => cairo Comment: But the problem still remains if you use the +quartz variant, doesn't it? -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15626: cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters ----------------------------------+----------------------------------------- Reporter: takanori@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Component: ports Version: 1.6.0 | Resolution: Keywords: | Port: cairo ----------------------------------+----------------------------------------- Changes (by alexander@…): * status: closed => reopened * resolution: fixed => Comment: Replying to [comment:4 ryandesign@…]:
As of r47716 Quartz support is off by default in cairo and pango so that is at least a solution that can be used until someone figures out how to make things work again with Quartz.
Replying to [comment:6 ryandesign@…]:
But the problem still remains if you use the +quartz variant, doesn't it?
Re-opening because the Unicode text rendering is still broken when using the +quartz variant. -- Ticket URL: <http://trac.macports.org/ticket/15626#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts