Results 1 to 3 of 3

Thread: Very LARGE Stroke fonts

  1. #1
    Guest

    Very LARGE Stroke fonts

    I don't know if this is supposed to happen or if it is something I did, but I am trying to use a stroke font in one of my games and the letters are huge! They are like 200 pixels wide! Here is the code that I use to draw my characters

    void renderBitmapString(float x,float y,float z,char *string) {
    char *c;
    glPushMatrix();
    glTranslatef(x, y,z);
    for (c=string; *c != '\0'; c++) {
    glutStrokeCharacter(GLUT_STROKE_ROMAN, *c);
    }
    glPopMatrix();
    }

    I don't use a scaling function at all until I get to the point where I use this(I put it in to shrink the text). I also am not using any frustrum or perspective matrix.

    Thanks in advance for the help

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Very LARGE Stroke fonts

    I don't know for stroke fonts under glut, but you can try bitmaps instead (you can pass the size, cf glut.h).

    You should print text on the projection matrix, not the modelview matrix. Also use glRasterPos instead of glTranslate to localize your text position.

    Hope this helps.

  3. #3
    Guest

    Re: Very LARGE Stroke fonts

    I usualy use bitmap fonts but in this program I needed something that I could make bigger(just not this big)

Similar Threads

  1. Problem getting visually correct stroke
    By schedar in forum OpenVG
    Replies: 1
    Last Post: 03-03-2018, 03:34 AM
  2. drawing a stroke
    By ken84shin in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-21-2009, 12:37 AM
  3. Size of GLUT Stroke fonts ?
    By thebuffalo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-12-2009, 02:27 PM
  4. Stroke based rendering
    By SeskaPeel in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 04-13-2004, 10:43 AM
  5. how to implement stroke text
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-26-2003, 03:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean