19 j = pjBits[(
x/8) * ulHeight +
y];
20 return (
j >> (~
x & 0x7)) & 1;
67 pfo->pvProducer = pfont;
84 ULONG xSrc, ySrc, cxSrc, cySrc;
85 ULONG xDst, yDst, cxDst, cyDst;
116 cxDst = cySrc * xScale;
117 cyDst = cxSrc * yScale;
121 cxDst = cxSrc * xScale;
122 cyDst = cySrc * yScale;
124 cjDstRow = (cxDst + 7) / 8;
131 pgd->fxD = xScale * (pface->
wA + cxDst + pface->
wC) << 4;
132 pgd->fxA = xScale * pface->
wA << 4;
133 pgd->fxAB = xScale * (pface->
wA + cxDst) << 4;
135 pgd->fxInkBottom = - yScale * (pface->
wDescent << 4);
138 pgd->rclInk.left = xScale * pface->
wA;
139 pgd->rclInk.right =
pgd->rclInk.left + cxDst;
140 pgd->ptqD.x.LowPart = 0;
141 pgd->ptqD.x.HighPart =
pgd->fxD;
142 pgd->ptqD.y.LowPart = 0;
143 pgd->ptqD.y.HighPart = 0;
151 DbgPrint(
"Buffer too small (%ld), %ld,%ld\n",
163 memset(pvDst0, 0, cyDst * cjDstRow);
169 for (yDst = 0; yDst < cyDst ; yDst++)
171 xSrc = yDst / yScale;
172 for (xDst = 0; xDst < cxDst; xDst++)
174 ySrc = (cxDst - xDst) / xScale;
182 for (yDst = 0; yDst < cyDst ; yDst++)
184 ySrc = (cyDst - yDst) / yScale;
185 for (xDst = 0; xDst < cxDst; xDst++)
187 xSrc = (cxDst - xDst) / xScale;
195 for (yDst = 0; yDst < cyDst ; yDst++)
197 xSrc = (cyDst - yDst) / yScale;
198 for (xDst = 0; xDst < cxDst; xDst++)
200 ySrc = xDst / xScale;
209 for (yDst = 0; yDst < cyDst ; yDst++)
211 ySrc = yDst / yScale;
212 for (xDst = 0; xDst < cxDst; xDst++)
214 xSrc = xDst / xScale;
232 ULONG cjMaxWidth, cjMaxBitmapSize;
234 ULONG xScale, yScale;
285 cjMaxWidth = ((pfddm->
cxMax + 7) >> 3);
288 cjMaxBitmapSize = ((cjMaxWidth * pfddm->
cyMax) + 3) & ~3;
309 DbgPrint(
"BmfdQueryGlyphAttrs()\n");
329 DbgPrint(
"BmfdQueryFontData(pfo=%p, iMode=%ld, hg=%p, pgd=%p, pv=%p, cjSize=%ld)\n",
#define _ReadPixel(bpp, pj, jShift)
#define _WritePixel(pj, jShift, c)
PBMFD_FONT BmfdGetFontInstance(FONTOBJ *pfo, PBMFD_FACE pface)
PFD_GLYPHATTR APIENTRY BmfdQueryGlyphAttrs(FONTOBJ *pfo, ULONG iMode)
ULONG BmfdQueryGlyphAndBitmap(PBMFD_FONT pfont, HGLYPH hg, GLYPHDATA *pgd, GLYPHBITS *pgb, ULONG cjSize)
ULONG BmfdQueryMaxExtents(PBMFD_FONT pfont, PFD_DEVICEMETRICS pfddm, ULONG cjSize)
LONG APIENTRY BmfdQueryFontData(DHPDEV dhpdev, FONTOBJ *pfo, ULONG iMode, HGLYPH hg, OUT GLYPHDATA *pgd, PVOID pv, ULONG cjSize)
union GLYPHENTRY * PGLYPHENTRY
struct BMFD_FILE * PBMFD_FILE
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
void * EngAllocMem(int zero, unsigned long size, int tag=0)
#define FIELD_OFFSET(t, f)
_In_ FONTOBJ _In_ ULONG _In_ HGLYPH _In_opt_ GLYPHDATA * pgd
typedef DHPDEV(APIENTRY FN_DrvEnablePDEV)(_In_ DEVMODEW *pdm
#define FLOATOBJ_GetLong(pf)
ENGAPI XFORMOBJ *APIENTRY FONTOBJ_pxoGetXform(_In_ FONTOBJ *pfo)
_In_ XLATEOBJ _In_ XFORMOBJ * pxo
struct _FD_DEVICEMETRICS FD_DEVICEMETRICS
_In_ FONTOBJ _In_ ULONG _In_ HGLYPH hg
#define QFD_GLYPHANDBITMAP