質問

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