Dialog font of Vim in different "encoding" setting

1 view
Skip to first unread message

weasley_wx

unread,
Nov 20, 2008, 10:54:02 AM11/20/08
to vim_use
hi all.
 
the gvim72 for Windows set encoding to "cp936" defaultly, and in this case, the dialog font is pretty (Tahona),
but, the encoding of "cp936" isn't good for me, so i changed it to "utf-8", after set the lang of message to utf-8:
 
set encoding=utf-8
set helplang=cn
lang mes zh_CN.UTF-8
run delmenu.vim
set langmenu=zh_CN.UTF-8
run menu.vim
set termencoding=cp936
 
all is well, but the Vim's dialog changed to "sans", which is much ugly than "Tahona", i think i can't abide it...
 
there is a screenshot of two fonts.
 
any idea about this little bug? (just setting guifont and guifontwide, nothing better, and i don't know how to set guifontset...)
 
btw, the menu font and the font of Vim Window itself is prefect.
 
 

weasley_wx
2008-11-20
Font of Vim.jpg

Tony Mechelynck

unread,
Nov 21, 2008, 3:02:40 AM11/21/08
to vim...@googlegroups.com
> ------------------------------------------------------------------------
> weasley_wx
> 2008-11-20

I may be wrong, but I believe this is more of a Windows problem than a
Vim problem, especially since both text and menus in your Vim screen
(what the OS calls the "window" of the gvim.exe application) are exactly
the way you like them.

If I were still on Windows, and having this kind of problem, I might try
digging into the "country settings" (maybe looking for zh_CN.UTF-8,
zh_CN.ISO10646-1, or even zh_CN.UTF-16le because Unicode communication
between the Windows OS [XP or later] and Unicode-aware apps is always in
UTF-16le), or even searching the Windows registry for them, but in
either case with no guarantee of success.


Best regards,
Tony.
--
"... the Mayo Clinic, named after its founder, Dr. Ted Clinic ..."
-- Dave Barry

bill lam

unread,
Nov 21, 2008, 4:20:35 AM11/21/08
to vim...@googlegroups.com

I seldom use window now. It seems there are font rendering problem related
to auto-hint or anti-alias. What if you just add
set encoding=utf-8
and leave other defaults unchanged.

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩285 張祜 集靈臺二首之二
虢國夫人承主恩 平明騎馬入宮門 卻嫌脂粉污顏色 淡掃蛾眉朝至尊

StarWing

unread,
Nov 21, 2008, 9:53:07 AM11/21/08
to vim_use
sorry for seem that i can't understand you.... you mean it's a bug of
Vim?

then, there're any idea to solve it?

bill lam

unread,
Nov 21, 2008, 10:37:11 AM11/21/08
to vim...@googlegroups.com
Sorry I don't know. However I tended to agree with Tony that it is a
window problem rather than a vim problem.

You might try choosing another font or size for dialog box text in
your window theme. Anyway window doesn't wok and you don't know why
it doesn't work. ;-)
唐詩126 孟浩然 清明日宴梅道士房
林臥愁春盡 開軒覽物華 忽逢青鳥使 邀入赤松家
丹灶初開火 仙桃正發花 童顏若可駐 何惜醉流霞

StarWing

unread,
Nov 21, 2008, 3:48:58 PM11/21/08
to vim_use
i have just tried change the font of Dialog, but nothing changed. and
i swap the window theme, nothing improve, neither.

i'm reading the source code of Vim, and try to find the answer -- i
think it's caused by multi-byte code support of Vim, because when Vim
find out there are multi-byte support of windows, it will try to use
Unicode APIs to buliding Vim's Windows. i think may be the SelectFont
of OnPaint in Vim's Dialog has some issues. -- because it is just a
same behavior when i didn't update HDC in windows.
Reply all
Reply to author
Forward
0 new messages