w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::TtfUtil Namespace Reference

Namespaces

namespace  Sfnt
 

Classes

class  Tag
 

Typedefs

typedef unsigned char uint8
 
typedef uint8 byte
 
typedef signed char int8
 
typedef unsigned short uint16
 
typedef short int16
 
typedef unsigned int uint32
 
typedef int int32
 
typedef int16 short_frac
 
typedef int32 fixed
 
typedef int16 fword
 
typedef uint16 ufword
 
typedef int16 f2dot14
 
typedef uint32 long_date_time[2]
 
typedef long fontTableId32
 
typedef unsigned short gid16
 

Enumerations

enum  { OneFix = 1<<16 }
 
enum  { OneFix = 1<<16 }
 

Functions

bool GetHeaderInfo (size_t &lOffset, size_t &lSize)
 
bool CheckHeader (const void *pHdr)
 
bool GetTableDirInfo (const void *pHdr, size_t &lOffset, size_t &lSize)
 
bool GetTableInfo (const Tag TableTag, const void *pHdr, const void *pTableDir, size_t &lOffset, size_t &lSize)
 
bool CheckTable (const Tag TableId, const void *pTable, size_t lTableSize)
 
size_t GlyphCount (const void *pMaxp)
 
int DesignUnits (const void *pHead)
 
bool GetNameInfo (const void *pName, int nPlatformId, int nEncodingId, int nLangId, int nNameId, size_t &lOffset, size_t &lSize)
 
const voidFindCmapSubtable (const void *pCmap, int nPlatformId=3, int nEncodingId=1, size_t length=0)
 
bool CheckCmapSubtable4 (const void *pCmap31, const void *pCmapEnd)
 
gid16 CmapSubtable4Lookup (const void *pCmapSubtabel4, unsigned int nUnicodeId, int rangeKey=0)
 
unsigned int CmapSubtable4NextCodepoint (const void *pCmap31, unsigned int nUnicodeId, int *pRangeKey=0)
 
bool CheckCmapSubtable12 (const void *pCmap310, const void *pCmapEnd)
 
gid16 CmapSubtable12Lookup (const void *pCmap310, unsigned int uUnicodeId, int rangeKey=0)
 
unsigned int CmapSubtable12NextCodepoint (const void *pCmap310, unsigned int nUnicodeId, int *pRangeKey=0)
 
bool HorMetrics (gid16 nGlyphId, const void *pHmtx, size_t lHmtxSize, const void *pHhea, int &nLsb, unsigned int &nAdvWid)
 
size_t LocaLookup (gid16 nGlyphId, const void *pLoca, size_t lLocaSize, const void *pHead)
 
voidGlyfLookup (const void *pGlyf, size_t lGlyfOffset, size_t lTableLen)
 
bool GlyfBox (const void *pSimpleGlyf, int &xMin, int &yMin, int &xMax, int &yMax)
 
voidGlyfLookup (gid16 nGlyphId, const void *pGlyf, const void *pLoca, size_t lGlyfSize, size_t lLocaSize, const void *pHead)
 

Typedef Documentation

◆ byte

Definition at line 55 of file TtfTypes.h.

◆ f2dot14

Definition at line 66 of file TtfTypes.h.

◆ fixed

Definition at line 63 of file TtfTypes.h.

◆ fontTableId32

Definition at line 48 of file TtfUtil.h.

◆ fword

Definition at line 64 of file TtfTypes.h.

◆ gid16

typedef unsigned short graphite2::TtfUtil::gid16

Definition at line 49 of file TtfUtil.h.

◆ int16

Definition at line 58 of file TtfTypes.h.

◆ int32

Definition at line 60 of file TtfTypes.h.

◆ int8

typedef signed char graphite2::TtfUtil::int8

Definition at line 56 of file TtfTypes.h.

◆ long_date_time

typedef uint32 graphite2::TtfUtil::long_date_time

Definition at line 67 of file TtfTypes.h.

◆ short_frac

Definition at line 62 of file TtfTypes.h.

◆ ufword

Definition at line 65 of file TtfTypes.h.

◆ uint16

typedef unsigned short graphite2::TtfUtil::uint16

Definition at line 57 of file TtfTypes.h.

◆ uint32

typedef unsigned int graphite2::TtfUtil::uint32

Definition at line 59 of file TtfTypes.h.

◆ uint8

typedef unsigned char graphite2::TtfUtil::uint8

Definition at line 54 of file TtfTypes.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OneFix 

Definition at line 72 of file TtfTypes.h.

◆ anonymous enum

anonymous enum
Enumerator
OneFix 

Definition at line 72 of file TtfTypes.h.

Function Documentation

◆ CheckCmapSubtable12()

◆ CheckCmapSubtable4()

◆ CheckHeader()

◆ CheckTable()

◆ CmapSubtable12Lookup()

◆ CmapSubtable12NextCodepoint()

◆ CmapSubtable4Lookup()

gid16 graphite2::TtfUtil::CmapSubtable4Lookup ( const void pCmapSubtabel4,
unsigned int  nUnicodeId,
int  rangeKey = 0 
)

◆ CmapSubtable4NextCodepoint()

unsigned int graphite2::TtfUtil::CmapSubtable4NextCodepoint ( const void pCmap31,
unsigned int  nUnicodeId,
int pRangeKey = 0 
)

◆ DesignUnits()

int graphite2::TtfUtil::DesignUnits ( const void pHead)

◆ FindCmapSubtable()

◆ GetHeaderInfo()

bool graphite2::TtfUtil::GetHeaderInfo ( size_t lOffset,
size_t lSize 
)

Definition at line 156 of file TtfUtil.cpp.

References assert(), and offsetof.

Referenced by graphite2::FileFace::FileFace().

◆ GetNameInfo()

◆ GetTableDirInfo()

bool graphite2::TtfUtil::GetTableDirInfo ( const void pHdr,
size_t lOffset,
size_t lSize 
)

◆ GetTableInfo()

◆ GlyfBox()

bool graphite2::TtfUtil::GlyfBox ( const void pSimpleGlyf,
int xMin,
int yMin,
int xMax,
int yMax 
)

◆ GlyfLookup() [1/2]

void * graphite2::TtfUtil::GlyfLookup ( const void pGlyf,
size_t  lGlyfOffset,
size_t  lTableLen 
)

Definition at line 1252 of file TtfUtil.cpp.

References Glyph, NULL, and OVERFLOW_OFFSET_CHECK.

Referenced by GlyfLookup(), and graphite2::GlyphCache::Loader::read_glyph().

◆ GlyfLookup() [2/2]

◆ GlyphCount()

◆ HorMetrics()

bool graphite2::TtfUtil::HorMetrics ( gid16  nGlyphId,
const void pHmtx,
size_t  lHmtxSize,
const void pHhea,
int nLsb,
unsigned int nAdvWid 
)

◆ LocaLookup()