- Do not use kerning, because that fucks up cursor positioning for good

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15474 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Asger Ottar Alstrup 2006-10-22 13:10:12 +00:00
parent 9031593ae1
commit 6bcdafcd9c
4 changed files with 8 additions and 0 deletions

View 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");

View 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);

View 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);

View 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);
font.setFixedPitch(true);
font.setStyleHint(QFont::TypeWriter);
dialog_->viewSourceTV->setFont(font);