Re: DrvQueryFont by Ashwin
Ashwin
Tue Mar 02 21:43:00 CST 2004
It depends on what Unidrv finds with regard to device fonts. During the
EnablePDEV phase, Unidrv attempts to find all device fonts based on their
accompanying PFM files and comes up with the number of device fonts and
passes this info to GDI. Now, if no other device font other than the ones
enumerated in this stage are required by GDI, DrvQueryFont will not be
called. But in other cases, it will be called.
--
- Ashwin
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
"alvin" <anonymous@discussions.microsoft.com> wrote in message
news:8097AAD0-965F-45DB-995E-46E273BC620D@microsoft.com...
> > However, based in the DDK, cFonts defines the number of device fonts
> >>supported by the device, and cFonts is 0, will GDI still call
DrvQueryFont?
>
> Sorry my mistake.
> What I mean is, based from the DDK, cFonts specifies the number of
supported device fonts of the device.
> And if the driver sets cFonts to -1, GDI will wait until fonts are needed
to query the driver for the actual number of fonts it supports in a call to
DrvQueryFont.
>
> What if, cFonts is 0, will GDI still call DrvQueryFont?
>
> TIA,
> alvin
>