361{
371
373
378 &ftface);
379 if (fterror)
380 {
381 DbgPrint(
"FT_New_Memory_Face() failed.\n");
383 }
384
385
387
388
390 if (!pcp)
391 {
392 DbgPrint(
"EngAllocMem() failed.\n");
394 }
395
396
398 charcode = pcp[0].
code;
399 for (
i = 1, cRuns = 1; charcode &&
i <
cGlyphs;
i++)
400 {
402 DbgPrint(
"charcode=0x%lx, index=0x%lx\n", charcode, pcp[
i].
index);
403 pcp[
i].
code = charcode;
404 if (charcode != pcp[
i - 1].
code + 1)
405 {
406 cRuns++;
407 }
408 }
409
410
412
413
415 + (cRuns - 1) *
sizeof(
WCRUN)
417
418
420 if (!pGlyphSet)
421 {
422 DbgPrint(
"EngAllocMem() failed.\n");
425 }
426
427
431 pGlyphSet->
cRuns = cRuns;
432
433
434 pwcrun = pGlyphSet->awcrun;
435 phglyphs = (
PHGLYPH)&pGlyphSet->awcrun[cRuns];
436 pwcrun[0].wcLow = pcp[0].code;
437 pwcrun[0].cGlyphs = 1;
438 pwcrun[0].phg = &phglyphs[0];
439 phglyphs[0] = pcp[0].index;
440
442
443
445 {
446
448
449
451 {
452
454 }
455 else
456 {
457
462 pwcrun[
j].
phg = &phglyphs[
i];
463 }
464 }
465
466
468
469
471
472DbgPrint(
"pGlyphSet=%p\n", pGlyphSet);
474
475 return pGlyphSet;
476}
FT_Get_First_Char(FT_Face face, FT_UInt *agindex)
FT_Get_Next_Char(FT_Face face, FT_ULong char_code, FT_UInt *agindex)
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
struct _FD_GLYPHSET FD_GLYPHSET
_In_ FONTOBJ _In_ ULONG _In_ ULONG cGlyphs