Fixed a few more headers dependency issues.
[wine] / dlls / wineps / psdrv.h
1 /*
2  *      PostScript driver definitions
3  *
4  *      Copyright 1998  Huw D M Davies
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_PSDRV_H
22 #define __WINE_PSDRV_H
23
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "wine/wingdi16.h"
30 #include "winspool.h"
31
32 typedef struct {
33     INT             index;
34     LPCSTR          sz;
35 } GLYPHNAME;
36
37 typedef struct {
38     LONG            UV;
39     const GLYPHNAME *name;
40 } UNICODEGLYPH;
41
42 typedef struct {
43     float       llx, lly, urx, ury;
44 } AFMBBOX;
45
46 typedef struct _tagAFMLIGS {
47     char                *successor;
48     char                *ligature;
49     struct _tagAFMLIGS  *next;
50 } AFMLIGS;
51
52 typedef struct {
53     int                 C;              /* character */
54     LONG                UV;
55     float               WX;
56     const GLYPHNAME     *N;             /* name */
57     AFMBBOX             B;
58     const AFMLIGS       *L;             /* Ligatures */
59 } OLD_AFMMETRICS;
60
61 typedef struct {
62     INT                 C;                      /* AFM encoding (or -1) */
63     LONG                UV;                     /* Unicode value */
64     FLOAT               WX;                     /* Advance width */
65     const GLYPHNAME     *N;                     /* Glyph name */
66 } AFMMETRICS;
67
68 typedef struct {
69     USHORT              usUnitsPerEm;           /* head:unitsPerEm */
70     SHORT               sAscender;              /* hhea:Ascender */
71     SHORT               sDescender;             /* hhea:Descender */
72     SHORT               sLineGap;               /* hhea:LineGap */
73     SHORT               sAvgCharWidth;          /* OS/2:xAvgCharWidth */
74     SHORT               sTypoAscender;          /* OS/2:sTypoAscender */
75     SHORT               sTypoDescender;         /* OS/2:sTypoDescender */
76     SHORT               sTypoLineGap;           /* OS/2:sTypeLineGap */
77     USHORT              usWinAscent;            /* OS/2:usWinAscent */
78     USHORT              usWinDescent;           /* OS/2:usWinDescent */
79 } WINMETRICS;
80
81 typedef struct _tagAFM {
82     LPCSTR              FontName;
83     LPCSTR              FullName;
84     LPCSTR              FamilyName;
85     LPCSTR              EncodingScheme;
86     LONG                Weight;                 /* FW_NORMAL etc. */
87     float               ItalicAngle;
88     BOOL                IsFixedPitch;
89     float               UnderlinePosition;
90     float               UnderlineThickness;
91     AFMBBOX             FontBBox;
92     float               Ascender;
93     float               Descender;
94     WINMETRICS          WinMetrics;
95     int                 NumofMetrics;
96     const AFMMETRICS    *Metrics;
97 } AFM;
98
99 /* Note no 'next' in AFM. Use AFMLISTENTRY as a container. This allow more than
100    one list to exist without having to reallocate the entire AFM structure. We
101    keep a global list of all afms (PSDRV_AFMFontList) plus a list of available
102    fonts for each DC (dc->physDev->Fonts) */
103
104 typedef struct _tagAFMLISTENTRY {
105     const AFM                   *afm;
106     struct _tagAFMLISTENTRY     *next;
107 } AFMLISTENTRY;
108
109 typedef struct _tagFONTFAMILY {
110     char                        *FamilyName; /* family name */
111     AFMLISTENTRY                *afmlist;    /* list of afms for this family */
112     struct _tagFONTFAMILY       *next;       /* next family */
113 } FONTFAMILY;
114
115 extern FONTFAMILY   *PSDRV_AFMFontList;
116 extern const AFM    *const PSDRV_BuiltinAFMs[];     /* last element is NULL */
117
118 typedef struct _tagFONTNAME {
119     char                *Name;
120     struct _tagFONTNAME *next;
121 } FONTNAME;
122
123 typedef struct {
124     float       llx, lly, urx, ury;
125 } IMAGEABLEAREA;
126
127 typedef struct {
128     float       x, y;
129 } PAPERDIMENSION;
130
131 /* Solaris kludge */
132 #undef PAGESIZE
133 typedef struct _tagPAGESIZE {
134     char                *Name;
135     char                *FullName;
136     char                *InvocationString;
137     IMAGEABLEAREA       *ImageableArea;
138     PAPERDIMENSION      *PaperDimension;
139     WORD                WinPage; /*eg DMPAPER_A4. Doesn't really belong here */
140     struct _tagPAGESIZE *next;
141 } PAGESIZE;
142
143
144 typedef struct _tagOPTIONENTRY {
145     char                        *Name;          /* eg "True" */
146     char                        *FullName;      /* eg "Installed" */
147     char                        *InvocationString; /* Often NULL */
148     struct _tagOPTIONENTRY      *next;
149 } OPTIONENTRY;
150
151 typedef struct _tagOPTION { /* Treat bool as a special case of pickone */
152     char                        *OptionName;    /* eg "*Option1" */
153     char                        *FullName;      /* eg "Envelope Feeder" */
154     char                        *DefaultOption; /* eg "False" */
155     OPTIONENTRY                 *Options;
156     struct _tagOPTION           *next;
157 } OPTION;
158
159 typedef struct _tagCONSTRAINT {
160     char                        *Feature1;
161     char                        *Value1;
162     char                        *Feature2;
163     char                        *Value2;
164     struct _tagCONSTRAINT       *next;
165 } CONSTRAINT;
166
167 typedef struct _tagINPUTSLOT {
168     char                        *Name;
169     char                        *FullName;
170     char                        *InvocationString;
171     WORD                        WinBin; /* eg DMBIN_LOWER */
172     struct _tagINPUTSLOT        *next;
173 } INPUTSLOT;
174
175 typedef enum _RASTERIZEROPTION
176   {RO_None, RO_Accept68K, RO_Type42, RO_TrueImage} RASTERIZEROPTION;
177
178 typedef struct {
179     char                *NickName;
180     int                 LanguageLevel;
181     BOOL                ColorDevice;
182     int                 DefaultResolution;
183     signed int          LandscapeOrientation;
184     char                *JCLBegin;
185     char                *JCLToPSInterpreter;
186     char                *JCLEnd;
187     char                *DefaultFont;
188     FONTNAME            *InstalledFonts; /* ptr to a list of FontNames */
189     PAGESIZE            *PageSizes;
190     PAGESIZE            *DefaultPageSize;
191     OPTION              *InstalledOptions;
192     CONSTRAINT          *Constraints;
193     INPUTSLOT           *InputSlots;
194     RASTERIZEROPTION    TTRasterizer;
195 } PPD;
196
197 typedef struct {
198     DEVMODEA                    dmPublic;
199     struct _tagdocprivate {
200       int dummy;
201     }                           dmDocPrivate;
202     struct _tagdrvprivate {
203       UINT      numInstalledOptions; /* Options at end of struct */
204     }                           dmDrvPrivate;
205
206 /* Now comes:
207
208 numInstalledOptions of OPTIONs
209
210 */
211
212 } PSDRV_DEVMODEA;
213
214 typedef struct _tagPI {
215     char                    *FriendlyName;
216     PPD                     *ppd;
217     PSDRV_DEVMODEA          *Devmode;
218     FONTFAMILY              *Fonts;
219     PPRINTER_ENUM_VALUESA   FontSubTable;
220     DWORD                   FontSubTableSize;
221     struct _tagPI           *next;
222 } PRINTERINFO;
223
224 typedef struct {
225     float               r, g, b;
226 } PSRGB;
227
228 typedef struct {
229     float               i;
230 } PSGRAY;
231
232
233 /* def's for PSCOLOR.type */
234 #define PSCOLOR_GRAY    0
235 #define PSCOLOR_RGB     1
236
237 typedef struct {
238     int                 type;
239     union {
240         PSRGB  rgb;
241         PSGRAY gray;
242     }                   value;
243 } PSCOLOR;
244
245 typedef struct {
246     const AFM           *afm;
247     float               scale;
248     TEXTMETRICW         tm;
249 } BUILTIN;
250
251 typedef struct tagTYPE42 TYPE42;
252
253 typedef struct tagTYPE1 TYPE1;
254
255 enum downloadtype {
256   Type1, Type42
257 };
258
259 typedef struct _tagDOWNLOAD {
260   enum downloadtype type;
261   union {
262     TYPE1  *Type1;
263     TYPE42 *Type42;
264   } typeinfo;
265   char *ps_name;
266   struct _tagDOWNLOAD *next;
267 } DOWNLOAD;
268
269 enum fontloc {
270   Builtin, Download
271 };
272
273 typedef struct {
274     enum fontloc        fontloc;
275     union {
276         BUILTIN  Builtin;
277         DOWNLOAD *Download;
278     }                   fontinfo;
279
280     int                 size;
281     PSCOLOR             color;
282     BOOL                set;            /* Have we done a setfont yet */
283
284   /* These are needed by PSDRV_ExtTextOut */
285     int                 escapement;
286     int                 underlineThickness;
287     int                 underlinePosition;
288     int                 strikeoutThickness;
289     int                 strikeoutPosition;
290
291 } PSFONT;
292
293 typedef struct {
294     PSCOLOR             color;
295     BOOL                set;
296 } PSBRUSH;
297
298 typedef struct {
299     INT                 style;
300     INT         width;
301     char                *dash;
302     PSCOLOR             color;
303     BOOL                set;
304 } PSPEN;
305
306 typedef struct {
307     HANDLE16            hJob;
308     LPSTR               output;         /* Output file/port */
309     BOOL                banding;        /* Have we received a NEXTBAND */
310     BOOL                OutOfPage;      /* Page header not sent yet */
311     INT                 PageNo;
312     BOOL                quiet;          /* Don't actually output anything */
313 } JOB;
314
315 typedef struct {
316     HDC                 hdc;
317     struct tagDC       *dc;
318     PSFONT              font;           /* Current PS font */
319     DOWNLOAD            *downloaded_fonts;
320     PSPEN               pen;
321     PSBRUSH             brush;
322     PSCOLOR             bkColor;
323     PSCOLOR             inkColor;       /* Last colour set */
324     JOB                 job;
325     PSDRV_DEVMODEA      *Devmode;
326     PRINTERINFO         *pi;
327     SIZE                PageSize;      /* Physical page size in device units */
328     RECT                ImageableArea; /* Imageable area in device units */
329                                        /* NB both PageSize and ImageableArea
330                                           are not rotated in landscape mode,
331                                           so PageSize.cx is generally
332                                           < PageSize.cy */
333     int                 horzRes;       /* device caps */
334     int                 vertRes;
335     int                 horzSize;
336     int                 vertSize;
337     int                 logPixelsX;
338     int                 logPixelsY;
339
340     int                 pathdepth;
341 } PSDRV_PDEVICE;
342
343 typedef struct {
344     PRINTERINFO *pi;
345     PSDRV_DEVMODEA *dlgdm;
346 } PSDRV_DLGINFO;
347
348
349 /*
350  *  Every glyph name in the Adobe Glyph List and the 35 core PostScript fonts
351  */
352
353 extern const INT    PSDRV_AGLGlyphNamesSize;
354 extern GLYPHNAME    PSDRV_AGLGlyphNames[];
355
356
357 /*
358  *  The AGL encoding vector
359  */
360
361 extern const INT            PSDRV_AGLbyNameSize;    /* sorted by name -     */
362 extern const UNICODEGLYPH   PSDRV_AGLbyName[];      /*  duplicates omitted  */
363
364 extern const INT            PSDRV_AGLbyUVSize;      /* sorted by UV -       */
365 extern const UNICODEGLYPH   PSDRV_AGLbyUV[];        /*  duplicates included */
366
367
368 extern INT16 WINAPI PSDRV_ExtDeviceMode16(HWND16 hwnd, HANDLE16 hDriver,
369                     LPDEVMODEA lpdmOutput, LPSTR lpszDevice, LPSTR lpszPort,
370                     LPDEVMODEA lpdmInput, LPSTR lpszProfile, WORD fwMode);
371
372 extern HANDLE PSDRV_Heap;
373 extern char *PSDRV_ANSIVector[256];
374
375 extern void PSDRV_MergeDevmodes(PSDRV_DEVMODEA *dm1, PSDRV_DEVMODEA *dm2,
376                          PRINTERINFO *pi);
377 extern BOOL PSDRV_GetFontMetrics(void);
378 extern PPD *PSDRV_ParsePPD(char *fname);
379 extern PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name);
380 extern const AFM *PSDRV_FindAFMinList(FONTFAMILY *head, LPCSTR name);
381 extern BOOL PSDRV_AddAFMtoList(FONTFAMILY **head, const AFM *afm,
382         BOOL *p_added);
383 extern void PSDRV_FreeAFMList( FONTFAMILY *head );
384
385 extern BOOL WINAPI PSDRV_Init(HINSTANCE hinst, DWORD reason, LPVOID reserved);
386
387 extern BOOL PSDRV_Brush(PSDRV_PDEVICE *physDev, BOOL EO);
388 extern BOOL PSDRV_SetFont( PSDRV_PDEVICE *physDev );
389 extern BOOL PSDRV_SetPen( PSDRV_PDEVICE *physDev );
390
391 extern void PSDRV_SetClip(PSDRV_PDEVICE* phyDev);
392 extern void PSDRV_ResetClip(PSDRV_PDEVICE* phyDev);
393
394 extern BOOL PSDRV_CmpColor(PSCOLOR *col1, PSCOLOR *col2);
395 extern BOOL PSDRV_CopyColor(PSCOLOR *col1, PSCOLOR *col2);
396 extern void PSDRV_CreateColor( PSDRV_PDEVICE *physDev, PSCOLOR *pscolor,
397                      COLORREF wincolor );
398 extern char PSDRV_UnicodeToANSI(int u);
399
400 extern INT PSDRV_WriteHeader( PSDRV_PDEVICE *physDev, LPCSTR title );
401 extern INT PSDRV_WriteFooter( PSDRV_PDEVICE *physDev );
402 extern INT PSDRV_WriteNewPage( PSDRV_PDEVICE *physDev );
403 extern INT PSDRV_WriteEndPage( PSDRV_PDEVICE *physDev );
404 extern BOOL PSDRV_WriteMoveTo(PSDRV_PDEVICE *physDev, INT x, INT y);
405 extern BOOL PSDRV_WriteLineTo(PSDRV_PDEVICE *physDev, INT x, INT y);
406 extern BOOL PSDRV_WriteStroke(PSDRV_PDEVICE *physDev);
407 extern BOOL PSDRV_WriteRectangle(PSDRV_PDEVICE *physDev, INT x, INT y, INT width,
408                         INT height);
409 extern BOOL PSDRV_WriteRRectangle(PSDRV_PDEVICE *physDev, INT x, INT y, INT width,
410                         INT height);
411 extern BOOL PSDRV_WriteSetFont(PSDRV_PDEVICE *physDev, const char *name, INT size,
412                                INT escapement);
413 extern BOOL PSDRV_WriteGlyphShow(PSDRV_PDEVICE *physDev, LPCSTR g_name);
414 extern BOOL PSDRV_WriteSetPen(PSDRV_PDEVICE *physDev);
415 extern BOOL PSDRV_WriteArc(PSDRV_PDEVICE *physDev, INT x, INT y, INT w, INT h,
416                              double ang1, double ang2);
417 extern BOOL PSDRV_WriteSetColor(PSDRV_PDEVICE *physDev, PSCOLOR *color);
418 extern BOOL PSDRV_WriteSetBrush(PSDRV_PDEVICE *physDev);
419 extern BOOL PSDRV_WriteFill(PSDRV_PDEVICE *physDev);
420 extern BOOL PSDRV_WriteEOFill(PSDRV_PDEVICE *physDev);
421 extern BOOL PSDRV_WriteGSave(PSDRV_PDEVICE *physDev);
422 extern BOOL PSDRV_WriteGRestore(PSDRV_PDEVICE *physDev);
423 extern BOOL PSDRV_WriteNewPath(PSDRV_PDEVICE *physDev);
424 extern BOOL PSDRV_WriteClosePath(PSDRV_PDEVICE *physDev);
425 extern BOOL PSDRV_WriteInitClip(PSDRV_PDEVICE *physDev);
426 extern BOOL PSDRV_WriteClip(PSDRV_PDEVICE *physDev);
427 extern BOOL PSDRV_WriteRectClip(PSDRV_PDEVICE *physDev, INT x, INT y, INT w, INT h);
428 extern BOOL PSDRV_WriteRectClip2(PSDRV_PDEVICE *physDev, CHAR *pszArrayName);
429 extern BOOL PSDRV_WriteEOClip(PSDRV_PDEVICE *physDev);
430 extern BOOL PSDRV_WriteHatch(PSDRV_PDEVICE *physDev);
431 extern BOOL PSDRV_WriteRotate(PSDRV_PDEVICE *physDev, float ang);
432 extern BOOL PSDRV_WriteIndexColorSpaceBegin(PSDRV_PDEVICE *physDev, int size);
433 extern BOOL PSDRV_WriteIndexColorSpaceEnd(PSDRV_PDEVICE *physDev);
434 extern BOOL PSDRV_WriteRGB(PSDRV_PDEVICE *physDev, COLORREF *map, int number);
435 extern BOOL PSDRV_WriteImageDict(PSDRV_PDEVICE *physDev, WORD depth, INT xDst, INT yDst,
436                                  INT widthDst, INT heightDst, INT widthSrc,
437                                  INT heightSrc, char *bits, BOOL mask);
438 extern BOOL PSDRV_WriteBytes(PSDRV_PDEVICE *physDev, const BYTE *bytes, int number);
439 extern BOOL PSDRV_WriteDIBits16(PSDRV_PDEVICE *physDev, const WORD *words, int number);
440 extern BOOL PSDRV_WriteDIBits24(PSDRV_PDEVICE *physDev, const BYTE *bits, int number);
441 extern BOOL PSDRV_WriteDIBits32(PSDRV_PDEVICE *physDev, const BYTE *bits, int number);
442 extern int PSDRV_WriteSpool(PSDRV_PDEVICE *physDev, LPSTR lpData, WORD cch);
443 extern BOOL PSDRV_WritePatternDict(PSDRV_PDEVICE *physDev, BITMAP *bm, BYTE *bits);
444 extern BOOL PSDRV_WriteDIBPatternDict(PSDRV_PDEVICE *physDev, BITMAPINFO *bmi, UINT usage);
445 extern BOOL PSDRV_WriteArrayPut(PSDRV_PDEVICE *physDev, CHAR *pszArrayName, INT nIndex, LONG lCoord);
446 extern BOOL PSDRV_WriteArrayDef(PSDRV_PDEVICE *physDev, CHAR *pszArrayName, INT nSize);
447
448 extern BOOL PSDRV_Arc( PSDRV_PDEVICE *physDev, INT left, INT top, INT right,
449                          INT bottom, INT xstart, INT ystart,
450                          INT xend, INT yend );
451 extern BOOL PSDRV_Chord( PSDRV_PDEVICE *physDev, INT left, INT top, INT right,
452                            INT bottom, INT xstart, INT ystart,
453                            INT xend, INT yend );
454 extern BOOL PSDRV_Ellipse( PSDRV_PDEVICE *physDev, INT left, INT top, INT right,
455                              INT bottom );
456 extern INT PSDRV_EndDoc( PSDRV_PDEVICE *physDev );
457 extern INT PSDRV_EndPage( PSDRV_PDEVICE *physDev );
458 extern BOOL PSDRV_ExtTextOut( PSDRV_PDEVICE *physDev, INT x, INT y, UINT flags,
459                                 const RECT *lprect, LPCWSTR str, UINT count,
460                                 const INT *lpDx );
461 extern BOOL PSDRV_GetCharWidth( PSDRV_PDEVICE *physDev, UINT firstChar, UINT lastChar,
462                                   LPINT buffer );
463 extern BOOL PSDRV_GetTextExtentPoint( PSDRV_PDEVICE *physDev, LPCWSTR str, INT count,
464                                         LPSIZE size );
465 extern BOOL PSDRV_GetTextMetrics( PSDRV_PDEVICE *physDev, TEXTMETRICW *metrics );
466 extern BOOL PSDRV_LineTo( PSDRV_PDEVICE *physDev, INT x, INT y );
467 extern BOOL PSDRV_PatBlt( PSDRV_PDEVICE *physDev, INT x, INT y, INT width, INT height, DWORD
468                           dwRop);
469 extern BOOL PSDRV_Pie( PSDRV_PDEVICE *physDev, INT left, INT top, INT right,
470                          INT bottom, INT xstart, INT ystart,
471                          INT xend, INT yend );
472 extern BOOL PSDRV_Polygon( PSDRV_PDEVICE *physDev, const POINT* pt, INT count );
473 extern BOOL PSDRV_Polyline( PSDRV_PDEVICE *physDev, const POINT* pt, INT count );
474 extern BOOL PSDRV_PolyPolygon( PSDRV_PDEVICE *physDev, const POINT* pts, const INT* counts,
475                                  UINT polygons );
476 extern BOOL PSDRV_PolyPolyline( PSDRV_PDEVICE *physDev, const POINT* pts, const DWORD* counts,
477                                   DWORD polylines );
478 extern BOOL PSDRV_Rectangle( PSDRV_PDEVICE *physDev, INT left, INT top, INT right,
479                               INT bottom );
480 extern BOOL PSDRV_RoundRect(PSDRV_PDEVICE *physDev, INT left, INT top, INT right,
481                               INT bottom, INT ell_width, INT ell_height);
482 extern COLORREF PSDRV_SetBkColor( PSDRV_PDEVICE *physDev, COLORREF color );
483 extern COLORREF PSDRV_SetPixel( PSDRV_PDEVICE *physDev, INT x, INT y, COLORREF color );
484 extern COLORREF PSDRV_SetTextColor( PSDRV_PDEVICE *physDev, COLORREF color );
485 extern INT PSDRV_StartDoc( PSDRV_PDEVICE *physDev, const DOCINFOA *doc );
486 extern INT PSDRV_StartPage( PSDRV_PDEVICE *physDev );
487 extern INT PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst,
488                                 INT widthDst, INT heightDst, INT xSrc,
489                                 INT ySrc, INT widthSrc, INT heightSrc,
490                                 const void *bits, const BITMAPINFO *info,
491                                 UINT wUsage, DWORD dwRop );
492
493 extern INT PSDRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd,
494                                LPDEVMODEA lpdmOutput,
495                                LPSTR lpszDevice, LPSTR lpszPort,
496                                LPDEVMODEA lpdmInput, LPSTR lpszProfile,
497                                DWORD dwMode);
498 extern DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice,
499                                       LPCSTR lpszPort,
500                                       WORD fwCapability, LPSTR lpszOutput,
501                                       LPDEVMODEA lpdm);
502 INT PSDRV_GlyphListInit(void);
503 const GLYPHNAME *PSDRV_GlyphName(LPCSTR szName);
504 VOID PSDRV_IndexGlyphList(void);
505 BOOL PSDRV_GetTrueTypeMetrics(void);
506 BOOL PSDRV_GetType1Metrics(void);
507 const AFMMETRICS *PSDRV_UVMetrics(LONG UV, const AFM *afm);
508 SHORT PSDRV_CalcAvgCharWidth(const AFM *afm);
509
510 extern BOOL PSDRV_SelectBuiltinFont(PSDRV_PDEVICE *physDev, HFONT hfont,
511                                     LOGFONTW *plf, LPSTR FaceName);
512 extern BOOL PSDRV_WriteSetBuiltinFont(PSDRV_PDEVICE *physDev);
513 extern BOOL PSDRV_WriteBuiltinGlyphShow(PSDRV_PDEVICE *physDev, LPCWSTR str, INT count);
514
515 extern BOOL PSDRV_SelectDownloadFont(PSDRV_PDEVICE *physDev);
516 extern BOOL PSDRV_WriteSetDownloadFont(PSDRV_PDEVICE *physDev);
517 extern BOOL PSDRV_WriteDownloadGlyphShow(PSDRV_PDEVICE *physDev, WORD *glpyhs,
518                                          UINT count);
519 extern BOOL PSDRV_EmptyDownloadList(PSDRV_PDEVICE *physDev, BOOL write_undef);
520
521 #define MAX_G_NAME 31 /* max length of PS glyph name */
522 extern void get_glyph_name(HDC hdc, WORD index, char *name);
523
524 extern TYPE1 *T1_download_header(PSDRV_PDEVICE *physDev,
525                                  LPOUTLINETEXTMETRICA potm,
526                                  char *ps_name);
527 extern BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl,
528                               DWORD index, char *glyph_name);
529 extern void T1_free(TYPE1 *t1);
530
531 extern TYPE42 *T42_download_header(PSDRV_PDEVICE *physDev,
532                                    LPOUTLINETEXTMETRICA ptom,
533                                    char *ps_name);
534 extern BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl,
535                                DWORD index, char *glyph_name);
536 extern void T42_free(TYPE42 *t42);
537 #endif