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. Enabling ClearType setting in windows vista changes the font size

Enabling ClearType setting in windows vista changes the font size

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 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.
  • S Offline
    S Offline
    subramanyeswari
    wrote on last edited by
    #1

    Hello, I have develpoed an application on windows 2003sp1 which has to do with font. I have drawn text and set the font size as 36 and I have opend the same application in windos vita using cleartype enabled I could see the size of the font has reduced to 1 that is the font size has become 35.This is because in windows vista does font smoothing when cleartype is enabled due to which the font size reduces. Here is the code

    SystemParametersInfo(SPI\_GETFONTSMOOTHING, 0, &IsEnabled, 0);
    templfQuality = td->lf.lfQuality;
    if( IsEnabled && templfQuality != NONANTIALIASED\_QUALITY ) {
    	td->lf.lfQuality = NONANTIALIASED\_QUALITY; 
    }
    

    I am checking this way but its not working properly Regards

    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