mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-08-06 10:55:02 +02:00
Fix an issue where drawn text would flicker slightly when moving the cursor.
This commit is contained in:
parent
1ee80bc15d
commit
7d02616133
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ func initFontNew(family string, size float64, weight gui.QFont__Weight, stretch,
|
|||
// font := gui.NewQFont2(family, size, int(gui.QFont__Normal), false)
|
||||
font := gui.NewQFont()
|
||||
if editor.config.Editor.ManualFontFallback {
|
||||
font.SetStyleHint(gui.QFont__TypeWriter, gui.QFont__NoFontMerging)
|
||||
font.SetStyleHint(gui.QFont__TypeWriter, gui.QFont__NoFontMerging|gui.QFont__ForceIntegerMetrics)
|
||||
} else {
|
||||
font.SetStyleHint(gui.QFont__TypeWriter, gui.QFont__PreferDefault|gui.QFont__ForceIntegerMetrics)
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ func (f *Font) change(family string, size float64, weight gui.QFont__Weight, str
|
|||
f.qfont.SetFamily(family)
|
||||
|
||||
if editor.config.Editor.ManualFontFallback {
|
||||
f.qfont.SetStyleHint(gui.QFont__TypeWriter, gui.QFont__NoFontMerging)
|
||||
f.qfont.SetStyleHint(gui.QFont__TypeWriter, gui.QFont__NoFontMerging|gui.QFont__ForceIntegerMetrics)
|
||||
} else {
|
||||
f.qfont.SetStyleHint(gui.QFont__TypeWriter, gui.QFont__PreferDefault|gui.QFont__ForceIntegerMetrics)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue