-/***************************************************************************/\r
-/* */\r
-/* svpscmap.h */\r
-/* */\r
-/* The FreeType PostScript charmap service (specification). */\r
-/* */\r
-/* Copyright 2003, 2006 by */\r
-/* David Turner, Robert Wilhelm, and Werner Lemberg. */\r
-/* */\r
-/* This file is part of the FreeType project, and may only be used, */\r
-/* modified, and distributed under the terms of the FreeType project */\r
-/* license, LICENSE.TXT. By continuing to use, modify, or distribute */\r
-/* this file you indicate that you have read the license and */\r
-/* understand and accept it fully. */\r
-/* */\r
-/***************************************************************************/\r
-\r
-\r
-#ifndef __SVPSCMAP_H__\r
-#define __SVPSCMAP_H__\r
-\r
-#include FT_INTERNAL_OBJECTS_H\r
-\r
-\r
-FT_BEGIN_HEADER\r
-\r
-\r
-#define FT_SERVICE_ID_POSTSCRIPT_CMAPS "postscript-cmaps"\r
-\r
-\r
- /*\r
- * Adobe glyph name to unicode value.\r
- */\r
- typedef FT_UInt32\r
- (*PS_Unicode_ValueFunc)( const char* glyph_name );\r
-\r
- /*\r
- * Macintosh name id to glyph name. NULL if invalid index.\r
- */\r
- typedef const char*\r
- (*PS_Macintosh_NameFunc)( FT_UInt name_index );\r
-\r
- /*\r
- * Adobe standard string ID to glyph name. NULL if invalid index.\r
- */\r
- typedef const char*\r
- (*PS_Adobe_Std_StringsFunc)( FT_UInt string_index );\r
-\r
-\r
- /*\r
- * Simple unicode -> glyph index charmap built from font glyph names\r
- * table.\r
- */\r
- typedef struct PS_UniMap_\r
- {\r
- FT_UInt32 unicode; /* bit 31 set: is glyph variant */\r
- FT_UInt glyph_index;\r
-\r
- } PS_UniMap;\r
-\r
-\r
- typedef struct PS_UnicodesRec_* PS_Unicodes;\r
-\r
- typedef struct PS_UnicodesRec_\r
- {\r
- FT_CMapRec cmap;\r
- FT_UInt num_maps;\r
- PS_UniMap* maps;\r
-\r
- } PS_UnicodesRec;\r
-\r
-\r
- /*\r
- * A function which returns a glyph name for a given index. Returns\r
- * NULL if invalid index.\r
- */\r
- typedef const char*\r
- (*PS_GetGlyphNameFunc)( FT_Pointer data,\r
- FT_UInt string_index );\r
-\r
- /*\r
- * A function used to release the glyph name returned by\r
- * PS_GetGlyphNameFunc, when needed\r
- */\r
- typedef void\r
- (*PS_FreeGlyphNameFunc)( FT_Pointer data,\r
- const char* name );\r
-\r
- typedef FT_Error\r
- (*PS_Unicodes_InitFunc)( FT_Memory memory,\r
- PS_Unicodes unicodes,\r
- FT_UInt num_glyphs,\r
- PS_GetGlyphNameFunc get_glyph_name,\r
- PS_FreeGlyphNameFunc free_glyph_name,\r
- FT_Pointer glyph_data );\r
-\r
- typedef FT_UInt\r
- (*PS_Unicodes_CharIndexFunc)( PS_Unicodes unicodes,\r
- FT_UInt32 unicode );\r
-\r
- typedef FT_ULong\r
- (*PS_Unicodes_CharNextFunc)( PS_Unicodes unicodes,\r
- FT_UInt32 *unicode );\r
-\r
-\r
- FT_DEFINE_SERVICE( PsCMaps )\r
- {\r
- PS_Unicode_ValueFunc unicode_value;\r
-\r
- PS_Unicodes_InitFunc unicodes_init;\r
- PS_Unicodes_CharIndexFunc unicodes_char_index;\r
- PS_Unicodes_CharNextFunc unicodes_char_next;\r
-\r
- PS_Macintosh_NameFunc macintosh_name;\r
- PS_Adobe_Std_StringsFunc adobe_std_strings;\r
- const unsigned short* adobe_std_encoding;\r
- const unsigned short* adobe_expert_encoding;\r
- };\r
-\r
- /* */\r
-\r
-\r
-FT_END_HEADER\r
-\r
-\r
-#endif /* __SVPSCMAP_H__ */\r
-\r
-\r
-/* END */\r
+/***************************************************************************/
+/* */
+/* svpscmap.h */
+/* */
+/* The FreeType PostScript charmap service (specification). */
+/* */
+/* Copyright 2003, 2006 by */
+/* David Turner, Robert Wilhelm, and Werner Lemberg. */
+/* */
+/* This file is part of the FreeType project, and may only be used, */
+/* modified, and distributed under the terms of the FreeType project */
+/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
+/* this file you indicate that you have read the license and */
+/* understand and accept it fully. */
+/* */
+/***************************************************************************/
+
+
+#ifndef __SVPSCMAP_H__
+#define __SVPSCMAP_H__
+
+#include FT_INTERNAL_OBJECTS_H
+
+
+FT_BEGIN_HEADER
+
+
+#define FT_SERVICE_ID_POSTSCRIPT_CMAPS "postscript-cmaps"
+
+
+ /*
+ * Adobe glyph name to unicode value.
+ */
+ typedef FT_UInt32
+ (*PS_Unicode_ValueFunc)( const char* glyph_name );
+
+ /*
+ * Macintosh name id to glyph name. NULL if invalid index.
+ */
+ typedef const char*
+ (*PS_Macintosh_NameFunc)( FT_UInt name_index );
+
+ /*
+ * Adobe standard string ID to glyph name. NULL if invalid index.
+ */
+ typedef const char*
+ (*PS_Adobe_Std_StringsFunc)( FT_UInt string_index );
+
+
+ /*
+ * Simple unicode -> glyph index charmap built from font glyph names
+ * table.
+ */
+ typedef struct PS_UniMap_
+ {
+ FT_UInt32 unicode; /* bit 31 set: is glyph variant */
+ FT_UInt glyph_index;
+
+ } PS_UniMap;
+
+
+ typedef struct PS_UnicodesRec_* PS_Unicodes;
+
+ typedef struct PS_UnicodesRec_
+ {
+ FT_CMapRec cmap;
+ FT_UInt num_maps;
+ PS_UniMap* maps;
+
+ } PS_UnicodesRec;
+
+
+ /*
+ * A function which returns a glyph name for a given index. Returns
+ * NULL if invalid index.
+ */
+ typedef const char*
+ (*PS_GetGlyphNameFunc)( FT_Pointer data,
+ FT_UInt string_index );
+
+ /*
+ * A function used to release the glyph name returned by
+ * PS_GetGlyphNameFunc, when needed
+ */
+ typedef void
+ (*PS_FreeGlyphNameFunc)( FT_Pointer data,
+ const char* name );
+
+ typedef FT_Error
+ (*PS_Unicodes_InitFunc)( FT_Memory memory,
+ PS_Unicodes unicodes,
+ FT_UInt num_glyphs,
+ PS_GetGlyphNameFunc get_glyph_name,
+ PS_FreeGlyphNameFunc free_glyph_name,
+ FT_Pointer glyph_data );
+
+ typedef FT_UInt
+ (*PS_Unicodes_CharIndexFunc)( PS_Unicodes unicodes,
+ FT_UInt32 unicode );
+
+ typedef FT_ULong
+ (*PS_Unicodes_CharNextFunc)( PS_Unicodes unicodes,
+ FT_UInt32 *unicode );
+
+
+ FT_DEFINE_SERVICE( PsCMaps )
+ {
+ PS_Unicode_ValueFunc unicode_value;
+
+ PS_Unicodes_InitFunc unicodes_init;
+ PS_Unicodes_CharIndexFunc unicodes_char_index;
+ PS_Unicodes_CharNextFunc unicodes_char_next;
+
+ PS_Macintosh_NameFunc macintosh_name;
+ PS_Adobe_Std_StringsFunc adobe_std_strings;
+ const unsigned short* adobe_std_encoding;
+ const unsigned short* adobe_expert_encoding;
+ };
+
+ /* */
+
+
+FT_END_HEADER
+
+
+#endif /* __SVPSCMAP_H__ */
+
+
+/* END */