Hello.
Is there any way to make a printer driver only support a fixed-sized
font?
IE: tell GDI to arrange/send the DrvTextOut calls with this fixed font?
Essentially I’m trying to force an application to use a fixed-size
(width/height) font when it prints, but I’m not entirely sure if this is
possible or where to start digging for an answer…
Any suggestions would be appreciated…
Thanks,
sean
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
So do you want GDI to call DrvTextOut with the same fixed size font
irrespective of the font used by the printing app? What about defining a
single device font? The tty sample in the XP DDK has three device fonts
hardcoded in it. Maybe this is what you are looking for?
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@stg.com [mailto:xxxxx@stg.com]
Sent: Friday, February 22, 2002 3:44 AM
To: NT Developers Interest List
Subject: [ntdev] Printer Driver / Force Fixed Font
Hello.
Is there any way to make a printer driver only support a fixed-sized
font?
IE: tell GDI to arrange/send the DrvTextOut calls with this fixed font?
Essentially I’m trying to force an application to use a fixed-size
(width/height) font when it prints, but I’m not entirely sure if this is
possible or where to start digging for an answer…
Any suggestions would be appreciated…
Thanks,
sean
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
So if I define a single device font, GDI will call the driver and position
the glyphs according to the single device font that is installed?
I’m going to try to use this in a rendering plugin to force a fixed-sized
font for applications…
Thanks,
sean
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
I don’t know if this will force the device font to be output
irrespective of the font that the app uses. You should probably test the
tty sample first to see how things work.
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@stg.com [mailto:xxxxx@stg.com]
Sent: Thursday, February 21, 2002 5:00 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Printer Driver / Force Fixed Font
So if I define a single device font, GDI will call the driver and
position
the glyphs according to the single device font that is installed? I’m
going to try to use this in a rendering plugin to force a fixed-sized
font for applications…
Thanks,
sean
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Will do. Thanks for the help!
sean
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
At 12.43 22/02/2002, you wrote:
Hello.
Is there any way to make a printer driver only support a fixed-sized font?
IE: tell GDI to arrange/send the DrvTextOut calls with this fixed font?
Yep, it is. I had a hell of a time the last month because I had a default
printer with the Generic Text Only driver, and applications like StarWriter
(word processor of StarOffice) wouldn’t allow me to choose any other font
that “10 cpi Device Font” (fixed size, of course). Took me about a week to
discover it was a printer’s limitation ;-(
Essentially I’m trying to force an application to use a fixed-size
(width/height) font when it prints, but I’m not entirely sure if this is
possible or where to start digging for an answer…
Have the driver provide its own device fonts, and specify in the device
capabilities that it supports only those. Don’t ask me technical details, I
only know that it’s possible (and that you have to document it in the first
page of the manual, otherwise it will drive your users crazy trying to
figure out why they can’t select other fonts)