libnrtype -> Pango replacement plan
One of the tasks for this release was to investigate what tasks would be needed to replace libnrtype with Pango for font handling. I did a bit of looking around to see where libnrtype functions are being called. Here's my first cut at what it looks like might need to be done.
Please review and comment on any additional tasks that you think will need to be done:
* Add Pango as an optional dependency for Inkscape & test on our various target platforms
* Modify widgets/font-selector.cpp to use Pango font new/ref/deref function as a compile-time option
* Modify dialogs/text-edit.cpp to use Pango font new/ref/deref function as a compile-time option
* Modify display/nr-arena-glyphs to use Pango font functions as a compile-time option
* Create replacements for sp-text.cpp and sp-chars.cpp that uses Pango instead of libnrtype as compile time option
* Test removal of libnrtype from Inkscape's Makefile & see what it breaks
* Make Pango a required dependency for Inkscape & remove compile-time option scaffolding
I've added these tasks to 0.43 and made Pangoification the objective for that release. If someone gets around to doing the tasks before that, that'd be lovely, otherwise we can plan on tackling it then.
Bryce
Bryce Harrington wrote:
One of the tasks for this release was to investigate what tasks would be needed to replace libnrtype with Pango for font handling. I did a bit of looking around to see where libnrtype functions are being called. Here's my first cut at what it looks like might need to be done.
Please review and comment on any additional tasks that you think will need to be done:
Add Pango as an optional dependency for Inkscape & test on our various target platforms
Modify widgets/font-selector.cpp to use Pango font new/ref/deref function as a compile-time option
Modify dialogs/text-edit.cpp to use Pango font new/ref/deref function as a compile-time option
Modify display/nr-arena-glyphs to use Pango font functions as a compile-time option
Create replacements for sp-text.cpp and sp-chars.cpp that uses Pango instead of libnrtype as compile time option
Test removal of libnrtype from Inkscape's Makefile & see what it breaks
Make Pango a required dependency for Inkscape & remove compile-time option scaffolding
I've added these tasks to 0.43 and made Pangoification the objective for that release. If someone gets around to doing the tasks before that, that'd be lovely, otherwise we can plan on tackling it then.
Bryce
Actually, Pango is a hard requirement for GTK+ already, so it is already present where we using Inkscape. We might be careful of the version, though. On Win32 we are using 1.2.0, the RH9 box I use for builds has 1.1.0, and Fedora Core 1 has 1.2.0.
Bob
participants (2)
-
Bob Jamison
-
Bryce Harrington