|
|
#include "nfbWinStr.h" #include "nfbGlyph.h"xxx is the routine's prefix. Valid values are gen to use the default routine or your driver's prefix if you are rewriting this routine to use the specific capabilities of your hardware.void xxxDrawMonoGlyphs ( nfbGlyphInfo *glyph_info, unsigned int nglyphs, unsigned long fg, unsigned char alu, unsigned long planemask, nfbFontPSPtr pPS, DrawablePtr pDrawable );
alu
and planemask
to all writes.
The glyph image is color-expanded
so that all 1 bits in the source
are drawn with the foreground color specified by fg
.
glyph_info
nglyphs
fg
alu
and planemask
values are applied.
alu
image
with the contents of the frame buffer.
See
``alu'' in Developing NFB graphics adapter drivers.
planemask
planemask
that specifies modification of all planes.
pPS
pDrawable
pDrawable->pScreen
.
Your screen private is connected to the bottom of ScreenRec.
pPS
,
and the other is a unique glyph ID within that font,
glyph_info->glyph_id
.
This information can be used to cache glyphs
in extra video memory.
The routine pointed to by the ClearFont
member of the
nfbScrnPriv(D4nfb)
structure is called when a font is unrealized (freed)
from the server.
If the display driver is caching glyphys in the adapter's memory,
the glyphys that belong to the private count identified
by the fontID
member of the nfbScrnPriv structure
can be cleared from the cache.
unsigned long fontid
as the 6th argument instead of nfbFontPSPtr pPS
.
void (* DrawMonoGlyphs) ( struct _nfbGlyphInfo *, unsigned int, unsigned long, unsigned char, unsigned long, unsigned long, struct _Drawable * ) ;