From http://www.jwz.org/xscreensaver/xscreensaver-5.40.tar.gz
[xscreensaver] / utils / font-retry.h
1 /* xscreensaver, Copyright (c) 2018 by Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #ifndef __FONT_RETRY_H__
13 #define __FONT_RETRY_H__
14
15 /* Like XLoadQueryFont, but if it fails, it tries some heuristics to
16    load something close.
17  */
18 extern XFontStruct *load_font_retry (Display *, const char *xlfd);
19
20 # ifdef __XSCREENSAVER_XFT_H__  /* if xft.h has been included */
21 extern XftFont *load_xft_font_retry (Display *, int screen, const char *xlfd);
22 # endif
23
24 #endif /* __FONT_RETRY_H__ */