This commit is contained in:
parent
0164c4c2d9
commit
5445b616f5
@ -1,51 +0,0 @@
|
|||||||
Index: fontconfig-2.8.0/src/fcmatch.c
|
|
||||||
===================================================================
|
|
||||||
--- fontconfig-2.8.0.orig/src/fcmatch.c
|
|
||||||
+++ fontconfig-2.8.0/src/fcmatch.c
|
|
||||||
@@ -413,6 +413,46 @@ FcFontRenderPrepare (FcConfig *confi
|
|
||||||
}
|
|
||||||
else
|
|
||||||
v = FcValueCanonicalize(&FcPatternEltValues (fe)->value);
|
|
||||||
+
|
|
||||||
+ /* This is workaround only!! */
|
|
||||||
+ if (fe->object == FC_STYLE_OBJECT)
|
|
||||||
+ {
|
|
||||||
+ FcPatternElt *le, *sle;
|
|
||||||
+ FcValue lang, stlang, style;
|
|
||||||
+ FcValueList *stlangs, *sts;
|
|
||||||
+ int l;
|
|
||||||
+
|
|
||||||
+ if ((le = FcPatternObjectFindElt(pat, FC_LANG_OBJECT)))
|
|
||||||
+ lang = FcValueCanonicalize(&FcPatternEltValues(le)->value);
|
|
||||||
+ else
|
|
||||||
+ { /* I think it is not needed. */
|
|
||||||
+ lang.type = FcTypeString;
|
|
||||||
+ lang.u.s = (const FcChar8 *)"en";
|
|
||||||
+ }
|
|
||||||
+ sts = FcPatternEltValues(fe);
|
|
||||||
+ sle = FcPatternObjectFindElt(font, FC_STYLELANG_OBJECT);
|
|
||||||
+ if (sle) /* style elt can be present, stylelang no (e. g. fc-match Times) */
|
|
||||||
+ { /* if so, sts list contain only one value, so we can jump to style = .. */
|
|
||||||
+ stlangs = FcPatternEltValues(sle);
|
|
||||||
+ l = 0;
|
|
||||||
+
|
|
||||||
+ do
|
|
||||||
+ {
|
|
||||||
+ stlang = FcValueCanonicalize(&stlangs->value);
|
|
||||||
+ if (FcLangCompare(stlang.u.s, lang.u.s) < FcLangDifferentLang)
|
|
||||||
+ break;
|
|
||||||
+ sts = FcValueListNext(sts);
|
|
||||||
+ l++;
|
|
||||||
+ } while ((stlangs = FcValueListNext(stlangs)));
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (sts)
|
|
||||||
+ style = FcValueCanonicalize(&sts->value);
|
|
||||||
+ else
|
|
||||||
+ style = "<unknown>";
|
|
||||||
+ v.u.s = style.u.s;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
FcPatternObjectAdd (new, fe->object, v, FcFalse);
|
|
||||||
}
|
|
||||||
for (i = 0; i < pat->num; i++)
|
|
@ -1,10 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Nov 30 21:18:13 CET 2010 - pgajdos@suse.cz
|
|
||||||
|
|
||||||
- workarounded problems with choosing right style lang
|
|
||||||
[bnc#379991], [bnc#457427]
|
|
||||||
* stylelang.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 25 13:15:08 CET 2010 - pgajdos@suse.cz
|
Thu Nov 25 13:15:08 CET 2010 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
@ -70,7 +70,6 @@ Patch31: bugzilla-246783-do-not-crash-when-config-files-contain-broken-st
|
|||||||
Patch32: usr-share-doc-packages.patch
|
Patch32: usr-share-doc-packages.patch
|
||||||
Patch33: bnc438855-make-FcInitReinitialize-work-again.patch
|
Patch33: bnc438855-make-FcInitReinitialize-work-again.patch
|
||||||
Patch34: urw-aliases-whitespaces.patch
|
Patch34: urw-aliases-whitespaces.patch
|
||||||
Patch35: %{name}-stylelang.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -117,33 +116,24 @@ accepts font patterns and returns the nearest matching font.
|
|||||||
%patch32 -p1
|
%patch32 -p1
|
||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
%patch34 -p1
|
%patch34 -p1
|
||||||
%patch35 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#%configure --with-pic \
|
%configure --with-pic \
|
||||||
#%if %suse_version > 1100
|
%if %suse_version > 1100
|
||||||
# --disable-static \
|
--disable-static \
|
||||||
#%endif
|
%endif
|
||||||
# --with-freetype-lib=%_libdir \
|
--with-freetype-lib=%_libdir \
|
||||||
# --with-x \
|
--with-x \
|
||||||
# --enable-libxml2=no \
|
--enable-libxml2=no \
|
||||||
# --with-confdir=/etc/fonts \
|
--with-confdir=/etc/fonts \
|
||||||
# --with-docdir=%{_defaultdocdir}/%{name} \
|
--with-docdir=%{_defaultdocdir}/%{name} \
|
||||||
# --with-add-fonts=/usr/X11R6/lib/X11/fonts,/opt/kde3/share/fonts,/usr/local/share/fonts \
|
--with-add-fonts=/usr/X11R6/lib/X11/fonts,/opt/kde3/share/fonts,/usr/local/share/fonts \
|
||||||
# %if %{build_docs} < 1
|
%if %{build_docs} < 1
|
||||||
# --disable-docs
|
--disable-docs
|
||||||
# %else
|
%else
|
||||||
#
|
#
|
||||||
#%endif
|
%endif
|
||||||
#make %{?jobs:-j %jobs}
|
make %{?jobs:-j %jobs}
|
||||||
CFLAGS='-fmessage-length=0 -O0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
|
|
||||||
export CFLAGS
|
|
||||||
CXXFLAGS='-fmessage-length=0 -O0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
|
|
||||||
export CXXFLAGS
|
|
||||||
FFLAGS='-fmessage-length=0 -O0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
|
|
||||||
export FFLAGS
|
|
||||||
./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-pic --disable-static --with-freetype-lib=/usr/lib64 --with-x --enable-libxml2=no --with-confdir=/etc/fonts --with-docdir=/usr/share/doc/packages/fontconfig --with-add-fonts=/usr/X11R6/lib/X11/fonts,/opt/kde3/share/fonts,/usr/local/share/fonts --disable-docs
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export MALLOC_CHECK_=2
|
export MALLOC_CHECK_=2
|
||||||
|
Loading…
Reference in New Issue
Block a user