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)  

Efont::OpenType::Data Class Reference

#include <otfdata.hh>

Public Member Functions

 Data ()
 
 Data (const String &str)
 
const Stringstring () const
 
 operator const String & () const
 
 operator String::unspecified_bool_type () const
 
const uint8_tudata () const
 
int length () const
 
uint8_t operator[] (unsigned offset) const
 
uint16_t u16 (unsigned offset) const
 
int16_t s16 (unsigned offset) const
 
uint32_t u32 (unsigned offset) const
 
int32_t s32 (unsigned offset) const
 
uint8_t operator[] (int offset) const
 
uint16_t u16 (int offset) const
 
int16_t s16 (int offset) const
 
uint32_t u32 (int offset) const
 
int32_t s32 (int offset) const
 
Data subtable (unsigned offset) const
 
Data offset_subtable (unsigned offset_offset) const
 
Data substring (int left, int len=-1) const noexcept
 
void align_long ()
 

Static Public Member Functions

static uint16_t u16 (const unsigned char *s)
 
static uint16_t u16_aligned (const unsigned char *s)
 
static int16_t s16 (const unsigned char *s)
 
static int16_t s16_aligned (const unsigned char *s)
 
static uint32_t u32 (const unsigned char *s)
 
static uint32_t u32_aligned16 (const unsigned char *s)
 
static uint32_t u32_aligned (const unsigned char *s)
 
static int32_t s32 (const unsigned char *s)
 
static int32_t s32_aligned16 (const unsigned char *s)
 
static int32_t s32_aligned (const unsigned char *s)
 

Private Attributes

String _str
 

Detailed Description

Definition at line 61 of file otfdata.hh.

Constructor & Destructor Documentation

◆ Data() [1/2]

Efont::OpenType::Data::Data ( )
inline

Definition at line 63 of file otfdata.hh.

Referenced by offset_subtable(), and subtable().

◆ Data() [2/2]

Efont::OpenType::Data::Data ( const String str)
inline

Definition at line 64 of file otfdata.hh.

References _str, and String::align().

Member Function Documentation

◆ align_long()

void Efont::OpenType::Data::align_long ( )
inline

◆ length()

◆ offset_subtable()

Data Efont::OpenType::Data::offset_subtable ( unsigned  offset_offset) const

◆ operator const String &()

Efont::OpenType::Data::operator const String & ( ) const
inline

Definition at line 69 of file otfdata.hh.

References _str.

◆ operator String::unspecified_bool_type()

Efont::OpenType::Data::operator String::unspecified_bool_type ( ) const
inline

Definition at line 71 of file otfdata.hh.

References _str.

◆ operator[]() [1/2]

uint8_t Efont::OpenType::Data::operator[] ( int  offset) const
inline

Definition at line 190 of file otfdata.hh.

References offset.

◆ operator[]() [2/2]

uint8_t Efont::OpenType::Data::operator[] ( unsigned  offset) const
inline

Definition at line 109 of file otfdata.hh.

References _str, String::length(), and offset.

◆ s16() [1/3]

◆ s16() [2/3]

int16_t Efont::OpenType::Data::s16 ( int  offset) const
inline

Definition at line 198 of file otfdata.hh.

References offset, and s16().

◆ s16() [3/3]

int16_t Efont::OpenType::Data::s16 ( unsigned  offset) const
inline

Definition at line 169 of file otfdata.hh.

References _str, String::length(), offset, s16_aligned(), and String::udata().

◆ s16_aligned()

int16_t Efont::OpenType::Data::s16_aligned ( const unsigned char *  s)
inlinestatic

Definition at line 129 of file otfdata.hh.

References efont_precondition, ntohs(), and s.

Referenced by s16().

◆ s32() [1/3]

int32_t Efont::OpenType::Data::s32 ( const unsigned char *  s)
inlinestatic

Definition at line 148 of file otfdata.hh.

References s.

Referenced by s32().

◆ s32() [2/3]

