1 /* NetHack 3.7	mhfont.h	$NHDT-Date: 1596498350 2020/08/03 23:45:50 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.17 $ */
2 /* Copyright (C) 2001 by Alex Kompel 	 */
3 /* NetHack may be freely redistributed.  See license for details. */
4 
5 /* font management functions */
6 
7 #ifndef MSWINFont_h
8 #define MSWINFont_h
9 
10 #include "winMS.h"
11 
12 #define MIN_FONT_WIDTH 9
13 #define MIN_FONT_HEIGHT 12
14 
15 typedef struct cached_font {
16     int code;
17     HFONT hFont;
18     BOOL supportsUnicode;
19     int width;
20     int height;
21 } cached_font;
22 
23 BOOL mswin_font_supports_unicode(HFONT hFont);
24 cached_font * mswin_get_font(int win_type, int attr, HDC hdc, BOOL replace);
25 HFONT mswin_create_splashfont(HWND hWnd);
26 UINT mswin_charset(void);
27 
28 #endif /* MSWINFont_h */
29