I'm trying to use Tahoma font (MS Shell Dlg 2) with a height of -15 and/or height -12 in a Listview control. However with both these sizes, my text appears squashed together horizontally, i.e. l's and i's are so close together you can barely distinguish them. It looks fine with the default height of -13 or with -16.

I am wondering if I'm doing something wrong with my call to CreateFont, as shown below, or whether this is a limitation of the font?

CreateFont(-15, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET,    
    OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, 
    DEFAULT_PITCH | FF_DONTCARE, L"MS Shell Dlg 2");

I tried playing with the quality and output precision args, with no luck.

没有正确的解决方案

其他提示

This was answered by someone on another forum. Apparently there is a bug in a certain version of the Tahoma font.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top