int32_t Efont::OpenType::Data::s32 ( int  offset) const
inline

Definition at line 206 of file otfdata.hh.

References offset, and s32().

◆ s32() [3/3]

int32_t Efont::OpenType::Data::s32 ( unsigned  offset) const
inline

Definition at line 183 of file otfdata.hh.

References _str, String::length(), offset, s32_aligned16(), and String::udata().

◆ s32_aligned()

int32_t Efont::OpenType::Data::s32_aligned ( const unsigned char *  s)
inlinestatic

Definition at line 157 of file otfdata.hh.

References efont_precondition, ntohl(), and s.

◆ s32_aligned16()

int32_t Efont::OpenType::Data::s32_aligned16 ( const unsigned char *  s)
inlinestatic

Definition at line 152 of file otfdata.hh.

References efont_precondition, s, and u16_aligned().

Referenced by s32().

◆ string()

const String& Efont::OpenType::Data::string ( ) const
inline

Definition at line 68 of file otfdata.hh.

References _str.

Referenced by Efont::OpenType::Os2::vendor_id().

◆ substring()

Data Efont::OpenType::Data::substring ( int  left,
int  len = -1 
) const
inlinenoexcept

Definition at line 210 of file otfdata.hh.

References len.

Referenced by do_file(), Efont::OpenType::KernTable::subtable(), and Efont::OpenType::Os2::vendor_id().

◆ subtable()

◆ u16() [1/3]

uint16_t Efont::OpenType::Data::u16 ( const unsigned char *  s)
inlinestatic

Definition at line 116 of file otfdata.hh.

References s.

Referenced by Efont::OpenType::GsubLookup::apply(), Efont::OpenType::GsubSingle::apply(), Efont::OpenType::GsubLigature::apply(), Efont::OpenType::GsubMultiple::apply(), Efont::OpenType::GsubChainContext::coverage(), do_file(), do_query_optical_size_size(), Efont::OpenType::GsubChainContext::f1_unparse(), Efont::OpenType::GsubChainContext::f3_unparse(), Efont::OpenType::GposLookup::flags(), Efont::OpenType::GsubLookup::flags(), fprint_sfnts(), get_design_size(), Efont::TrueTypeBoundsCharstringProgram::glyph(), Efont::OpenType::GposLookup::GposLookup(), Efont::OpenType::GposPair::GposPair(), Efont::OpenType::GposSingle::GposSingle(), Efont::OpenType::GsubChainContext::GsubChainContext(), Efont::OpenType::GsubContext::GsubContext(), Efont::OpenType::GsubLigature::GsubLigature(), Efont::OpenType::GsubLookup::GsubLookup(), Efont::OpenType::GsubMultiple::GsubMultiple(), Efont::OpenType::GsubSingle::GsubSingle(), Efont::OpenType::Head::index_to_loc_format(), Efont::OpenType::Gpos::lookup(), Efont::OpenType::Gsub::lookup(), Efont::OpenType::Os2::lower_optical_point_size(), Efont::OpenType::GsubLigature::map(), Efont::OpenType::GsubSingle::map(), Efont::OpenType::GsubMultiple::map(), Efont::OpenType::GsubLookup::mark_out_glyphs(), Efont::OpenType::GsubContext::mark_out_glyphs(), Efont::OpenType::GsubChainContext::mark_out_glyphs(), Efont::OpenType::GsubSingle::mark_out_glyphs(), Efont::OpenType::GsubMultiple::mark_out_glyphs(), Efont::OpenType::GsubLigature::mark_out_glyphs(), Efont::OpenType::Gpos::nlookups(), Efont::OpenType::Gsub::nlookups(), Efont::OpenType::KernTable::ntables(), offset_subtable(), Efont::OpenType::Os2::parse_header(), Efont::OpenType::GposLookup::subtable(), Efont::OpenType::GsubLookup::subtable(), Efont::OpenType::KernTable::subtable(), Efont::TrueTypeBoundsCharstringProgram::TrueTypeBoundsCharstringProgram(), u16(), Efont::OpenType::Head::units_per_em(), Efont::OpenType::GsubContext::unparse(), Efont::OpenType::GsubChainContext::unparse(), Efont::OpenType::GposSingle::unparse(), Efont::OpenType::GposPair::unparse(), Efont::OpenType::GsubLigature::unparse(), Efont::OpenType::GsubMultiple::unparse(), Efont::OpenType::GsubSingle::unparse(), Efont::OpenType::GsubLookup::unparse_automatics(), Efont::OpenType::GposLookup::unparse_automatics(), Efont::OpenType::KernTable::unparse_automatics(), Efont::OpenType::Os2::upper_optical_point_size(), and Efont::OpenType::Name::utf8_name().

