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. setting the font ?

setting the font ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 5 Posters 0 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.
  • J Offline
    J Offline
    JekYu
    wrote on last edited by
    #1

    Hi.. just a simple question How do i set the font when i want to display a text?? e.g. pDC->TextOut (0, 100, "HELLO WORLD"); how do i set the font of "hello world" to font-size 24 and Arial... Thanks to ALL....

    L N S 3 Replies Last reply
    0
    • J JekYu

      Hi.. just a simple question How do i set the font when i want to display a text?? e.g. pDC->TextOut (0, 100, "HELLO WORLD"); how do i set the font of "hello world" to font-size 24 and Arial... Thanks to ALL....

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      look up cdc - selectobject in the msdn help stuff :) --- "every year we invent better idiot proof systems and every year they invent better idiots ... and the linux zealots still aren't being sterilized"

      1 Reply Last reply
      0
      • J JekYu

        Hi.. just a simple question How do i set the font when i want to display a text?? e.g. pDC->TextOut (0, 100, "HELLO WORLD"); how do i set the font of "hello world" to font-size 24 and Arial... Thanks to ALL....

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        take a look at SelectObject Nish

        1 Reply Last reply
        0
        • J JekYu

          Hi.. just a simple question How do i set the font when i want to display a text?? e.g. pDC->TextOut (0, 100, "HELLO WORLD"); how do i set the font of "hello world" to font-size 24 and Arial... Thanks to ALL....

          S Offline
          S Offline
          Simon Walton
          wrote on last edited by
          #4

          Use DrawText() instead, also create and select a CFont beforehand using CFont::CreatePointFont. --- Simon decided that his 'ironlung' nickname sounded kinda stupid, so he decided to use his real name

          J 1 Reply Last reply
          0
          • S Simon Walton

            Use DrawText() instead, also create and select a CFont beforehand using CFont::CreatePointFont. --- Simon decided that his 'ironlung' nickname sounded kinda stupid, so he decided to use his real name

            J Offline
            J Offline
            JCY
            wrote on last edited by
            #5

            thanks........:)

            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