From 43d65dc03325bcce8561423b9607f7e114355f7d Mon Sep 17 00:00:00 2001 From: ferbas Date: Wed, 13 Jan 2010 09:41:29 +0000 Subject: initial import git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@545 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sources/import/API/PDSysFontExpT.h | 164 +++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/PDSysFontExpT.h (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/PDSysFontExpT.h') diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/PDSysFontExpT.h b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/PDSysFontExpT.h new file mode 100644 index 0000000..d6c9b86 --- /dev/null +++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/PDSysFontExpT.h @@ -0,0 +1,164 @@ +/********************************************************************* + + ADOBE SYSTEMS INCORPORATED + Copyright (C) 1996-2006 Adobe Systems Incorporated + All rights reserved. + + NOTICE: Adobe permits you to use, modify, and distribute this file + in accordance with the terms of the Adobe license agreement + accompanying it. If you have received this file from a source other + than Adobe, then your use, modification, or distribution of it + requires the prior written permission of Adobe. + + --------------------------------------------------------------------- + + PDSysFontExpT.h + + - PDSysFont Types header file. + +*********************************************************************/ + +#ifndef _H_PSFExpT +#define _H_PSFExpT + + +#include "Environ.h" +#if PLUGIN || ACROBAT_LIBRARY +#include "CoreExpT.h" +#else +#include "PubTypes.h" +#endif + +#if WIN_PLATFORM +#include +#endif + +#if PRAGMA_STRUCT_ALIGN + #pragma options align=power +#endif + +#if defined( WINDOWS ) || defined( WIN_ENV ) +#pragma pack(push, peexpt, 8) +#endif + +typedef ASInt16 PDSysFontMode; +typedef ASInt16 PDSysFontFID; +typedef ASInt16 PDSysFontFStyle; + +/** A reference to a font installed in the host system. PDSysFont methods allow you to + list the fonts available in the host system and to find a font in the system that matches + a PDEFont, if it is present. + @see PDEnumSysFonts + @see PDFindSysFont + @see PDFindSysFontEx + @see PDFindSysFontForPDEFont + @see PDEnumSysFonts +*/ +typedef struct _t_PDSysFont *PDSysFont; + + +/** Font matching flags for PDFindSysFontForPDEFont() and PDFindSysFont(). + @see PDFindSysFont + @see PDFindSysFontForPDEFont +*/ +typedef enum { + + /** Match the font name and character set. */ + kPDSysFontMatchNameAndCharSet = 0x0001, + + /** Match the font type. */ + kPDSysFontMatchFontType = 0x0002, + + /** Match the writing mode (horizontal or vertical). */ + kPDSysFontMatchWritingMode = 0x0004 + } PDSysFontMatchFlags; + +/** PDEFont information. + @see PDSysFontGetInfo +*/ +typedef struct _t_PDEFontInfo { + + /** An ASAtom for the font name (for example, "Times-Roman"). */ + ASAtom name; + + /**An ASAtom for font type (for example, "Type 1", "TrueType", and so on). */ + ASAtom type; + + /** An ASAtom for "Roman", or ASAtomNull. If it is "Roman", the + characters must be a subset of the Adobe Standard Roman Character Set. + */ + ASAtom charSet; + + /** An ASAtom for font encoding, such as WinAnsiEncoding. */ + ASAtom encoding; + + /** The writing mode: 0 means horizontal and 1 means vertical. */ + PDSysFontMode wMode; + } PDEFontInfoRec, *PDEFontInfoP; + + +/** PDSysFontPlatData */ +#if WIN_PLATFORM +typedef struct _t_PDSysFontPlatData { + + /** This must be sizeof(PDSysFontPlatData). */ + ASSize_t size; + + /** (Windows only) The Windows LOGFONTA structure defining font attributes.*/ + LOGFONTA *lf; + + /** (Optional) This is only set if LOGFONTA is not present. */ + ASPathName fontPath; + + /** (Optional) This is only set if LOGFONTA is not present. */ + ASPathName afmPath; +} PDSysFontPlatData, *PDSysFontPlatDataP; +#elif MAC_PLATFORM +typedef struct _t_PDSysFontPlatData { + + /** This must be sizeof(PDSysFontPlatData). */ + ASSize_t size; + + /** The font ID. */ + PDSysFontFID fontID; + + /** The style value within that font. The default is 0. */ + PDSysFontFStyle fontStyle; +} PDSysFontPlatData, *PDSysFontPlatDataP; +#elif UNIX_PLATFORM +typedef struct _t_PDSysFontPlatData { + + /** This must be sizeof(PDSysFontPlatData). */ + ASSize_t size; + + /** A path to the font file. It is set only if lf is not present. */ + ASPathName fontPath; + + /** A path to the font AFM file. It is set only if lf is not present. */ + ASPathName afmPath; +} PDSysFontPlatData, *PDSysFontPlatDataP; +#endif + +/* PDSysFontEnumProc */ + +/** + A callback for PDEnumSysFonts(). It is called once for each + system font. + @param sysFont IN/OUT The system font. + @param clientData IN/OUT User-supplied data that was specified + in the call to PDEnumSysFonts(). + @return true to continue enumeration, false to halt enumeration. + + @see PDEnumSysFonts +*/ +typedef ACCBPROTO1 ASBool (ACCBPROTO2 *PDSysFontEnumProc)(PDSysFont sysFont, void *clientData); + +#if defined( WINDOWS ) || defined( WIN_ENV ) +#pragma pack (pop, peexpt ) /* reset to /Zp */ +#endif + +#if PRAGMA_STRUCT_ALIGN + #pragma options align=reset +#endif + +#endif /* _H_PSFExpT */ -- cgit v1.2.3