Summary: | serching for fonts make crash in kcmshell | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Piotr Komborski <combor> |
Component: | qt | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | almighty, esigra, florian-evers, guillaume.duc, ireo, janumix, ljmerino |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Piotr Komborski
2003-10-05 15:24:52 UTC
when i try to adjust all fonts kcmshell crashes looks like Qt crashes on the rendering of a font Subject: Re: serching for fonts make crash in kcmshell Waldo Bastian wrote: >------- You are receiving this mail because: ------- >You reported the bug, or are watching the reporter. > >http://bugs.kde.org/show_bug.cgi?id=65537 > > > > >------- Additional Comments From bastian@kde.org 2003-10-15 16:27 ------- >looks like Qt crashes on the rendering of a font > > > > bug or i made something wrong? *** Bug 66297 has been marked as a duplicate of this bug. *** Subject: qt-copy CVS commit by coolo: applying fix sent by TT (hope I did this right, I'm new to this qt-copy/patches) CCMAIL: 65537-done@bugs.kde.org A patches/0030-qfontdatabase_BR66297.diff 1.1 M +6 -9 src/kernel/qfontdatabase_x11.cpp 1.27 --- qt-copy/src/kernel/qfontdatabase_x11.cpp #1.26:1.27 @@ -103,4 +103,5 @@ static const XlfdEncoding xlfd_encoding[ { "iso8859-15", 8, 111, make_tag('i','s','o','8'), make_tag('9','-','1','5') }, { "hp-roman8", 9, 2004, make_tag('h','p','-','r'), make_tag('m','a','n','8') }, +#define LAST_LATIN_ENCODING 9 { "iso8859-5", 10, 8, make_tag('i','s','o','8'), make_tag('5','9','-','5') }, { "*-cp1251", 11, 2251, 0, make_tag('1','2','5','1') }, @@ -1273,4 +1274,6 @@ QFontEngine *loadEngine( QFont::Script s QtFontEncoding *encoding, bool forced_encoding ) { + Q_UNUSED(script); + if ( fp && fp->rawMode ) { QCString xlfd = request.family.latin1(); @@ -1474,14 +1477,8 @@ QFontEngine *loadEngine( QFont::Script s QFontEngine *fe = 0; const int mib = xlfd_encoding[ encoding->encoding ].mib; - switch ( script ) { - case QFont::Latin: - if ( ! forced_encoding ) { + if (encoding->encoding <= LAST_LATIN_ENCODING && !forced_encoding) { fe = new QFontEngineLatinXLFD( xfs, xlfd.data(), mib ); - break; - } - - default: + } else { fe = new QFontEngineXLFD( xfs, xlfd.data(), mib ); - break; } *** Bug 67015 has been marked as a duplicate of this bug. *** *** Bug 67936 has been marked as a duplicate of this bug. *** *** Bug 67738 has been marked as a duplicate of this bug. *** *** Bug 78031 has been marked as a duplicate of this bug. *** *** Bug 79578 has been marked as a duplicate of this bug. *** *** Bug 65127 has been marked as a duplicate of this bug. *** |