Hi,

I am trying to write a printer driver that saves the output data in
vector format in a file. When dealing with TrueType fonts the gdi calls
the DrvTextOut function but with bitmap glyphs. I want to get outlines
of the characters instead. I have set the following for the various
related paramters:

DrvDeviceCapabilities: DC_TRUETYPE - returns 0


DEVMODE: dmTTOption = DMTT_DOWNLOAD_OUTLINE
DEVINFO: flGraphicsCaps = GCAPS_ALTERNATEFILL |
GCAPS_HORIZSTRIKE |
GCAPS_VERTSTRIKE |
GCAPS_VECTORFONT |
GCAPS_FONT_RASTERIZER |
GCAPS_GEOMETRICWIDE |
GCAPS_HALFTONE |
GCAPS_OPAQUERECT
GCAPS_GRAY16;
GDIINFO: ulTechnology = DT_RASPRINTER;

Is there some specific setting that forces the GDI to always send font
outlines or is it just not possible in some cases?

Re: DrvTextOut Font Outlines by Tim

Tim
Fri Apr 22 23:15:43 CDT 2005

"nirav" <patelnirav@gmail.com> wrote:
>
>I am trying to write a printer driver that saves the output data in
>vector format in a file. When dealing with TrueType fonts the gdi calls
>the DrvTextOut function but with bitmap glyphs. I want to get outlines
>of the characters instead. I have set the following for the various
>related paramters:
>
>DrvDeviceCapabilities: DC_TRUETYPE - returns 0
>
>DEVMODE: dmTTOption = DMTT_DOWNLOAD_OUTLINE
>DEVINFO: flGraphicsCaps = GCAPS_ALTERNATEFILL |
> GCAPS_HORIZSTRIKE |
> GCAPS_VERTSTRIKE |
> GCAPS_VECTORFONT |
> GCAPS_FONT_RASTERIZER |
> GCAPS_GEOMETRICWIDE |
> GCAPS_HALFTONE |
> GCAPS_OPAQUERECT
> GCAPS_GRAY16;
>GDIINFO: ulTechnology = DT_RASPRINTER;

DT_RASPRINTER tells Windows that you are a raster device -- meaning that
you handle things in terms of scanlines and pixels. You probably want
DT_PLOTTER.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc

Re: DrvTextOut Font Outlines by nirav

nirav
Sat Apr 23 06:59:50 CDT 2005

But if I change it to DT_PLOTTER then the number of pens are limited. I
want to have the entire RGB range and that is why I changed it to
DT_RASPRINTER.