diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-08-02 11:13:00 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-08-02 11:13:00 +0200 |
commit | 0704427510fa18d90170cf13d1fd81e446a1d3b0 (patch) | |
tree | f88eb0400bf4608d95808aeea656185634b9c0fc /mageia/dependencies/qt3/qt-x11-free-3.3.8-qmo35263.patch | |
parent | 9f07f141355cd13d40a39a2f123c6516209c5fcf (diff) | |
download | tde-packaging-0704427510fa18d90170cf13d1fd81e446a1d3b0.tar.gz tde-packaging-0704427510fa18d90170cf13d1fd81e446a1d3b0.zip |
Mageia: initial QT3 version for TDE 3.5.13
Diffstat (limited to 'mageia/dependencies/qt3/qt-x11-free-3.3.8-qmo35263.patch')
-rw-r--r-- | mageia/dependencies/qt3/qt-x11-free-3.3.8-qmo35263.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mageia/dependencies/qt3/qt-x11-free-3.3.8-qmo35263.patch b/mageia/dependencies/qt3/qt-x11-free-3.3.8-qmo35263.patch new file mode 100644 index 000000000..1d63754c2 --- /dev/null +++ b/mageia/dependencies/qt3/qt-x11-free-3.3.8-qmo35263.patch @@ -0,0 +1,41 @@ +--- src/kernel/qfontdatabase_x11.cpp 2006-12-28 21:40:34.000000000 +0200 ++++ src/kernel/qfontdatabase_x11.cpp 2006-12-28 21:43:44.000000000 +0200 +@@ -1504,13 +1504,24 @@ + convert the pixel size to a point size and request that. + */ + double size_value = request.pixelSize; ++ double dpi = QPaintDevice::x11AppDpiY(fp->screen); + double scale = 1.; + if ( size_value > MAXFONTSIZE_XFT ) { + scale = (double)size_value/(double)MAXFONTSIZE_XFT; + size_value = MAXFONTSIZE_XFT; + } +- +- size_value = size_value*72./QPaintDevice::x11AppDpiY(fp->screen); ++#ifdef QT_XFT2 ++ /* ++ 2006-12-28 If QT is not compiled against xft1, there is no need ++ for the workaround above (confirmed). Thus, in addition, add ++ font pixelsize to the pattern to avoid fontconfig making wrong ++ guesses. Also provide a DPI value for fontconfig so it never ++ attempts to fallback to its default. ++ */ ++ XftPatternAddDouble(pattern, XFT_PIXEL_SIZE, size_value); ++ XftPatternAddDouble(pattern, XFT_DPI, dpi); ++#endif ++ size_value = size_value*72./dpi; + XftPatternAddDouble( pattern, XFT_SIZE, size_value ); + + #ifdef XFT_MATRIX +@@ -1875,6 +1886,11 @@ + FcResult result; + FcFontSet *fs = 0; + FcPattern *fsp = 0; ++ ++ // Properly conform to fontconfig API. We need to call FcDefaultSubstitute() ++ // before FcFontSort()/FcFontMatch(). ++ FcDefaultSubstitute(pattern); ++ + if( use_fontsort ) { + fs = FcFontSort(0, pattern, FcFalse, 0, &result); + if (!fs) |