Go to the source code of this file.
 | 
| void  | gr_stuff_first_font (char *first_font, size_t first_font_size) | 
|   | 
| int  | gr_get_current_fontnum () | 
|   | 
| int  | gr_get_fontnum (const char *filename) | 
|   | 
| void  | gr_set_font (int fontnum) | 
|   | 
| void  | gr_print_timestamp (int x, int y, fix timestamp, int resize_mode) | 
|   | 
| int  | gr_force_fit_string (char *str, int max_str, int max_width) | 
|   | 
| void  | gr_font_init () | 
|   | 
| void  | gr_font_close () | 
|   | 
| int  | get_char_width (ubyte c1, ubyte c2, int *width, int *spacing) | 
|   | 
| int  | get_centered_x (const char *s, bool scaled) | 
|   | 
      
        
          | int get_centered_x  | 
          ( | 
          const char *  | 
          s,  | 
        
        
           | 
           | 
          bool  | 
          scaled  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
Takes the character BEFORE being offset into current font 
- Returns
 - the letter code 
 
Definition at line 75 of file font.cpp.
 
 
      
        
          | int gr_force_fit_string  | 
          ( | 
          char *  | 
          str,  | 
        
        
           | 
           | 
          int  | 
          max_str,  | 
        
        
           | 
           | 
          int  | 
          max_width  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Crops a string if required to force it to not exceed max_width pixels when printed. Does this by dropping characters at the end of the string and adding '...' to the end.
- Parameters
 - 
  
    | str | string to crop. Modifies this string directly  | 
    | max_str | max characters allowed in str  | 
    | max_width | number of pixels to limit string to (less than or equal to).  | 
  
   
- Returns
 - Returns the width of the string as given by gr_get_string_size(). 
 
Definition at line 48 of file font.cpp.
 
 
      
        
          | int gr_get_current_fontnum  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | int gr_get_fontnum  | 
          ( | 
          const char *  | 
          filename | ) | 
           | 
        
      
 
 
      
        
          | void gr_stuff_first_font  | 
          ( | 
          char *  | 
          first_font,  | 
        
        
           | 
           | 
          size_t  | 
          first_font_size  | 
        
        
           | 
          ) | 
           |  |