Well, I'm not sure if I'm understanding you, but when I draw GL_TRIANGLES before the call of glutStrokeCharacter, my Triangle is exactly in the point 0.0/0.0,
 
    glOrtho(-1.0,2.2,-1.4,1.0,-1.0,1.0); // These numbers have reasons ;)
so the text should be visible....!?

From: Larry E. Ramey
Sent: Saturday, July 03, 2010 4:16 PM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer] StrokeChar doesn't draw

Where is your strokeChar position? (As in.. your current Modelview Matrix)


You might be rendering the characters, but well outside of your veiwport if you push your modelview and then create a nice modelview of rendering charecters.

Larry

From: Florian Meßner <flo.messner@hotmail.com>
To: FreeGLUT developers list <freeglut-developer@lists.sourceforge.net>
Sent: Sat, July 3, 2010 8:04:25 AM
Subject: [Freeglut-developer] StrokeChar doesn't draw

Thank you!
But with my code nothing is drawn....

    glPushMatrix();

    const char* ch = sCaption.c_str();
    glColor3d(1.0, 1.0, 1.0);
    glLineWidth(5.0f);
    glScaled(GLUT_FONT_WIDTH, GLUT_FONT_HEIGHT, GLUT_FONT_DESCENT);
    while (*ch) glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,*(ch++));

    glPopMatrix();

sCaption is std::string

In my displayFunc I do:
void MainDisplayF()
{
glClearColor(0.0f,0.0f,0.0f,0.0f);

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //löscht den
farbspeicher
glEnable(GL_DEPTH_TEST);
...

}

my reshapeFunc:
void MainReshapeF(int width, int height)
{
    glViewport(0, 0, width, height);

    iMainWidth = width;
    iMainHeight = height;

    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrtho(-1.0,2.2,-1.4,1.0,-1.0,1.0); // These numbers have reasons ;)
    glMatrixMode(GL_MODELVIEW);
}


Thank you for your efforts!
--------------------------------------------------
From: "Florian Echtler" <floe@butterbrot.org>
Sent: Friday, July 02, 2010 5:12 PM
To: "FreeGLUT developers list" <freeglut-developer@lists.sourceforge.net>
Cc: "FlorianMeßner" <flo.messner@hotmail.com>
Subject: Re: [Freeglut-developer] Freeglut - StrokeStrings

> Hello everyone,
>
>> It sounds like you are using C++ variable types.  The "freeglut"
>>  libraries are C libraries; the string will be a simple "char *"
>>  variable.  There may be some trouble with the "const" that the "c_str"
>>  function returns.
> The quick-and-dirty solution to this looks somewhat along the lines of:
>
> const char* chr = text.c_str();
> while (*chr) glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,*(chr++));
>
>> I'm not particularly conversant on the stroke fonts.  I think they
>>  generate regular OpenGL objects and can be moved and scaled by
>>  adjusting the transformation matrices.
> That's correct. They are also influenced, e.g., by a previous
> glLineWidth(...). I'm using the following defines:
>
> #define GLUT_FONT_HEIGHT  152.381
> #define GLUT_FONT_DESCENT  33.333
> #define GLUT_FONT_WIDTH  104.762
>
> I've cc'ed the developers' list on this reply as somebody there may
>>  have greater wisdom than I do.  Also, just in case you hadn't seen
>>  them on the "freeglut" page I would like to introduce you to them.
>
> Welcome :-)
>
> HTH,
> Florian
>
>> -----Original Message-----
>> From: Florian Meßner [mailto:flo.messner@hotmail.com]
>> Sent: Friday, July 02, 2010 9:18 AM
>> To: Fay, John F Dr CTR USAF AFMC AAC/XRS
>> Subject: Freeglut - StrokeStrings
>>
>> Hi John,
>> I've got a question - again.
>>
>> Well, I wanted to use  glutStrokeString, but I don't know what to use as
>> the second parameter:
>>
>> std::string s;
>> ...
>> glutStrokeString(GLUT_STROKE_MONO_ROMAN, s);
>> glutStrokeString(GLUT_STROKE_MONO_ROMAN, s.c_str());
>>
>> both tries didn't work...
>>
>> And I wanted to know, how to change the size of such strokestrings.
>>
>> Thanks again :-)
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> Freeglut-developer mailing list
>> Freeglut-developer@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freeglut-developer
>
> --
> 0666 - Filemode of the Beast
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first


_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer