문제

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