Differences From Artifact [3b7c3efa26]:
- File window.c — part of check-in [d2672cfce9] at 2001-03-02 03:25:14 on branch trunk — Fix problem with pointer hiding (user: simon size: 75751)
To Artifact [87d872e519]:
- File window.c — part of check-in [31527be6a5] at 2001-03-12 06:24:07 on branch trunk — Finally fixed the point/pixel confusion in font handling. Thanks to Roman Surma for pointing me at the relevant bits of documentation. All font sizes should now be measured in points, and everything should be consistent, and (with any luck) old Registry settings should adapt gracefully too. (user: simon size: 75864)
| ︙ | |||
804 805 806 807 808 809 810 811 812 813 814 815 816 817 | 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 | + + + |
fw_dontcare = FW_DONTCARE;
fw_bold = FW_BOLD;
}
hdc = GetDC(hwnd);
font_height = cfg.fontheight;
if (font_height > 0) {
font_height = -MulDiv(font_height, GetDeviceCaps(hdc, LOGPIXELSY), 72);
}
font_width = pick_width;
#define f(i,c,w,u) \
fonts[i] = CreateFont (font_height, font_width, 0, 0, w, FALSE, u, FALSE, \
c, OUT_DEFAULT_PRECIS, \
CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, \
FIXED_PITCH | FF_DONTCARE, cfg.font)
|
| ︙ |