RSS/Atom feed Twitter
Site is read-only, email is disabled

Gimp 2.9 font error on the Mac (Snow Leopard 64bit)

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Gimp 2.9 font error on the Mac (Snow Leopard 64bit) Partha Bagchi 18 Nov 14:12
  Gimp 2.9 font error on the Mac (Snow Leopard 64bit) Michael Natterer 18 Nov 16:33
   Gimp 2.9 font error on the Mac (Snow Leopard 64bit) Partha Bagchi 18 Nov 16:55
Partha Bagchi
2012-11-18 14:12:11 UTC (over 12 years ago)

Gimp 2.9 font error on the Mac (Snow Leopard 64bit)

A new issue seems to have manifested itself on the Mac. When I recently compiled 2.9, it would not power up and gave me the following error:

"You are using a Pango that has been built against a cairo that lacks the freetype font backend"

Of course, my cairo is built with the freetype font backend. Right now I have fixed this in the following way:

In app/text/gimpfont.c, I changed the following

[code] fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT); if (! fontmap)
g_error ("You are using a Pango that has been built against a cairo " "that lacks the Freetype font backend"); [/code]

to

[code]
fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT); if (! fontmap)
fontmap = pango_cairo_font_map_get_default ();

/* g_error ("You are using a Pango that has been built against a cairo " "that lacks the Freetype font backend"); */
[/code]

Has anyone else gotten this error or know why it is suddenly cropping up?

Thanks, Partha

Michael Natterer
2012-11-18 16:33:35 UTC (over 12 years ago)

Gimp 2.9 font error on the Mac (Snow Leopard 64bit)

On Sun, 2012-11-18 at 09:12 -0500, Partha Bagchi wrote:

A new issue seems to have manifested itself on the Mac. When I recently compiled 2.9, it would not power up and gave me the following error:

"You are using a Pango that has been built against a cairo that lacks the freetype font backend"

Of course, my cairo is built with the freetype font backend. Right now I have fixed this in the following way:

In app/text/gimpfont.c, I changed the following

[code] fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT); if (! fontmap)
g_error ("You are using a Pango that has been built against a cairo " "that lacks the Freetype font backend"); [/code]

I'm going to assume that you build gimp master against latest greatest.

Try also bulding harfbuzz, that's needed now, then rebuild from cairo, or pango, not sure.

--mitch

to

[code]
fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT); if (! fontmap)
fontmap = pango_cairo_font_map_get_default ();

/* g_error ("You are using a Pango that has been built against a cairo " "that lacks the Freetype font backend"); */
[/code]

Has anyone else gotten this error or know why it is suddenly cropping up?

Thanks, Partha
_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-developer-list

Partha Bagchi
2012-11-18 16:55:19 UTC (over 12 years ago)

Gimp 2.9 font error on the Mac (Snow Leopard 64bit)

On Sun, Nov 18, 2012 at 11:33 AM, Michael Natterer wrote:

On Sun, 2012-11-18 at 09:12 -0500, Partha Bagchi wrote:

A new issue seems to have manifested itself on the Mac. When I recently compiled 2.9, it would not power up and gave me the following error:

"You are using a Pango that has been built against a cairo that lacks the freetype font backend"

Of course, my cairo is built with the freetype font backend. Right now I have fixed this in the following way:

In app/text/gimpfont.c, I changed the following

[code] fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT); if (! fontmap)
g_error ("You are using a Pango that has been built against a cairo " "that lacks the Freetype font backend"); [/code]

I'm going to assume that you build gimp master against latest greatest.

You assume correctly. :)

Try also bulding harfbuzz, that's needed now, then rebuild from cairo, or pango, not sure.

I am going to assume that we need the new harbuzz.

--mitch

Thanks Mitch!

Partha