SOURCES: qt4-x11_fonts.patch (NEW) - fix fonts family
charles
charles at pld-linux.org
Mon Feb 20 21:03:22 CET 2006
Author: charles Date: Mon Feb 20 20:03:22 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix fonts family
---- Files affected:
SOURCES:
qt4-x11_fonts.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/qt4-x11_fonts.patch
diff -u /dev/null SOURCES/qt4-x11_fonts.patch:1.1
--- /dev/null Mon Feb 20 21:03:22 2006
+++ SOURCES/qt4-x11_fonts.patch Mon Feb 20 21:03:16 2006
@@ -0,0 +1,20 @@
+--- qt-x11-opensource-src-4.1.0/src/gui/text/qfontdatabase_x11.cpp.old 2006-02-18 20:23:36.000000000 +0100
++++ qt-x11-opensource-src-4.1.0/src/gui/text/qfontdatabase_x11.cpp 2006-02-19 03:37:14.000000000 +0100
+@@ -1120,7 +1120,7 @@
+ };
+ const FcDefaultFont defaults[] = {
+ { "Serif", "serif", false },
+- { "Sans Serif", "sans-serif", false },
++ { "Sans", "sans-serif", false },
+ { "Monospace", "monospace", true },
+ { 0, 0, false }
+ };
+@@ -1149,6 +1149,8 @@
+ style->smoothScalable = true;
+ QtFontSize *size = style->pixelSize(SMOOTH_SCALABLE, true);
+ QtFontEncoding *enc = size->encodingID(-1, 0, 0, 0, 0, true);
++ if (f->qtname == "Monospace")
++ family->fixedPitch = TRUE;
+ enc->pitch = (f->fixed ? 'm' : 'p');
+ }
+ ++f;
================================================================
More information about the pld-cvs-commit
mailing list