IPrintOemDriverUni::DrvUniTextOut method is provided by the Unidrv driver so that a rendering plug-in using a device-managed drawing surface can easily output text strings.
HRESULT DrvUniTextOut( SURFOBJ *pso, STROBJ *pstro, FONTOBJ *pfo, CLIPOBJ *pco, RECTL *prclExtra, RECTL *prclOpaque, BRUSHOBJ *pboFore, BRUSHOBJ *pboOpaque, POINTL *pptlBrushOrg, MIX mix );
Pointer to a SURFOBJ structure that describes the surface on which to write.
Pointer to a STROBJ structure that defines the glyphs to be rendered and the positions in which to place them.
Pointer to a FONTOBJ structure from which to retrieve information about the font and its glyphs.
Pointer to a CLIPOBJ structure that defines the clip region through which all rendering must be done. The driver cannot affect any pixels outside the clip region.
Pointer to a RECTL structure. GDI always sets this parameter to NULL in calls to this function. It should be ignored by the driver.
Pointer to a RECTL structure that represents a single opaque rectangle. This rectangle is bottom-right exclusive. Pixels within this rectangle (those that are not foreground and not clipped) are to be rendered with the opaque brush. This rectangle always bounds the text to be drawn. If this parameter is NULL, no opaque pixels are to be rendered.
Pointer to a BRUSHOBJ structure that represents the brush object to be used for the foreground pixels. This brush will always be a solid color brush.
Pointer to a BRUSHOBJ structure that represents the opaque pixels. Both the foreground and background mix modes for this brush are assumed to be R2_COPYPEN. Unless the driver sets the GCAPS_ARBRUSHOPAQUE capabilities bit in the flGraphicsCaps member of the DEVINFO structure, it will always be called with a solid color brush.
Pointer to a POINTL structure that defines the brush origin for both brushes.
The foreground and background raster operations (mix modes) for pboFore.
The method must return one of the following values.
||The operation succeeded.|
||The operation failed.|
||The method is not implemented.|
IPrintOemDriverUni::DrvUniTextOut method is provided by Unidrv for use by rendering plug-ins that support a device-managed drawing surface. Such rendering plug-ins must hook out Unidrv's DrvTextOut function, and the
IPrintOemDriverUni::DrvUniTextOut method is meant to be called from that hooking function. The hooking function must perform text region clipping and text rotation operations. It can then call
IPrintOemDriverUni::DrvUniTextOut to request Unidrv to create the text string using downloadable fonts (and to perform glyph-based clipping).
IPrintOemDriverUni::DrvUniTextOut cannot create the text string, either because the font is not available or is rotated, it calls the rendering plug-in's IPrintOemUni::TextOutAsBitmap method, which draws the text string as a bitmap.
For more information, see Handling Device-Managed Surfaces.
|Header||prcomoem.h (include Prcomoem.h)|