Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CreateFont & underline

CreateFont & underline

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pepe 0
    wrote on last edited by
    #1

    Hello, Is there a way to specify the position of the underline of a font ? thanx

    T 1 Reply Last reply
    0
    • P pepe 0

      Hello, Is there a way to specify the position of the underline of a font ? thanx

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Set lfUnderline to TRUE in LOGFONT. Tomasz Sowinski -- http://www.shooltz.com

      What is "scratch" and why can everything be made from it?

      P 1 Reply Last reply
      0
      • T Tomasz Sowinski

        Set lfUnderline to TRUE in LOGFONT. Tomasz Sowinski -- http://www.shooltz.com

        What is "scratch" and why can everything be made from it?

        P Offline
        P Offline
        pepe 0
        wrote on last edited by
        #3

        I know how to set the underline attribute, but i want to set the position (relative to the baseline) of the line. If possible ! Thanks anyway.

        T 1 Reply Last reply
        0
        • P pepe 0

          I know how to set the underline attribute, but i want to set the position (relative to the baseline) of the line. If possible ! Thanks anyway.

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          Sorry - I've misunderstood your question. You don't have any control over position of underline drawn by GDI. You'd have to create non-underline font and draw line yourself at position of your choice. Tomasz Sowinski -- http://www.shooltz.com

          Never argue with an idiot, he'll bring you to his level and beat you with experience.

          P 1 Reply Last reply
          0
          • T Tomasz Sowinski

            Sorry - I've misunderstood your question. You don't have any control over position of underline drawn by GDI. You'd have to create non-underline font and draw line yourself at position of your choice. Tomasz Sowinski -- http://www.shooltz.com

            Never argue with an idiot, he'll bring you to his level and beat you with experience.

            P Offline
            P Offline
            pepe 0
            wrote on last edited by
            #5

            Thanks, I'll have to code :(( ps : your .scr is cool !

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups