Results 1 to 3 of 3

Thread: Vertical (or generaly oriented) text in OpenGL/Win32

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    Prague, Czech Rep., Europe
    Posts
    7

    Vertical (or generaly oriented) text in OpenGL/Win32

    Does anybody know how to render (in 2D) verticaly (or generaly) oriented line of text in OpenGL running under Win32? I've already tested wglUseFontBitmaps() which creates a call lists of glyphs using current GDI font. Such font I've created before and selected to the GDI DC, with proper orientation settings. Although text was rendered with correct family, size, etc., its baseline remained horizontal, only particular characters were rotated.

    Thanks in advance.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Vertical (or generaly oriented) text in OpenGL/Win32

    Can't you use wglUseFontOutlines() instead, then you can transform it any way you want.

    Mikael

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Poland
    Posts
    196

    Re: Vertical (or generaly oriented) text in OpenGL/Win32

    Try with texture mapped fonts. Then you can rotate them as simple textures in OpenGL (glRotatef).

Similar Threads

  1. Replies: 2
    Last Post: 07-14-2017, 12:03 AM
  2. [Win32] 2D Text disappears at left
    By Dennis in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-30-2011, 10:18 AM
  3. Object Oriented OpenGL
    By alberto in forum OpenGL: Advanced Coding
    Replies: 15
    Last Post: 09-13-2007, 11:36 AM
  4. Vertical text in OpenGL/Win32
    By 1stChineseAstronaut in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 10-30-2003, 10:44 AM
  5. text output under win32 (NOT textured)
    By aphex in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-22-2001, 01:24 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