Skip to content
Snippets Groups Projects
sfont.h 602 B
Newer Older
  • Learn to ignore specific revisions
  • teuben's avatar
    teuben committed
    #ifndef SFONT_H
    #define SFONT_H
    
    /*
     * Hershey vector fonts.
     * Stuart Levy, slevy@ncsa.uiuc.edu
     * National Center for Supercomputing Applications,
     * University of Illinois 2001.
     */
    
    teuben's avatar
    teuben committed
    
    #include "geometry.h"	/* for Point, CONST, COUNT() */
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    
    extern float sfStrWidth( CONST char *str );	/* width assuming height=1.0 */
    
    teuben's avatar
    teuben committed
    
    extern float sfStrDraw( CONST char *str, float height, CONST Point *base );
    
    extern float sfStrDrawTJ( CONST char *str, float height, CONST Point *base,
    					CONST Matrix *tfm, CONST char *just );
    
    teuben's avatar
    teuben committed
    
    #ifdef __cplusplus
    }
    #endif
    
    #endif /*SFONT_H*/