/**************************************************************************** * PSDRV_WriteDownloadGlyphShow * * Download and write out a number of glyphs * */ BOOL PSDRV_WriteDownloadGlyphShow(PHYSDEV dev, WORD *glyphs, UINT count) { PSDRV_PDEVICE *physDev = get_psdrv_dev( dev ); UINT i; char g_name[MAX_G_NAME + 1]; assert(physDev->font.fontloc == Download); switch(physDev->font.fontinfo.Download->type) { case Type42: for(i = 0; i < count; i++) { get_glyph_name(dev->hdc, glyphs[i], g_name); T42_download_glyph(dev, physDev->font.fontinfo.Download, glyphs[i], g_name); PSDRV_WriteGlyphShow(dev, g_name); } break; case Type1: for(i = 0; i < count; i++) { get_glyph_name(dev->hdc, glyphs[i], g_name); T1_download_glyph(dev, physDev->font.fontinfo.Download, glyphs[i], g_name); PSDRV_WriteGlyphShow(dev, g_name); } break; default: ERR("Type = %d\n", physDev->font.fontinfo.Download->type); assert(0); } return TRUE; }
BOOL PSDRV_WriteBuiltinGlyphShow(PSDRV_PDEVICE *physDev, LPCWSTR str, INT count) { int i; LPCSTR name; for (i = 0; i < count; ++i) { name = PSDRV_UVMetrics(str[i], physDev->font.fontinfo.Builtin.afm)->N->sz; PSDRV_WriteGlyphShow(physDev, name); } return TRUE; }