https://bugzilla.novell.com/show_bug.cgi?id=438855
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=438855#c13
Stefan Hundhammer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEEDINFO
Info Provider| |mfabian@novell.com
--- Comment #13 from Stefan Hundhammer 2008-11-05 09:35:53 MST ---
Mike, did you see any of the messages from YQApplication::setLangFonts() in the
y2logs?
I'd like to know if that function is called at all, and what fonts were chosen.
The y2logs should contain a good number of traces:
http://svn.opensuse.org/svn/yast/trunk/qt/src/YQApplication.cc
void
YQApplication::setLangFonts( const string & language, const string & encoding )
{
if ( _fontFamily.isEmpty() )
_fontFamily = qApp->font().family();
QString oldFontFamily = _fontFamily;
if ( ! _langFonts )
{
_langFonts = new QSettings( LANG_FONTS_FILE, QSettings::IniFormat );
Q_CHECK_PTR( _langFonts );
if ( _langFonts->status() != QSettings::NoError )
yuiError() << "Error reading " << _langFonts->fileName() << endl;
else
yuiMilestone() << _langFonts->fileName() << " read OK"
<< qPrintable( _langFonts->allKeys().join( "-" ) )
<< endl;
}
QString lang = language.c_str();
if ( ! encoding.empty() )
lang += QString( "." ) + encoding.c_str();
QString key;
if ( ! _langFonts->contains( fontKey( lang ) ) ) // Try with encoding
("zh_CN.UTF8" etc.)
{
lang = language.c_str(); // Try without encoding
("zh_CN")
if ( ! _langFonts->contains( fontKey( lang ) ) )
lang.replace( QRegExp( "_.*$" ), "" ); // Cut off trailing
country ("_CN")
}
if ( _langFonts->contains( fontKey( lang ) ) )
{
_fontFamily = _langFonts->value( fontKey( lang ), _fontFamily
).toString();
yuiMilestone() << fontKey( lang ) << " = \"" << _fontFamily << "\"" <<
endl;
}
else
{
_fontFamily = _langFonts->value( fontKey( "" ), _fontFamily
).toString();
yuiMilestone() << "Using fallback for " << lang
<< ": font = \"" << _fontFamily << "\""
<< endl;
}
if ( _fontFamily.isEmpty() ) {
_fontFamily = "Sans Serif";
}
if ( _fontFamily != oldFontFamily )
{
yuiMilestone() << "New font family: " << _fontFamily << endl;
deleteFonts();
// setting the language loads fonts and we need to tell fontconfig
FcInitReinitialize();
foreach ( QWidget *widget, QApplication::allWidgets() )
{
if ( widget->font().family() != oldFontFamily )
continue;
QFont wfont( widget->font() );
wfont.setFamily( _fontFamily );
widget->setFont( wfont );
}
QFont font( qApp->font() );
font.setFamily( _fontFamily );
qApp->setFont(font); // font, informWidgets
yuiMilestone() << "Reloading fonts - now using \"" << font.toString()
<< "\"" << endl;
}
else
{
yuiDebug() << "No font change" << endl;
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.