Solved

Font Smoothing in DirectDraw/GDI (16-bit)

Posted on 1999-01-25
1
953 Views
Last Modified: 2013-12-03
I am developing a multi-media application during my spare time. I write text to the screen using the windows GDI function TextOut. I would like this function to take advantage of systems with the Windows Font Smoothing enabled to nicely anti-alias the fonts.

I know this is possible, since the DX5.0 sdk's Direct3D sample called Tunnel (which for some reason has no source code) writes FPS info on the bottom of the screen using anti-aliased 24-point Arial (when font-smoothing is turned on)

I cannot figure out how to make this work in my own application..perhaps somebody could volunteer some source code?

0
Comment
Question by:wraffe
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1185131
What parameter are you passing for the quality parameter in the CreateFont function()? Have you tried using PROOF_QUALITY vs DRAFT_QUALITY?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now