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)  

Efont::OpenType::Font Class Reference

#include <otf.hh>

Public Types

enum  { HEADER_SIZE = 12 , TABLE_DIR_ENTRY_SIZE = 16 }

Public Member Functions

 Font (const String &str, ErrorHandler *errh=0)
bool ok () const
bool check_checksums (ErrorHandler *errh=0) const
int error () const
const Stringdata_string () const
const uint8_tdata () const
int length () const
unsigned units_per_em () const
int ntables () const
bool has_table (Tag tag) const
String table (Tag tag) const
uint32_t table_checksum (Tag tag) const
Tag table_tag (int i) const

Static Public Member Functions

static uint32_t checksum (const uint8_t *, const uint8_t *)
static uint32_t checksum (const String &)
static Font make (bool truetype, const Vector< Tag > &tags, const Vector< String > &data)

Private Member Functions

int parse_header (ErrorHandler *)

Private Attributes

String _str
int _error
unsigned _units_per_em

Detailed Description

Definition at line 49 of file otf.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 74 of file otf.hh.

Constructor & Destructor Documentation

◆ Font()

Font::Font ( const String str,
ErrorHandler errh = 0 

Definition at line 34 of file otf.cc.

References _error, _str, String::align(), errh, parse_header(), and ErrorHandler::silent_handler().

Referenced by make().

Member Function Documentation

◆ check_checksums()

◆ checksum() [1/2]

uint32_t Font::checksum ( const String s)

Definition at line 179 of file otf.cc.

References checksum(), and s.

Referenced by tfm.Tex_font_metric::__str__().

◆ checksum() [2/2]

uint32_t Font::checksum ( const uint8_t begin,
const uint8_t end 

◆ data()

const uint8_t* Efont::OpenType::Font::data ( ) const

Definition at line 59 of file otf.hh.

References _str, and String::udata().

Referenced by check_checksums(), do_file(), has_table(), make(), ntables(), parse_header(), table(), table_checksum(), and table_tag().

◆ data_string()

const String& Efont::OpenType::Font::data_string ( ) const

Definition at line 58 of file otf.hh.

References _str.

Referenced by do_file().

◆ error()

int Efont::OpenType::Font::error ( ) const

Definition at line 56 of file otf.hh.

References _error.

Referenced by check_checksums(), has_table(), ntables(), table(), table_checksum(), and table_tag().

◆ has_table()

bool Font::has_table ( Tag  tag) const

Definition at line 133 of file otf.cc.

References data(), entry, error(), HEADER_SIZE, TABLE_DIR_ENTRY_SIZE, and Efont::OpenType::Data::u16_aligned().

Referenced by do_dump_table().

◆ length()

int Efont::OpenType::Font::length ( ) const

Definition at line 60 of file otf.hh.

References _str, and String::length().

Referenced by do_file(), make(), and parse_header().

◆ make()

◆ ntables()

int Font::ntables ( ) const

Definition at line 112 of file otf.cc.

References data(), error(), and Efont::OpenType::Data::u16_aligned().

Referenced by check_checksums(), do_file(), do_tables(), parse_header(), and table_tag().

◆ ok()

bool Efont::OpenType::Font::ok ( ) const

Definition at line 54 of file otf.hh.

References _error.

Referenced by check_checksums(), do_file(), and main().

◆ parse_header()

◆ table()

◆ table_checksum()

uint32_t Font::table_checksum ( Tag  tag) const

◆ table_tag()

Tag Font::table_tag ( int  i) const

Definition at line 154 of file otf.cc.

References data(), error(), HEADER_SIZE, i, ntables(), TABLE_DIR_ENTRY_SIZE, and Efont::OpenType::Data::u32_aligned().

Referenced by do_tables().

◆ units_per_em()

unsigned Efont::OpenType::Font::units_per_em ( ) const

Member Data Documentation

◆ _error

int Efont::OpenType::Font::_error

Definition at line 78 of file otf.hh.

Referenced by error(), Font(), and ok().

◆ _str

String Efont::OpenType::Font::_str

Definition at line 77 of file otf.hh.

Referenced by check_checksums(), data(), data_string(), Font(), length(), parse_header(), and table().

◆ _units_per_em

unsigned Efont::OpenType::Font::_units_per_em

Definition at line 79 of file otf.hh.

Referenced by parse_header(), and units_per_em().

The documentation for this class was generated from the following files: