--- /dev/null
+Index: src/path-prefix.h
+===================================================================
+--- src/path-prefix.h (revision 20075)
++++ src/path-prefix.h (working copy)
+@@ -42,7 +42,7 @@
+ # define CREATE_PALETTESDIR BR_DATADIR( "/create/swatches" )
+ # define CREATE_PATTERNSDIR BR_DATADIR( "/create/patterns/vector" )
+ #else
+-# ifdef WIN32
++# if 0
+ # define INKSCAPE_APPICONDIR WIN32_DATADIR("pixmaps")
+ # define INKSCAPE_BINDDIR WIN32_DATADIR("share\\bind")
+ # define INKSCAPE_EXAMPLESDIR WIN32_DATADIR("share\\examples")
--- /dev/null
+Index: src/libnrtype/FontInstance.cpp
+===================================================================
+--- src/libnrtype/FontInstance.cpp (revision 20075)
++++ src/libnrtype/FontInstance.cpp (working copy)
+@@ -443,7 +443,7 @@
+ OUTLINETEXTMETRIC otm;
+ GetOutlineTextMetrics(daddy->hScreenDC, sizeof(otm), &otm);
+ GLYPHMETRICS metrics;
+- DWORD bufferSize=GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE | GGO_UNHINTED, &metrics, 0, NULL, &identity);
++ DWORD bufferSize=GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE, &metrics, 0, NULL, &identity);
+ double scale=1.0/daddy->fontSize;
+ n_g.h_advance=metrics.gmCellIncX*scale;
+ n_g.v_advance=otm.otmTextMetrics.tmHeight*scale;
+@@ -457,7 +457,7 @@
+ doAdd=true;
+ } else {
+ std::auto_ptr<char> buffer(new char[bufferSize]);
+- if ( GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE | GGO_UNHINTED, &metrics, bufferSize, buffer.get(), &identity) <= 0 ) {
++ if ( GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE, &metrics, bufferSize, buffer.get(), &identity) <= 0 ) {
+ // shit happened
+ } else {
+ // Platform SDK is rubbish, read KB87115 instead
Name: mingw32-inkscape
Version: 20081027
-Release: 3%{?dist}
+Release: 5%{?dist}
Summary: MinGW Windows port of Inkscape vector graphics editor
License: LGPLv2+
# Rolled-up source patch, submitted upstream on 2008-10-27.
Patch0: mingw32-inkscape-20081027.patch
+# Fix the paths.
+Patch1: mingw32-inkscape-20081027-paths.patch
+
+# This patch is only needed to run under Wine, which doesn't
+# supported getting the outline of unhinted fonts.
+Patch2: /mingw32-inkscape-20081027-unhinted-fonts-for-wine.patch
+
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 30
%prep
%setup -q -n inkscape
%patch0 -p0
+%patch1 -p0
+%patch2 -p0
./autogen.sh
%changelog
-* Mon Oct 27 2008 Richard W.M. Jones <rjones@redhat.com> - 20081027-3
+* Mon Oct 27 2008 Richard W.M. Jones <rjones@redhat.com> - 20081027-5
- Initial RPM release.