New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20924 (closed defect: fixed)

Opened 2 years ago

Last modified 9 months ago

OS X 10.6 with +no_x11 +quartz: Pango-WARNING **: shaping failure, expect ugly output

Reported by: macports@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: 10.6 snowleopard Cc: tim.stoop@…, mh@…, macports@…, thimo@…, dominique.marie@…, email@…, royliu@…, MacPorts@…, unavowed@…, farcaller@…, yacoob@…, zimmermann@…, johnrosshunt@…, jvliwanag@…, mmoll@…, jemaltz@…, mike@…, devans@…, macports.org@…, michaelld@…, joe@…
Port: pango

Description

$ gtk-demo 

(gtk-demo:90990): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande Medium 12', text='Application main window'

(gtk-demo:90990): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Bitstream Vera Sans 18', text='Application main window'

The result is demo1.png. The same goes for pidgin (that I was trying to build). To rule out a mixture of -no_x11 and +no_x11 ports I created a fresh macports install with a variants.conf containing:

+universal +no_x11 +quartz

(+universal is needed because of #20284)

Note that pango-view cannot be used for testing because ImageMagick is built without X11 support in this scenario.

Attachments

demo1.png Download (28.8 KB) - added by macports@… 2 years ago.
demo1.png
pango-update-to-1.28.1.patch Download (5.2 KB) - added by mike@… 18 months ago.
Patch pango port to build 1.28.1; fixes ticket #20924
patch-pango-1.28.1-introspection.diff Download (5.4 KB) - added by devans@… 18 months ago.
Upgrade to 2.28.1 including +introspection variant
patch-pango-1.28.1-introspection-revised.diff Download (3.0 KB) - added by devans@… 17 months ago.
Revised patch file

Change History

Changed 2 years ago by macports@…

demo1.png

  Changed 2 years ago by jmr@…

  • keywords snowleopard added
  • owner changed from macports-tickets@… to ryandesign@…

This may be the same as or closely related to #17049.

  Changed 2 years ago by macports@…

It might be. I don't understand all the technical lingo in that bug. The version I have installed is:

$ sudo port installed pango
The following ports are currently installed:
  pango @1.24.5_0+macosx+no_x11+quartz+universal (active)

  Changed 2 years ago by tim.stoop@…

I've tried the latest Pango as mentioned in #17049, but now I'm not even getting a demo screen anymore. I've rebuild gtk2 after installing the newer Pango (from the Portfile by vitaly@).

  Changed 2 years ago by tim.stoop@…

  • cc tim.stoop@… added

Cc Me!

  Changed 2 years ago by macports@…

This bug still occurs with the latest ports without the +universal:

$ port installed | egrep 'pango|cairo|gtk2'
  cairo @1.8.8_0+macosx+no_x11+quartz (active)
  gtk2 @2.18.2_0+no_x11+quartz (active)
  pango @1.24.5_0+macosx+no_x11+quartz (active)

  Changed 2 years ago by mh@…

  • cc mh@… added

Cc Me!

  Changed 2 years ago by macports@…

  • cc macports@… added

Cc Me!

  Changed 2 years ago by thimo@…

  • cc thimo@… added

Cc Me!

  Changed 2 years ago by dominique.marie@…

  • cc dominique.marie@… added

Cc Me!

  Changed 2 years ago by email@…

  • cc email@… added

Cc Me!

  Changed 2 years ago by royliu@…

  • cc royliu@… added

Cc Me!

  Changed 2 years ago by michael@…

  • cc michael@… added

Cc Me!

  Changed 2 years ago by MacPorts@…

  • cc MacPorts@… added

Cc Me!

  Changed 2 years ago by unavowed@…

  • cc unavowed@… added

Cc Me!

  Changed 2 years ago by farcaller@…

  • cc farcaller@… added

Cc Me!

  Changed 2 years ago by ryandesign@…

Has duplicate #23028.

I don't really know what to do about this problem. I don't use pango's quartz or no_x11 variants, nor gtk2. I suggest you test whether pango 1.26.x would fix this problem. The reason pango has not been updated to this version is explained in #21624. If pango 1.26.x fixes the problem, test if the issue described in #21624 still exists; if so, encourage the developers of pango to fix it. If 1.26.x does not fix the shaping failure, report that problem to the developers of pango.

  Changed 2 years ago by yacoob@…

  • cc yacoob@… added

Cc Me!

  Changed 2 years ago by yacoob@…

Just to clarify here: pango version 1.26.2 doesn't fix the problem, shaping failures still are present.

  Changed 2 years ago by zimmermann@…

  • cc zimmermann@… added

Cc Me!

  Changed 2 years ago by johnrosshunt@…

  • cc johnrosshunt@… added

Cc Me!

  Changed 2 years ago by attila.tajti@…

  • cc attila.tajti@… added

Cc Me!

in reply to: ↑ description ; follow-up: ↓ 33   Changed 2 years ago by nolith@…

This Portfile worked for me:  http://trac.macports.org/attachment/ticket/17049/Portfile

$ port installed | egrep 'cairo|pango|gtk2'
  cairo @1.8.8_0+macosx+no_x11+quartz (active)
  gtk2 @2.18.6_0+no_x11+quartz (active)
  pango @1.24.5_0+macosx+no_x11+quartz
  pango @1.26.0_0+macosx+no_x11+quartz (active)
  py26-cairo @1.8.8_0 (active)

  Changed 2 years ago by farcaller@…

I second this, given Portfile works ok here.

  Changed 2 years ago by johnrosshunt@…

I'll third it. The Portfile works for me as well.

  Changed 2 years ago by ryandesign@…

  • cc nolith@… added

And are the three of you claiming that using that pango 1.26.0 portfile, you do not experience the slowdowns reported in #21624 (which is the reason why we have not updated to 1.26.x so far)?

  Changed 2 years ago by farcaller@…

Yes, cannot reproduce that any more ant that's pretty strange. However gtk-demo and wireshark work ok and I have no signs of #21624.

  Changed 2 years ago by johnrosshunt@…

I haven't noticed the problems from #21624 but I've noticed two other bugs. Menu shortcut labels (e.g. Ctrl+S, Alt+Q, etc.) are distorted and right clicks aren't working. I have no idea if this is GTK or Pango related, or both.

  Changed 2 years ago by tim.stoop@…

I can confirm this works for me too, without any slowdowns. I do not however use liferea or rrdtool, I use gtimelog. Shortcuts work for me too, as does right clicking.

  Changed 2 years ago by attila.tajti@…

  • cc attila.tajti@… removed

Cc Me!

  Changed 22 months ago by jvliwanag@…

  • cc jvliwanag@… added

Cc Me!

  Changed 21 months ago by mmoll@…

  • cc mmoll@… added

Cc Me!

  Changed 21 months ago by jemaltz@…

  • cc jemaltz@… added

Cc Me!

in reply to: ↑ 22   Changed 20 months ago by philip.chimento@…

Replying to nolith@…:

This Portfile worked for me:  http://trac.macports.org/attachment/ticket/17049/Portfile

That portfile didn't work for me, I got

Error: Unable to open port: Error evaluating variants

  Changed 19 months ago by jmr@…

Someone was saying on IRC that pango 1.28 seems to be OK.

  Changed 19 months ago by thmx.2k7@…

pango-devel @1.27.1_0 works fine for me

follow-up: ↓ 37   Changed 18 months ago by mike@…

I had to modify the Portfile at  http://trac.macports.org/attachment/ticket/17049/Portfile to support the "macosx" variant. Once I did that, I was able to build pango 1.26.0 on Snow Leopard (10.6.4) and GTK2/Quartz applications displayed fonts properly. This is an important bug fix. Is there something holding up the new pango package?

in reply to: ↑ 36   Changed 18 months ago by ryandesign@…

Replying to mike@…:

Is there something holding up the new pango package?

Mostly just apathy. If someone will provide a patch that will update the pango port to the latest version and incorporate any relevant changes from the pango-devel port I'll probably commit it.

  Changed 18 months ago by ryandesign@…

  • cc mike@… added

Mike, see my comment above.

Changed 18 months ago by mike@…

Patch pango port to build 1.28.1; fixes ticket #20924

  Changed 18 months ago by devans@…

  • cc devans@… added

I'd like to add support for this update request for the following reasons:

  • pango 1.28.1 is the current version distributed with the GNOME 2.30.2 release
  • current version of pango (1.24.5) does not support GObject introspection while 1.28.1 does. This is a gating item for enabling introspection in gtk2 and its dependents

To this end, in the attached patch file I have added to mike's contributions the following:

  • disable introspection by default to avoid autoconfiguration if port gobject-introspection is installed
  • add +introspection variant to enable introspection

This builds for me on SL x86_64 and Leopard ppc non-universal with and without the +introspection variant and builds universal in all cases except +introspection where it fails in the introspection process -- hence the variant approach. Perhaps some one else can figure out how to fix this one case.

Changed 18 months ago by devans@…

Upgrade to 2.28.1 including +introspection variant

  Changed 17 months ago by macports.org@…

  • cc macports.org@… added

Cc Me!

  Changed 17 months ago by devans@…

I've just confirmed that gimp2 @2.6.10_3+no_x11+quartz using pango @1.24.5_0+no_x11+quartz shows the same problem, that is, gimp2 emits the following warnings

gimp:18410): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande Medium 9.9990234375', text='Plug-In Interpreters'

