Commit b5c91a66 authored by Harald Fernengel's avatar Harald Fernengel

Make anti-aliasing of fonts configurable. Anti-Aliased fonts just look bad on...

Make anti-aliasing of fonts configurable. Anti-Aliased fonts just look bad on konsole on OS X with the default font, so I want to have a possibility to switch it off. No new user-visible strings were introduced, to switch off anti-aliasing, write "AntiAliasFonts=false" into your $KDEHOME/share/apps/konsole/Shell.profile, in the "Appearance" section.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=752393
parent d6987799
......@@ -88,6 +88,7 @@ const Profile::PropertyNamePair Profile::DefaultPropertyNames[] =
, { WordCharacters , "WordCharacters" }
, { TabBarPosition , "TabBarPosition" }
, { DefaultEncoding , "DefaultEncoding" }
, { AntiAliasFonts, "AntiAliasFonts" }
, { (Property)0 , 0 }
};
......@@ -145,6 +146,7 @@ FallbackProfile::FallbackProfile()
setProperty(CustomCursorColor,Qt::black);
setProperty(DefaultEncoding,QString(QTextCodec::codecForLocale()->name()));
setProperty(AntiAliasFonts,true);
// default taken from KDE 3
setProperty(WordCharacters,":@-./_~?&=%+#");
......@@ -302,6 +304,7 @@ bool KDE4ProfileWriter::writeProfile(const QString& path , const Profile* profil
writeStandardElement( appearance , profile , Profile::ColorScheme );
writeStandardElement( appearance , profile , Profile::Font );
writeStandardElement( appearance , profile , Profile::AntiAliasFonts );
// Scrolling
KConfigGroup scrolling = config.group("Scrolling");
......@@ -384,6 +387,7 @@ bool KDE4ProfileReader::readProfile(const QString& path , Profile* profile , QSt
readStandardElement<QString>(appearance,profile,Profile::ColorScheme);
readStandardElement<QFont>(appearance,profile,Profile::Font);
readStandardElement<bool>(appearance,profile,Profile::AntiAliasFonts);
// scrolling
KConfigGroup scrolling = config.group("Scrolling");
......
......@@ -175,7 +175,10 @@ public:
TabBarPosition,
/** (String) Default text codec */
DefaultEncoding
DefaultEncoding,
/** (bool) Whether fonts should be aliased or not */
AntiAliasFonts
};
/**
......
......@@ -658,6 +658,7 @@ void ViewManager::applyProfile(TerminalDisplay* view , const QString& profileKey
view->setOpacity(colorScheme->opacity());
// load font
view->setAntialias(info->property(Profile::AntiAliasFonts).value<bool>());
view->setVTFont(info->font());
// set scroll-bar position
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment