]> git.lyx.org Git - features.git/commitdiff
- Do not use kerning, because that fucks up cursor positioning for good
authorAsger Ottar Alstrup <alstrup@lyx.org>
Sun, 22 Oct 2006 13:10:12 +0000 (13:10 +0000)
committerAsger Ottar Alstrup <alstrup@lyx.org>
Sun, 22 Oct 2006 13:10:12 +0000 (13:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15474 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.C
src/frontends/qt4/GuiFontLoader.C
src/frontends/qt4/QPrefsDialog.C
src/frontends/qt4/QViewSource.C

index 848385b9d93f842caada08ca4940e3ace0884144..27016b7415f6653675a38325f5aaf41929bb68d8 100644 (file)
@@ -180,6 +180,7 @@ void GuiApplication::exit(int status)
 string const GuiApplication::romanFontName()
 {
        QFont font;
+       font.setKerning(false);
        font.setStyleHint(QFont::Serif);
        font.setFamily("serif");
 
@@ -190,6 +191,7 @@ string const GuiApplication::romanFontName()
 string const GuiApplication::sansFontName()
 {
        QFont font;
+       font.setKerning(false);
        font.setStyleHint(QFont::SansSerif);
        font.setFamily("sans");
 
@@ -200,6 +202,7 @@ string const GuiApplication::sansFontName()
 string const GuiApplication::typewriterFontName()
 {
        QFont font;
+       font.setKerning(false);
        font.setStyleHint(QFont::TypeWriter);
        font.setFamily("monospace");
 
index cc05789aeb91021368ac9060f637dc887d39c33d..1dba6dd03705092eed0f3d6b47361bd2edbbf112 100644 (file)
@@ -162,6 +162,7 @@ pair<QFont, bool> const getSymbolFont(string const & family)
        upper[0] = toupper(family[0]);
 
        QFont font;
+       font.setKerning(false);
        font.setFamily(toqstr(family));
 
        if (isChosenFont(font, family)) {
@@ -219,6 +220,7 @@ void GuiFontLoader::update()
 
 QLFontInfo::QLFontInfo(LyXFont const & f)
 {
+       font.setKerning(false);
        string const pat = symbolFamily(f.family());
        if (!pat.empty()) {
                bool tmp;
@@ -290,6 +292,7 @@ QLFontInfo::QLFontInfo(LyXFont const & f)
                LyXFont smallfont = f;
                smallfont.decSize().decSize().setShape(LyXFont::UP_SHAPE);
                QFont font2(font);
+               font2.setKerning(false);
                font2.setPointSizeF(convert<double>(lyxrc.font_sizes[smallfont.size()])
                               * lyxrc.zoom / 100.0);
 
index b0d9c80ee051d98299fe332fa2c15f4a0b96d4d3..a94fbd2a53c55bf6a90a8c6d6a86ca37e4aedb2c 100644 (file)
@@ -128,6 +128,7 @@ void setComboxFont(QComboBox * cb, string const & family, string const & foundry
        // for bug 1063. Qt makes baby Jesus cry.
 
        QFont font;
+       font.setKerning(false);
 
        if (family == theApp->romanFontName()) {
                font.setStyleHint(QFont::Serif);
index f887063663dd65f11f4bfae4f947a6b901ccdc66..d284ba82cee7e3b4035d917c425399fd05fac21f 100644 (file)
@@ -92,6 +92,7 @@ void QViewSource::build_dialog()
        ///dialog_->viewSourceTV->setAcceptRichText(false);
        // this is personal. I think source code should be in fixed-size font
        QFont font(toqstr(theApp->typewriterFontName()));
+       font.setKerning(false);\r
        font.setFixedPitch(true);
        font.setStyleHint(QFont::TypeWriter);
        dialog_->viewSourceTV->setFont(font);