UniDriver Printer Driver with Plugins, adding device(custom) fonts at
run-time via OEMQueryFont
Basically, I need to be able to add "device fonts" at run-time WITHOUT
having to specify the fonts in the GPD file.
I can install device fonts at run-time, but am limited by the "DeviceFont"
entry in the GPD file which is fixed upon
printer driver installation.
More details follow:
I need to be able to add "fonts" via OEMQueryFont(-) at run-time (via
"Printer Properties"); the fonts are constructed at "run-time" by user
input. I cannot (do not want to) list all possible variations of the fonts
in the GPD file or likewise specify "font files" for all of these
variations. (Please note that the "monolithic" version of the printer
driver functioned correctly.)
The test to see whether a "device font" is installed is to go to MS Word and
see the device font entry in the "Font" drop-down list.
As for adding device fonts, apparently, OEMQueryFont(-) is called ONLY when
there is an entry in the GPD file for device fonts (i.e. " *DeviceFonts:
LIST(1,2) "). Furthermore, the function is called once for each entry in
the list (i.e. in this case, once for "1", then for "2"). If only 2 device
fonts are "created" at run-time, then everything works OK. However, if more
than 2 device fonts are "created" at run-time, then NO device fonts appear
to be installed (i.e. not seen in MS Word "Font" drop-down list.
Any ideas?
Thanks,
Rudy