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::FeatureList Class Reference

#include <otf.hh>

Public Member Functions

 FeatureList ()
 
 FeatureList (const String &, ErrorHandler *=0)
 
int assign (const String &, ErrorHandler *=0)
 
bool ok () const
 
Tag tag (int fid) const
 
String params (int fid, int length, ErrorHandler *=0, bool old_style_offset=false) const
 
String size_params (int fid, const Name &name, ErrorHandler *=0) const
 
int lookups (int fid, Vector< int > &results, ErrorHandler *=0, bool clear_results=true) const
 
int find (Tag, const Vector< int > &fids) const
 
void filter (Vector< int > &fids, const Vector< Tag > &sorted_ftags) const
 
void filter (Vector< int > &fids, Tag ftag) const
 
int lookups (const Vector< int > &fids, Vector< int > &results, ErrorHandler *=0) const
 
int lookups (const Vector< int > &required_fids, const Vector< int > &fids, const Vector< Tag > &sorted_ftags, Vector< int > &results, ErrorHandler *=0) const
 
int lookups (int required_fid, const Vector< int > &fids, const Vector< Tag > &sorted_ftags, Vector< int > &results, ErrorHandler *=0) const
 
int lookups (const ScriptList &, Tag script, Tag langsys, const Vector< Tag > &sorted_ftags, Vector< int > &results, ErrorHandler *=0) const
 

Private Types

enum  { FEATURELIST_HEADERSIZE = 2 , FEATURE_RECSIZE = 6 , FEATURE_HEADERSIZE = 4 , LOOKUPLIST_RECSIZE = 2 }
 

Private Member Functions

int check_header (ErrorHandler *)
 
int script_offset (Tag) const
 
int langsys_offset (Tag, Tag, ErrorHandler *=0) const
 

Private Attributes

String _str
 

Detailed Description

Definition at line 109 of file otf.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
FEATURELIST_HEADERSIZE 
FEATURE_RECSIZE 
FEATURE_HEADERSIZE 
LOOKUPLIST_RECSIZE 

Definition at line 133 of file otf.hh.

Constructor & Destructor Documentation

◆ FeatureList() [1/2]

Efont::OpenType::FeatureList::FeatureList ( )
inline

Definition at line 111 of file otf.hh.

◆ FeatureList() [2/2]

FeatureList::FeatureList ( const String str,
ErrorHandler errh = 0 
)
inline

Definition at line 345 of file otf.hh.

References assign(), errh, and str.

Member Function Documentation

◆ assign()

◆ check_header()

int FeatureList::check_header ( ErrorHandler errh)
private

◆ filter() [1/2]

◆ filter() [2/2]

void FeatureList::filter ( Vector< int > &  fids,
Tag  ftag 
) const
inline

Definition at line 349 of file otf.hh.

References filter(), and tags.

◆ find()

◆ langsys_offset()

int Efont::OpenType::FeatureList::langsys_offset ( Tag  ,
Tag  ,
ErrorHandler = 0 
) const
private

◆ lookups() [1/5]

int FeatureList::lookups ( const ScriptList script_list,
Tag  script,
Tag  langsys,
const Vector< Tag > &  sorted_ftags,
Vector< int > &  results,
ErrorHandler errh = 0 
) const

◆ lookups() [2/5]

int FeatureList::lookups ( const Vector< int > &  fids,
Vector< int > &  results,
ErrorHandler errh = 0 
) const

Definition at line 692 of file otf.cc.

References _str, errh, i, String::length(), lookups(), results(), Vector< T >::size(), and sort().

◆ lookups() [3/5]

int FeatureList::lookups ( const Vector< int > &  required_fids,
const Vector< int > &  fids,
const Vector< Tag > &  sorted_ftags,
Vector< int > &  results,
ErrorHandler errh = 0 
) const

Definition at line 710 of file otf.cc.

References errh, filter(), i, lookups(), Vector< T >::push_back(), results(), and Vector< T >::size().

◆ lookups() [4/5]

int FeatureList::lookups ( int  fid,
Vector< int > &  results,
ErrorHandler errh = 0,
bool  clear_results = true 
) const

◆ lookups() [5/5]

int FeatureList::lookups ( int  required_fid,
const Vector< int > &  fids,
const Vector< Tag > &  sorted_ftags,
Vector< int > &  results,
ErrorHandler errh = 0 
) const

Definition at line 720 of file otf.cc.

References errh, filter(), lookups(), Vector< T >::push_back(), and results().

◆ ok()

bool Efont::OpenType::FeatureList::ok ( ) const
inline

Definition at line 116 of file otf.hh.

References _str, and String::length().

◆ params()

String FeatureList::params ( int  fid,
int  length,
ErrorHandler errh = 0,
bool  old_style_offset = false 
) const

◆ script_offset()

int Efont::OpenType::FeatureList::script_offset ( Tag  ) const
private

◆ size_params()

String FeatureList::size_params ( int  fid,
const Name name,
ErrorHandler errh = 0 
) const

◆ tag()

Member Data Documentation

◆ _str

String Efont::OpenType::FeatureList::_str
private

Definition at line 136 of file otf.hh.

Referenced by assign(), check_header(), filter(), find(), lookups(), ok(), params(), and tag().


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