Set the postscript dirver option TTDownloadFormat ("TrueType Font Download Option")

Set the postscript dirver option TTDownloadFormat ("TrueType Font Download Option")

Post by arnt witte » Thu, 14 Oct 2004 19:09:19


Hi,

I'm trying to write a program that creates a printer, with a driver
based on the MS PS driver and a ppd (under windows 2000 and XP). If I do
this, the printer has an advanced option "TrueType Font Download Option"
(in XP under the printers 'printing preferences', then
'Layout/advanced/Document options/PS options/TrueType Font Download
Option').

I'd like to set this option to 'Native TrueType' when creating the
printer (or right after it).

I have found no way to do this short of looking at which bits in the
devmode's driver specific portion change and redo that change using
GetPrinter/SetPrinter (I understand from what I read however that
fiddling with the driver specific portion of devmode like that is a very
bad idea).

There seems to be a way to set this through IPrintCoreUI2::SetOptions,
at least that's the only 'SetOptions' I can find that this article could
be talking about:
http://www.yqcomputer.com/

However, from what I understand, this call is designed to be called from
a printer property sheet, and structures made available by the system
that calls the property sheet (first parameter: "poemuiobj Points to the
current context, an OEMUIOBJ structure.")

Does anyone know a way to set this option?

Thanks!
Arnt Witteveen
 
 
 

Set the postscript dirver option TTDownloadFormat ("TrueType Font Download Option")

Post by MSF » Fri, 15 Oct 2004 02:47:42

I hope this helps. This one's over my head.

From: Ashwin

Sent: Wednesday, October 13, 2004 10:34 AM

To: Alan Morris

Subject: RE: Set the postscript dirver option TTDownloadFormat ("TrueType
Font Download Option")

Sure. It sounds from the posting that the customer doesn't own the driver
itself. So he/she is right about IPrintCoreUI2::SetOptions being a feasible
option only if they own the driver. In any case, they shouldn't have to go
that route. The True Type font download option is not part of the private
part of the devmode. It can be set using the dmTTOption member of the
devmode. So just a regular SetPrinter setting dmTTOption to DMTT_DOWNLOAD
should work.

- Ashwin
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://www.yqcomputer.com/ ;[ln];kbhowto


This posting is provided "AS IS" with no warranties, and confers no rights.

"arnt witteveen" < XXXX@XXXXX.COM > wrote in

http://www.yqcomputer.com/

 
 
 

Set the postscript dirver option TTDownloadFormat ("TrueType Font Download Option")

Post by arnt witte » Fri, 15 Oct 2004 19:23:56

Actually, the dmTTOption sets a slightly different option. That sets
'Layout/advanced/graphic/TrueType Font' (which has options 'Download as
Softfont' or 'Substitute with device font').

The option I'm looking to set is under 'Layout/advanced/Document
options/PS options/TrueType Font Download Option' (which has options
'Automatic', 'Outline', 'Bitmap' and 'Native Truetype'), but only for
printers that use the microsoft PostScript Printer Driver (Pscript,
documented at
http://www.yqcomputer.com/ ).

It is specific to Microsofts PostScript Printer Driver (I think), and is
described as "Driver features are non-PPD features that are synthesized
by the driver" here:
http://www.yqcomputer.com/


Thanks for any help you can give me!
Arnt