ADi-FontEngine  1.0
PDF Optimized FontEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FontEngineGlyphNames.h
Go to the documentation of this file.
1 // FontEngine/FontEngineGlyphNames.h
2 //
3 // Copyright 2012 - Andreas Dippe
4 //
5 // This file is part of ADi-FontEngine, 2012
6 //-----------------------------------------------------------------------------
7 
8 #ifndef _FONTENGINEGLYPHNAMES_H_
9 #define _FONTENGINEGLYPHNAMES_H_
10 
13 
14 #include <string>
15 
16 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
18 
19 namespace FontEngine
20 {
21 
22  /*! \brief get Adobe PostScript glyph name from unicode or empty string if no name exist
23  \param unicode the given Unicode to get PostScript glyph name
24  \return the PostScript glyph name
25  */
26  FONTENGINE_EXPORTS std::string findGlyphNameFromUnicode( const TCharCode & unicode);
27  //-----------------------------------------------------------------------------
28  /*! \brief get Unicode from Adobe PostScript glyph name from Unicode or empty TCharCode if no Unicode exist
29  \param gname the PostScript glyph name
30  \param len the length of the PostScript glyph name
31  \return the Unicode or an empty TCharCode if no unicode exist
32  */
33  FONTENGINE_EXPORTS TCharCode findUnicodeFromGlyphName( const char* gname, unsigned char len);
34  //-----------------------------------------------------------------------------
35  //
36  /*! \brief set Unicode range in unicodeRange pattern came from OS/2 table TrueType font
37  see <br><http://www.microsoft.com/typography/otspec/os2.htm#cpr>
38  \param unicode the unicode
39  \param unicodeRange same format ulCodePageRange1 and ulCodePageRange2 filled by funvtion
40  \return true if the unicode is known and a bit was set in unicodeRange
41  */
42  FONTENGINE_EXPORTS bool setUnicodeRange( const TCharCode & unicode, unsigned char unicodeRange[16]);
43  //-----------------------------------------------------------------------------
44 
45 } // namespace FontEngine
46 
47 #endif // _FONTENGINEGLYPHNAMES_H_
48 //-----------------------------------------------------------------------------
49 /*!\history
50 ** ADi-2012-12-14: creation
51 ** ADi-2013-11-18: correct doxygen comments
52 */
FONTENGINE_EXPORTS TCharCode findUnicodeFromGlyphName(const char *gname, unsigned char len)
get Unicode from Adobe PostScript glyph name from Unicode or empty TCharCode if no Unicode exist ...
FONTENGINE_EXPORTS bool setUnicodeRange(const TCharCode &unicode, unsigned char unicodeRange[16])
set Unicode range in unicodeRange pattern came from OS/2 table TrueType font see http://www...
FONTENGINE_EXPORTS std::string findGlyphNameFromUnicode(const TCharCode &unicode)
get Adobe PostScript glyph name from unicode or empty string if no name exist
#define FONTENGINE_EXPORTS
Definition: FontEngineDLL.h:20
FontEngine::TCode TCharCode
Definition: FontEngineTypes.h:30
InsideFont and ADI-FontEngine : Andreas Dippe, © 2013
http://www.insidefont.de