X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftexfont.h;h=13f8cef2759c003306430de5cec6b7248c1457a8;hp=05c9219a292125ee345ed112a663fde44682750a;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/glx/texfont.h b/hacks/glx/texfont.h index 05c9219a..13f8cef2 100644 --- a/hacks/glx/texfont.h +++ b/hacks/glx/texfont.h @@ -1,4 +1,4 @@ -/* texfonts, Copyright (c) 2005 Jamie Zawinski +/* texfonts, Copyright (c) 2005-2014 Jamie Zawinski * Loads X11 fonts into textures for use with OpenGL. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -20,13 +20,15 @@ typedef struct texture_font_data texture_font_data; */ extern texture_font_data *load_texture_font (Display *, char *res); -/* Width of the string in pixels. +/* Bounding box of the multi-line string, in pixels. */ extern int texture_string_width (texture_font_data *, const char *, - int *line_height_ret); + int *height_ret); /* Draws the string in the scene at the origin. Newlines and tab stops are honored. + Any numbers inside [] will be rendered as a subscript. + Assumes the font has been loaded as with load_texture_font(). */ extern void print_texture_string (texture_font_data *, const char *);