Ticket #15626 (assigned defect)
cairo @1.6.4_1+macosx with quartz-font support: does not render non-latin characters
| Reported by: | takanori@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | Port Bugs |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | ||
| Port: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

