Hello,
Imgur
OS: Windows 10 + DPI 200%
Vim Version: 8.0
It looks like bad, Gvim window is too small to click it.
HiDPI Device has been used more and more commonly all over the world. I Hope vim can pay more attention on it.
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
If you enable DirectWrite (DirectX), gvim will be shown better.
See :help 'renderoptions'.
Setting the renderoptions, doesn't make the window bigger, but should improve the readability of the font.
I am not sure, what you are seeing, probably some kind of this: dcpurton/regfont#1
—
You are receiving this because you commented.
—
Setting the renderoptions, doesn't make the window bigger, but should improve the readability of the font.
Our DirectWrite implementation does support High DPI and font scaling. If you look gui_dwrite.cpp, you will find the variables mDpiScaleX and mDpiScaleY which are used for scaling.
I think we need similar implementation for the traditional GDI renderer, but I don't have the motivation for it.
FYI, the current implementation doesn't support Per-Monitor DPI which is new in Windows 8.1. Maybe we should also support this.
—
You are receiving this because you commented.
I think we need similar implementation for the traditional GDI renderer, but I don't have the motivation for it.
Sorry, this is wrong. The traditional GDI renderer already supports font scaling.
The problem is the default font size. On my PC (scale: 150%), the default font size was 6.
@wbsdty331
You need to set the font size with 'guifont'.
E.g.:
:set gfn=FixedSys:h11
or
:set gfn=* " You can also use the font dialog box to select the font.
—
You are receiving this because you commented.
The problem is the default font is Fixedsys 16px, which is a bitmap font.
Can we change it into an outline font?
—
You are receiving this because you commented.
I hope:
English: Consolas
Chinese: Microsoft YaHei UI
DO NOT USE FixedSys
—
You are receiving this because you commented.
—
You are receiving this because you commented.
There are (at least?) two problems in the current implementation.
—
You are receiving this because you commented.
@chrisbra
I haven't used regfont, but when I see the comments, I feel it difficult to fix.
I don't know is there any workaround for that CreateFontFromLOGFONT returns an error.
—
You are receiving this because you commented.
—
You are receiving this because you commented.
@wbsdty331 Hi,我就直接用简体中文了。你说的问题,英文用Consolas,中文用Microsoft YaHei UI,可以用这种方式实现:
1:自己编译gvim,编译的时候定义宏FEAT_PROPORTIONAL_FONTS,这样会让gvim列举非等宽字体,你就能看到Microsoft YaHei UI了;
2:在gvimrc里添加配置:
set gfn=Consolas:h10 gfw=Microsoft\ YaHei\ UI:h10
不过我不建议你这么做,中英文不能对齐。我一直想做个补丁,实现Visual Studio 那样的效果,可是没有时间。
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.![]()
@boytom If DirectWrite is enabled, Consolas will fallback to Microsoft Yahei on Simplified Chinese system (maybe displaying language, the first of language list, non-Unicode locale and/or other), and Microsoft Yahei will be scaled to fit the grid.
—
You are receiving this because you commented.
@dantmnf 虽然比GDI好了很多,但不是很完美。汉字在一行中是对齐的,英语字母会上下跳跃(打开文件时,英语字母显示在偏上的位置,用Ctrl+L刷新一下,英语字母就下来了),g q的下边不能显示。
@boytom @wbsdty331 We can open a new issue to discuss it.
—
You are receiving this because you commented.
—
You are receiving this because you commented.
So sorry about my poor English. If DirectWrite is enabled and gfn is Consolas, ASCII character looks like superscript of Chinese character of the same line(align with top) when Consolas fallbacks to Microsoft YaHei. But when you press CTRL-L to clear and redraw the screen, ASCII character will fall down and align Chinese character with bottom.
—
You are receiving this because you commented.
Someone already made a font called "Microsoft YaHei Mono", you can google it.
set guifont=Microsoft\ YaHei\ Mono:h20
—
You are receiving this because you commented.
Renderoptions and a sensible font make the editor and menu usable, but the icons are still tiny. Is there any way to embiggen them?
No, currently icons are not scaled.
@askvictor The Windows Creators update has resolved this. The icons are fairly big enough now.

To enable this, open the gvim.exe's properties:
so this issue can be closed now?
@chrisbra any chance of detecting a hidpi environment and automatically making sane defaults?
I just wanted to add my 2 cents. I have Windows 10 Creators Update as well although I'm not sure that changes anything. I just installed gvim 8.0 today after updating Windows. I never tried gvim on this monitor before the update. I just added set guifont=Consolas:h10:cANSI:qDRAFT to _gvimrc and that was all I needed. I tried to use the compatibility options first as @D4D3VD4V3 mentioned but it didn't work as well. After reading :help rop as others mentioned I realized the problem was it was using GDI just because of the default font. Switching to Consolas was the only thing I actually needed to do to get a good HiDPI display. FYI, I have a Samsung 4k 28" display.
Closed #1059.
It looks like Windows 10 1703 solved this problem.
I will close this issue.
After a recent W10 update, I am having the same problem. Not only is the font extremely tiny, but the icons are also itty-bitty!
Yeah, I just hit this installing GVim 8.2 on Windows 10 Version 10.0.18362 Build 18362
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Hit this with Gvim 8.2, Windows 10 Home 21H1.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.![]()
Vim supports PerMonitorV2 since 8.2.4109. The discussions in this issue is now outdated.
Please use a newer version than that.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.![]()
@k-takata thanks for the pointer!
vim.org says:
The current stable version is gvim_8.2.2825.exe.
An alternative is the standard self-installing executable, currently version 8.2.2824.
Would you happen to know where I could get 8.2.4109 from? Thanks!
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.![]()