Scribus
Open source desktop publishing at your fingertips
KernFeature Class Reference

#include <sfnt.h>

Public Member Functions

 KernFeature (FT_Face face)
 
 KernFeature (const KernFeature &kf)
 
double getPairValue (unsigned int glyph1, unsigned int glyph2) const
 
bool isValid () const
 

Detailed Description

An object holding a table of kerning pairs extracted from a kern feature such as found in a GPOS table

Constructor & Destructor Documentation

KernFeature::KernFeature ( FT_Face  face)

Build a ready-to-use kerning pairs table

Parameters
facea valid FT_Face, It won’t be store by KernFeature

Member Function Documentation

double KernFeature::getPairValue ( unsigned int  glyph1,
unsigned int  glyph2 
) const

Get the kerning value for a pair of glyph indexes.

Parameters
glyph1Index of the left glyph in logical order
glyph2Index of the right glyph in logical order
Returns
the unscaled delta to apply to xadvance of the first glyph
bool KernFeature::isValid ( ) const
inline

The table can have been invalidated if something went wrong at any moment.

Returns
True if valid, False otherwise.

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