repost: Set the postscript dirver option TTDownloadFormat ("TrueTypeFont Download Option")

A

arnt witteveen

Hi, I asked this question last week, got a reply but not quite what I
need, so I'm reposting this with clarifications.

----text from previous post---
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://msdn.microsoft.com/library/d..._9c9f919f-341e-45bb-ab32-a8e215cecb41.xml.asp

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?

---clarification---
Note that this is not the dmTTOption memeber of DEVMode, that sets
'Layout/advanced/graphic/TrueType Font' (which has options 'Download as
Softfont' or 'Substitute with device font'), while 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://msdn.microsoft.com/library/d..._ccdc3e30-0b44-4ada-b51a-8c0d0bfd5997.xml.asp).
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://msdn.microsoft.com/library/d..._a64f2cd3-6775-4121-98b1-7470c302574f.xml.asp

Thanks for any help anyone can give me.
Arnt
 
A

andreas

set this in the PPD Fonttype 42 to one
-----Original Message-----
Hi, I asked this question last week, got a reply but not quite what I
need, so I'm reposting this with clarifications.

----text from previous post---
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://msdn.microsoft.com/library/default.asp? url=/library/en-us/graphics/hh/graphics/pscript_9c9f919f-
341e-45bb-ab32-a8e215cecb41.xml.asp

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top