X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Ffont-retry.h;fp=utils%2Ffont-retry.h;h=94b4442b6ffc8b06ee59eb73f00764caee2b2068;hp=0000000000000000000000000000000000000000;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hpb=39809ded547bdbb08207d3e514950425215b4410 diff --git a/utils/font-retry.h b/utils/font-retry.h new file mode 100644 index 00000000..94b4442b --- /dev/null +++ b/utils/font-retry.h @@ -0,0 +1,20 @@ +/* xscreensaver, Copyright (c) 2018 by Jamie Zawinski + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + */ + +#ifndef __FONT_RETRY_H__ +#define __FONT_RETRY_H__ + +/* Like XLoadQueryFont, but if it fails, it tries some heuristics to + load something close. + */ +extern XFontStruct *load_font_retry (Display *, const char *xlfd); + +#endif /* __FONT_RETRY_H__ */