Re: Qs on CLEARTYPE_QUALITY



"Louis Solomon [SteelBytes]" <SteelBytes@xxxxxxxxxxxxxxxxx> wrote in
message news:OeX9tzFKGHA.2808@xxxxxxxxxxxxxxxxxxxx
Hi,
here's some questions about CLEARTYPE_QUALITY ...

1. if CLEARTYPE_QUALITY is specifed on a non XP system (eg, 98SE),
what happens? does it fall back to DEFAULT_QUALITY? or
ANTIALIASED_QUALITY? or what?

According to the documentation, the CLEARTYPE_QUALITY flag has no effect on
earlier OS versions. This is Microsoft being kind to you. In general, you
have no business using a flag introduced in a particular OS version on any
earlier version of that OS since the earlier OS version cannot be expected
to "know about" that flag.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_0xgn.asp

The general solution for this sort of problem is to call GetVersionEx at
runtime to figure out what OS your program is running on, and then make
different calls (say, using CLEARTYPE_QUALITY or ANTIALIASED_QUALITY)
depending on whether it is, say, WinXP or Win98.

2. if CLEARTYPE_QUALITY is specifed on a XP system but the DC on
which I attempt to use it does not support ClearType (eg, is a
printer), what happens? does the select fail? does GDI create and use
a similar hfont?

Simple solution: just don't do it for printer DCs.

3. what is CLEARTYPE_NATURAL_QUALITY? (found in the win2003sp1
edtion of the platformsdk)

I don't know, but my guess would be that it is there in anticipation of a
feature to be introduced on Windows Vista.

--
John Carson



.



Relevant Pages

  • Re: Updating installed modules?
    ... Thanks - it did the trick. ... Is there a 'flag' I can use to accept all the ... although this cancels installation if it's waiting ... Could there be a general solution? ...
    (comp.lang.perl.modules)
  • Re: Drake: Distributed Rake
    ... you are proposing a flag which will make them different. ... a million ways to make a mistake with the dependency graph. ... will continue to operate on the principle of garbage-in, ... It seems to me the general solution is to not use -j until you've got ...
    (comp.lang.ruby)
  • Re: Is fork() hook ever possible?
    ... to set a flag that indicates a stir should be done at the next ... That was my original idea - to set the flag variable ... getpidspeedup looks like more general solution ... for all similar cases while the flag will be for arc4random() only. ...
    (freebsd-current)