Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Font smoothing for DrawText calls(Win32)

Posted on 1997-03-29
2
Medium Priority
?
682 Views
Last Modified: 2013-12-03
If you use DrawText with font smoothing on, and then call DrawText in the background color to "erase" the previous character, the antialiasing pixels remain.  Is there any way (short of turning off font smoothing for the whole app) to erase the characters in this manner cleanly by disabling font smoothing for single DrawText calls?  (Using SystemParametersInfo to turn off font smoothing is ineffective once the app has started.)  Thank you in advance!
0
Comment
Question by:ThomasSeheeHong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
r parkinson earned 400 total points
ID: 1334296
You could 'bypass' font smoothing by setting the lfEscapement value to a non 0 value, say 1, as font smoothing only works with certain escapement values.  A value of 1 (1/10th of a degree) will not be visible in you app.  You may also have to use TextOut rather than DrawText to make this work.
0
 

Author Comment

by:ThomasSeheeHong
ID: 1334297
Easiest solution I've come across so far.  Thanks!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question