Set the postscript dirver option TTDownloadFormat ("TrueTy..

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.print_fax,microsoft.public.win2000.printing,microsoft.public.windowsnt.print (More info?)

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://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
current context, an OEMUIOBJ structure.")

Does anyone know a way to set this option?

Thanks!
Arnt Witteveen
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.print_fax,microsoft.public.win2000.printing,microsoft.public.windowsnt.print (More info?)

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:
;kbhowto]http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto


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

"arnt witteveen" <arntw.remove.this.and.no.spam.too@enfocus.be> wrote in
message news:#kYc1yQsEHA.3468@TK2MSFTNGP15.phx.gbl...
> 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://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
> current context, an OEMUIOBJ structure.")
>
> Does anyone know a way to set this option?
>
> Thanks!
> Arnt Witteveen
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.print_fax,microsoft.public.win2000.printing,microsoft.public.windowsnt.print (More info?)

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://msdn.microsoft.com/library/default.asp?url=/library/en-us/graphics/hh/graphics/pscript_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/default.asp?url=/library/en-us/graphics/hh/graphics/pscript_a64f2cd3-6775-4121-98b1-7470c302574f.xml.asp


Thanks for any help you can give me!
Arnt


Alan Morris(MSFT) wrote:
> I hope this helps. This one's over my head.
>
> From: Ashwin
>
> 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