Examples of wglUseFontOutlines

Examples of wglUseFontOutlines

Post by Geoff Hard » Fri, 20 Jun 1997 04:00:00



Hi there,

I am trying to get wglUseFontOutlines working but with no luck. I don't
suppose some of you nice OpenGL people could mail me some code examples
of how to use it.

Also: what is the difference between wlgUseFontoutlines,
wlgUseFontoutlinesA and wlgUseFontoutlinesB? I could find any
documentation on this.

Thanks in advance,

Geoff Hardy

 
 
 

Examples of wglUseFontOutlines

Post by Mike Chapm » Wed, 25 Jun 1997 04:00:00




Quote:> Hi there,

> I am trying to get wglUseFontOutlines working but with no luck. I don't
> suppose some of you nice OpenGL people could mail me some code examples
> of how to use it.

> Also: what is the difference between wlgUseFontoutlines,
> wlgUseFontoutlinesA and wlgUseFontoutlinesB? I could find any
> documentation on this.

The documentation is indeed on MS's web server, at least the last I checked.
Anyway, do something like this:

                hfont = CreateFont(50, 0, 0, 0, 0,
                0, 0, 0, 0, 0, 0, 0, 0, "MS Outline");
                SelectObject(hDC, hfont);
                wglUseFontOutlines(hDC, 'h', 1, 1000, 0.5f, 0.1f,
                                WGL_FONT_POLYGONS, &agmf[0]);
                wglUseFontOutlines(hDC, 'e', 1, 1001, 0.5f, 0.1f,
                                WGL_FONT_POLYGONS, &agmf[1]);
                wglUseFontOutlines(hDC, 'l', 1, 1002, 0.5f, 0.1f,
                                WGL_FONT_POLYGONS, &agmf[2]);
                wglUseFontOutlines(hDC, 'l', 1, 1003, 0.5f, 0.1f,
                                WGL_FONT_POLYGONS, &agmf[3]);
                wglUseFontOutlines(hDC, 'o', 1, 1004, 0.5f, 0.1f,
                                WGL_FONT_POLYGONS, &agmf[4]);

Then "h e l l o" is in display lists 1000 - 1004.  You can also
put whole blocks of letters in display lists with a single call -
read the docs.  They automatically space when you call them in
sequence.  Read the docs on MS...

 
 
 

1. wglUseFontOutLines on WindowsXP

Could please someone tell me how can I get around this problem?

. The fowling 'Delphi' code works well on a system with W2000 but with the
WindowsXP, the 'wglUseFontOutLines' results False! Why?
(the opengl32.dll vertion that im working with on the XP is from
2002.11.24)



  hrc := wglCreateContext(DC);
  wglMakeCurrent(DC, hrc);


Regards
Eduardo Monteiro
Portugal

2. MUtopia needs artist

3. Q: Font metrics returned by wglUseFontOutlines

4. DX8 in VB

5. wglUseFontOutlines & VB.NET

6. FREE PAGERS! LOOK HERE! NO STRINGS!

7. wglUseFontOutlines normals

8. glutEnterGameMode() problem

9. Win32 wglUseFontOutlines problem

10. wglUseFontOutlines Question

11. wglUseFontOutlines and color

12. wglUseFontOutlines Trouble

13. openGl - wglUseFontOutlines