diff options
author | Simon Rettberg | 2021-04-06 14:23:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-06 14:23:46 +0200 |
commit | 26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9 (patch) | |
tree | a51e1637554bcd84e63cccb1cb220c898a2c4ee8 /hacks/glx/texfont.h | |
parent | 5.44 (diff) | |
download | xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.tar.gz xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.tar.xz xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.zip |
xscreensaver 6.00
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. |