◆ u16() [2/3]

uint16_t Efont::OpenType::Data::u16 ( int  offset) const
inline

Definition at line 194 of file otfdata.hh.

References offset, and u16().

◆ u16() [3/3]

uint16_t Efont::OpenType::Data::u16 ( unsigned  offset) const
inline

Definition at line 162 of file otfdata.hh.

References _str, String::length(), offset, u16_aligned(), and String::udata().

◆ u16_aligned()

uint16_t Efont::OpenType::Data::u16_aligned ( const unsigned char *  s)
inlinestatic

Definition at line 120 of file otfdata.hh.

References efont_precondition, ntohs(), and s.

Referenced by Efont::OpenType::Coverage::check(), Efont::OpenType::ClassDef::check(), Efont::OpenType::ScriptList::check_header(), Efont::OpenType::FeatureList::check_header(), Efont::OpenType::ScriptList::check_script(), Efont::OpenType::ClassDef::class_iterator::class_iterator(), Efont::OpenType::Coverage::Coverage(), Efont::OpenType::Coverage::iterator::coverage_index(), Efont::OpenType::Coverage::coverage_index(), Efont::OpenType::Name::encoding(), Efont::OpenType::Name::end(), Efont::OpenType::ScriptList::features(), Efont::OpenType::FeatureList::filter(), Efont::OpenType::FeatureList::find(), Efont::OpenType::Coverage::iterator::forward_to(), Efont::OpenType::Font::has_table(), Efont::OpenType::ClassDef::class_iterator::increment_class0(), Efont::OpenType::Coverage::iterator::iterator(), Efont::OpenType::ScriptList::langsys_offset(), Efont::OpenType::Name::language(), Efont::OpenType::ScriptList::language_systems(), Efont::OpenType::ClassDef::lookup(), Efont::OpenType::FeatureList::lookups(), Efont::OpenType::Name::nameid(), Efont::OpenType::Font::ntables(), Efont::OpenType::Coverage::iterator::operator++(), Efont::OpenType::ClassDef::class_iterator::operator++(), Efont::OpenType::Coverage::operator[](), Efont::OpenType::FeatureList::params(), Efont::OpenType::Font::parse_header(), Efont::OpenType::Name::platform(), s32_aligned16(), Efont::OpenType::ScriptList::script_offset(), Efont::OpenType::Coverage::size(), Efont::OpenType::FeatureList::size_params(), Efont::OpenType::Font::table(), Efont::OpenType::Font::table_checksum(), Efont::OpenType::FeatureList::tag(), u16(), u32_aligned16(), Efont::OpenType::Coverage::unparse(), and Efont::OpenType::ClassDef::unparse().

◆ u32() [1/3]

◆ u32() [2/3]

uint32_t Efont::OpenType::Data::u32 ( int  offset) const
inline

Definition at line 202 of file otfdata.hh.

References offset, and u32().

◆ u32() [3/3]

uint32_t Efont::OpenType::Data::u32 ( unsigned  offset) const
inline

Definition at line 176 of file otfdata.hh.

References _str, String::length(), offset, u32_aligned16(), and String::udata().

◆ u32_aligned()

◆ u32_aligned16()

◆ udata()

Member Data Documentation

◆ _str


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