diff options
Diffstat (limited to 'hacks/glx/texfont.h')
-rw-r--r-- | hacks/glx/texfont.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/hacks/glx/texfont.h b/hacks/glx/texfont.h index 8f86dab..1d1f61c 100644 --- a/hacks/glx/texfont.h +++ b/hacks/glx/texfont.h @@ -1,4 +1,4 @@ -/* texfonts, Copyright (c) 2005-2016 Jamie Zawinski <jwz@jwz.org> +/* texfonts, Copyright (c) 2005-2021 Jamie Zawinski <jwz@jwz.org> * Loads X11 fonts into textures for use with OpenGL. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -13,6 +13,10 @@ #ifndef __TEXTURE_FONT_H__ #define __TEXTURE_FONT_H__ + +#include "xft.h" + + typedef struct texture_font_data texture_font_data; /* Loads the font named by the X resource "res" and returns @@ -55,7 +59,15 @@ void string_to_texture (texture_font_data *, const char *, /* Set the various OpenGL parameters for properly rendering things with a texture generated by string_to_texture(). */ -void enable_texture_string_parameters (void); +void enable_texture_string_parameters (texture_font_data *); + + +/* True if the string appears to be a "missing" character. Since there is + no way to tell whether a font contains a character or has substituted a + "missing" glyph for it, we examine the bits to see if it is either + solid black, or is a simple rectangle, which is what most fonts use. + */ +Bool blank_character_p (texture_font_data *, const char *); /* Releases the texture font. |