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. Font size problem ???

Font size problem ???

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

    Hello I have some problem about font size. I create font like this int m_Size=18; // point size convert to logical size int LogicalInch=pDC->GetDeviceCaps(LOGPIXELSY); int DeviceUnits=::MulDiv(m_Size,LogicalInch,72); m_font.CreateFont(DeviceUnits,0,0,0, m_bold,m_italic,m_underline,m_strike, DEFAULT_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE, "Cordia New"); pDC->SelectObject(&m_font); pDC->TextOut(10,10,"Hello world"); When display text I've found that it doesn't show correct size ( smaller than ) compare with Netscape. What's wrong ????? 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