/*
* This probably is the library user's fault
*/
- g_error( "font 0x%08x not found", font );
+ fgError( "font 0x%08x not found", font );
+
+ return 0;
}
*/
void FGAPIENTRY glutBitmapCharacter( void* fontID, int character )
{
- const guchar* face;
+ const GLubyte* face;
/*
* First of all we'll need a font to use
glPopClientAttrib();
}
+void FGAPIENTRY glutBitmapString( void* fontID, const char *string )
+{
+ int i;
+
+ for( i=0; i<strlen( string ); i++ )
+ glutBitmapCharacter( fontID, string[ i ] );
+}
+
/*
* Returns the width in pixels of a font's character
*/
*/
int FGAPIENTRY glutBitmapLength( void* fontID, const char* string )
{
- gint i, length = 0;
+ int i, length = 0;
/*
* Using glutBitmapWidth() function to calculate the result
*/
- for( i=0; i<(gint) strlen( string ); i++ )
+ for( i=0; i<strlen( string ); i++ )
length += glutBitmapWidth( fontID, string[ i ] );
/*
*/
int FGAPIENTRY glutStrokeLength( void* fontID, const char* string )
{
- gint i, length = 0;
+ int i, length = 0;
/*
* Using glutStrokeWidth() function to calculate the result
*/
- for( i=0; i<(gint) strlen( string ); i++ )
+ for( i=0; i<strlen( string ); i++ )
length += glutStrokeWidth( fontID, string[ i ] );
/*