How do I set the font embedding options programmatically?

This is a read only forum. It contains the most frequently asked questions about Amyuni products and licensing.
Post Reply
Dany
Amyuni Team
Posts: 113
Joined: Wed Sep 11 2002
Location: Montreal.
Contact:

How do I set the font embedding options programmatically?

Post by Dany » Fri Aug 05 2005

1 - You can call SetFileNameOptions( EmbedStandardFonts
+ EmbedLicensedFonts + ... ) and not reset the value back to 0

2 - You can use the DEVMODE structure as documented in Technical note 2 – TN02, http://www.amyuni.com/en/support/technotes.html . If you can work with DEVMODE structures from within your application, this technical note, has a paragraph about various flags that you can set such as; Compression, Font embedding, Jpeg and 256 colors. You can use the following flags for font embedding options:
Bit 5 Broadcast messages
Bit 6 Multilanguage support
Bit 7 Full embedding
Bit 8 Standard embedding
Bit 9 Licensed embedding

3 - You can use a new property that we have added to CDINTF, which is
"DevmodeFlags" which you can use to set the same flags as in method 2, above. For
example, you can have a script that sets up the printer by calling:
Dim cdi As new CDIntf.CDIntf
cdi.DriverInit PrinterName
cdi.DevmodeFlags = &H20 + &H100 ' Multilanguage + Licensed
cdi.SetDefaultConfig
Set cdi = Nothing

Post Reply