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. The Lounge
  3. TextExtent

TextExtent

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
2 Posts 2 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.
  • M Offline
    M Offline
    Manikandan
    wrote on last edited by
    #1

    I try to measure the dimension for a text say "Hello". I set mapping mode to MM_LOENGLISH. CFont font; font.CreatePointFont(360,"Verdana"); pDC->SelectObject(&font); CSize sz = pDC->GetTextExtent("Hello"); the width sz.cx (1.19 inch) seems ok in real printing. But sz.cy (0.57inch) is greater than the actual (0.344inch) in printout. Can anyone tell me how to calculate the real height???

    L 1 Reply Last reply
    0
    • M Manikandan

      I try to measure the dimension for a text say "Hello". I set mapping mode to MM_LOENGLISH. CFont font; font.CreatePointFont(360,"Verdana"); pDC->SelectObject(&font); CSize sz = pDC->GetTextExtent("Hello"); the width sz.cx (1.19 inch) seems ok in real printing. But sz.cy (0.57inch) is greater than the actual (0.344inch) in printout. Can anyone tell me how to calculate the real height???

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Dude, wrong forum. Try Here. There's something wrong with my account.

      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