• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

How can I use cleartype fonts in my own application?

Is it possible to use cleartype fonts in my own application, and does it work with any font?

Thanks
0
m02759
Asked:
m02759
  • 2
1 Solution
 
FordraidersCommented:
0
 
m02759Author Commented:
No.

I'm using eVC++ 3.0 for PPC 2002

m
0
 
AKRoverCommented:
LOGFONT          fontData;
fontData.XXX = ...;
fontData.XXX = ...;
fontData.XXX = ...;
fontData.lfQuality = 6 /*CLEARTYPE_COMPAT_QUALITY*/;
yourClearTypeFont = CreateFontIndirect(&fontData);

they forgot to define the constant CLEARTYPE_COMPAT_QUALITY so just use 6 (u can use 5 too i dont remeber the difference)
0
 
m02759Author Commented:
I actually have found the solution since I posted the question long time ago, and it is exactly what you mentioned. Thanks!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now