pango_ft2_font_get_face is deprecated

Bug #166276 reported by Kees Cook
4
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Alex Valavanis
Tags: build
Revision history for this message
theAdib (theadib) wrote :

actively used only in the file extension/internal/ps.cpp

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Luca Bruno (lucab) wrote :

In libnrtype too:
src/libnrtype/FontInstance.cpp:349: theFace=pango_ft2_font_get_face(pFont);
src/libnrtype/FontInstance.cpp:398: theFace=pango_ft2_font_get_face(pFont);

jazzynico (jazzynico)
tags: added: build
removed: all-platforms build-compile-code-design exporting
Revision history for this message
su_v (suv-lp) wrote :

Still present in Inkscape 0.48.3.1 and 0.48+devel r11254: with latest stable pango v1.30.0, I see these deprecation warnings when compiling Inkscape (stable and trunk) on OS X [1]:

../../src/libnrtype/FontFactory.cpp: In constructor ‘font_factory::font_factory()’:
../../src/libnrtype/FontFactory.cpp:326: warning: ‘pango_ft2_font_map_create_context’ is deprecated (declared at /opt/local/include/pango-1.0/pango/pangoft2.h:90)
../../src/libnrtype/FontFactory.cpp:326: warning: ‘pango_ft2_font_map_create_context’ is deprecated (declared at /opt/local/include/pango-1.0/pango/pangoft2.h:90)
../../src/libnrtype/FontInstance.cpp: In member function ‘void font_instance::InitTheFace()’:
../../src/libnrtype/FontInstance.cpp:409: warning: ‘pango_ft2_font_get_face’ is deprecated (declared at /opt/local/include/pango-1.0/pango/pangoft2.h:112)
../../src/libnrtype/FontInstance.cpp:409: warning: ‘pango_ft2_font_get_face’ is deprecated (declared at /opt/local/include/pango-1.0/pango/pangoft2.h:112)
../../src/libnrtype/FontInstance.cpp: In member function ‘int font_instance::MapUnicodeChar(gunichar)’:
../../src/libnrtype/FontInstance.cpp:464: warning: ‘pango_ft2_font_get_face’ is deprecated (declared at /opt/local/include/pango-1.0/pango/pangoft2.h:112)
../../src/libnrtype/FontInstance.cpp:464: warning: ‘pango_ft2_font_get_face’ is deprecated (declared at /opt/local/include/pango-1.0/pango/pangoft2.h:112)

---
[1] OS X 10.7.2, llvm-gcc-4.2, Glib 2.32.0, Gtk+ 2.24.10, Cairo 1.12.0 and Pango 1.30.0, w/ Quartz backend

description: updated
description: updated
Revision history for this message
Mat (matlinuxer2) wrote :

I got the same build error while updating packages this month, I use gentoo linux.

My pango and cairo libraries' version are:
dev-cpp/pangomm-2.28.4
x11-libs/pango-1.30.1
dev-cpp/cairomm-1.10.0
x11-libs/cairo-1.10.2-r3

and Inkscape is the lastest bzr trunk revision.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Should be fixed in lp:inkscape r12020. Let me know if any regressions appear!

Changed in inkscape:
assignee: Richard Hughes (cyreve) → Alex Valavanis (valavanisalex)
milestone: none → 0.49
status: Confirmed → Fix Committed
Revision history for this message
Mat (matlinuxer2) wrote :

Hi, I just rebuild the latest source, and failed again. The error message changed to about:

   undefined reference to symbol 'pango_ft2_font_map_set_default_substitute'

My pango and cairo libraries' version are:
dev-cpp/pangomm-2.28.4
x11-libs/pango-1.30.1
dev-cpp/cairomm-1.10.0
x11-libs/cairo-1.10.2-r3

and Inkscape is the lastest bzr trunk revision ( = 12093) .

The whole build log is the attachment ( build-12093.log )

Hope it helps~

( I just add subscribe setting for this thread. I will try to test again, when this bug updated )

Revision history for this message
Mat (matlinuxer2) wrote :
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

@Mat - I noticed that you're using the experimental GTK+ 3 build.

I tried a GTK+ 3 rebuild and it all seems OK to me (Ubuntu 12.10, amd4). Do you still have the same problem if you compile without the "--enable-gtk3-experimental" configuration flag?

Revision history for this message
jazzynico (jazzynico) wrote :

No problem on Debian testing, GTK+ 2 and GTK+ 3 builds.
* libpangomm-2.28.4-1,
* libpango-1.30.0-1,
* libcairomm-1.10.0-1,
* libcairo2-1.12.2-2.

Revision history for this message
su_v (suv-lp) wrote :

No problem on OS X 10.7.4, GTK+ 2 and GTK+ 3 builds.
GTK+/X11:
- pango @1.30.1_1+x11
- pangomm @2.28.4_0
- cairo @1.12.2_0+x11
- cairomm @1.10.0_0
GTK+/Quartz
- pango-devel @1.32.5_101+no_x11+quartz
- pangomm @2.28.4_1
- cairo @1.12.12_100+quartz
- cairomm @1.10.0_0

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Here's a patch to the configure script that explicitly links the pangoft2 library.

@Mat - Please could you see if this fixes your build error?

Revision history for this message
Mat (matlinuxer2) wrote :

Thanks for your feedbacks!!

The latest result is :

* disable gtk3 , and apply pangoft2-config.patch => build successfully ( thanks! inkscape is coming back to my desktop )
* disable gtk3, without pangoft2-config.patch => trying
* enable gtk3, with pangoft2-config.patch => trying
* enable gtk3, without pangoft2-config.patch => plan to retry again.

Revision history for this message
Mat (matlinuxer2) wrote :

The latest result is :

* disable gtk3 , and apply pangoft2-config.patch => [OK]
* disable gtk3 , without pangoft2-config.patch => [OK]
* enable gtk3 , with pangoft2-config.patch => [OK]
* enable gtk3 , without pangoft2-config.patch => [Failed] ( same as previous report )

=>

pangoft2-config.patch works for both gtk3 enable or disable.

Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.