(gimp:18410): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande Medium 12', text='Looking for data files'

and characters in the startup screen and other windows display as open boxes only (ugly).

Upgrading to 1.28.1 fixes the problem.

Mac OS 10.6.4 x86_64

  Changed 17 months ago by michaelld@…

  • cc michaelld@… added

Cc Me!

  Changed 17 months ago by raimue@…

Do not delete the epoch option from the Portfile. This setting should never be removed anymore after it has been added.

  Changed 17 months ago by nolith@…

  • cc nolith@… removed

Cc Me!

  Changed 17 months ago by joe@…

  • cc joe@… added

Cc Me!

  Changed 17 months ago by macports@…

I can confirm that upgrading to 1.28.1 using the patch from devans solves this issue. Thanks! What needs to be done for this to be added to the central repository?

  Changed 17 months ago by devans@…

Here's an update to the latest patch that removes some -devel-isms (e.g. my_name) and removes the +introspection variant for now since it breaks the universal build.

Changed 17 months ago by devans@…

Revised patch file

  Changed 17 months ago by johnrosshunt@…

I can confirm that the  patch-pango-1.28.1-introspection-revised.diff patch works for me as well.

  Changed 17 months ago by devans@…

Patch to upgrade to latest pango 1.28.3 attached to #26697.

  Changed 17 months ago by macports@…

Thanks for the update. What needs to be done for this to be added to the central repository?

  Changed 17 months ago by devans@…

Maintainer needs to review and push to svn.

  Changed 16 months ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed

r72474 (maintainer timeout)

follow-up: ↓ 54   Changed 9 months ago by maltee@…

  • status changed from closed to reopened
  • resolution fixed deleted

The problem still exists with pango 1.28.4 gtk-quartz is unusable.

in reply to: ↑ 53   Changed 9 months ago by maltee@…

Replying to maltee@…:

The problem still exists with pango 1.28.4 gtk-quartz is unusable.

This was not my problem. My problem was, that pango was not automatically installed with +quartz (or not reinstalled after cairo was installed with +quartz). Please close this bug again, sorry for false alarm!

  Changed 9 months ago by michael@…

  • cc michael@… removed

Cc Me!

  Changed 9 months ago by jmr@…

  • status changed from reopened to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.