| 
     
      
      
      From: Ben H. <be...@ex...> - 2003-04-08 15:38:49
      
     
   | 
I am sharing this information in the hopes that it can be included in a future version of CsGL. Here are the two files that make up my version of the GLOutlineFont http://www.exocortex.org/csgl/GLOutlineFont.cs http://www.exocortex.org/csgl/Win32Native.cs I make use of the GLOutlineFont class in the following way: (1) Inside InitGLContext I do the following: _glFont = new GLOutlineFont( this.Context, new Font( "Arial", 15 ) ); _glFont.Init( Win32Native.GetDC( this.Handle ) ); (2) Then to use this class to write a font to the screen I do the following inside the Paint() function: _glFont.DrawString( "my String" ); Hope that helps. -ben houston http://www.exocortex.org/ben  |