Re: Pango CoreText/ATSUI (was:Intricate changes to Quartz/OSX backend)

2009-12-22 Thread Kristian Rietveld
On Mon, Dec 21, 2009 at 6:48 PM, Paul Davis p...@linuxaudiosystems.com wrote:
 Yea, a configure thing was my plan for supporting Tiger and Leopard.  Good
 to know that you agree with that :)  I will look into fixing up that patch
 this week.

 Did anything ever happen with this?

Coincidentally, I had the time to look into this today (Christmas
holidays :).  I have completely reworked the patch, actually fully
removing the CoreText calls.  This removes the need for a nasty
configure thing and HAVE_CORETEXT macros for now.  Both Tiger and
(Snow) Leopard now use ATS calls in the ATSUI backend.  I have just
pushed the commit to Pango's master branch:

http://git.gnome.org/browse/pango/commit/?id=0f06d7758bc37a4942342d2c17a88944cbc88adb

Of course it is known that ATS has been deprecated in Mac OS Leopard.
Just adding some CoreText calls to the ATSUI backend is not the proper
way to solve this.  (Since all other parts still do deprecated ATS
calls).  In the very near feature, we will have to write a proper
CoreText backend for Pango from scratch.  But for now, usage of ATS
will suffice on all platforms.


regards,

-kris.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: Pango CoreText/ATSUI (was:Intricate changes to Quartz/OSX backend)

2009-12-21 Thread Paul Davis
On Mon, Oct 26, 2009 at 10:52 AM, Kristian Rietveld k...@gtk.org wrote:
 On Oct 26, 2009, at 4:47 PM, John Ralls wrote:

 True, switch would have been a better term...

 ISTM that a configure option and a macro that selects either the ATSUI or
 CoreText function is the way to go, so that Pango will build both for Tiger
 and x86_64.

 Yea, a configure thing was my plan for supporting Tiger and Leopard.  Good
 to know that you agree with that :)  I will look into fixing up that patch
 this week.

Did anything ever happen with this?
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: Pango CoreText/ATSUI (was:Intricate changes to Quartz/OSX backend)

2009-10-26 Thread John Ralls


On Oct 26, 2009, at 8:34 AM, Kristian Rietveld wrote:


On Oct 26, 2009, at 4:23 PM, John Ralls wrote:
Oh, and unstable won't build without intervention on Tiger, because  
the latest Pango uses CoreText instead of ATSUI; CoreText wasn't  
supported before Leopard.


They didn't really port the backend to CoreText.  It is still using  
the ATSUI API and they changed two function calls.  I have an easy  
patch that puts the old calls (which were removed) back and then it  
builds and works fine on Tiger.  I will try to clean this patch up  
and push it soon (and also test it on Leopard, which I was not able  
to do before).


The real challenge will be to write a proper, real, CoreText backend  
for Pango.  I might tackle that in the future.


True, switch would have been a better term...

ISTM that a configure option and a macro that selects either the ATSUI  
or CoreText function is the way to go, so that Pango will build both  
for Tiger and x86_64.  Cairo needs the same treatment; right now they  
just skip the ATSUI functions when building in 64-bit.


Regards,
John Ralls

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list