FcFreeTypeCharIndex
3
FcFreeTypeCharIndex
map Unicode to glyph id
#include <fontconfig.h>
#include <fcfreetype.h>
FT_UInt FcFreeTypeCharIndex
FT_Face face
FcChar32 ucs4
Description
Maps a Unicode char to a glyph index. This function uses information from
several possible underlying encoding tables to work around broken fonts.
As a result, this function isn't designed to be used in performance
sensitive areas; results from this function are intended to be cached by
higher level functions.
Version
Fontconfig version &version;
FcFreeTypeCharSet
3
FcFreeTypeCharSet
compute Unicode coverage
#include <fontconfig.h>
#include <fcfreetype.h>
FcCharSet * FcFreeTypeCharSet
FT_Face face
FcBlanks *blanks
Description
Scans a FreeType face and returns the set of encoded Unicode chars. This scans
several encoding tables to build as complete a list as possible.
If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
not in 'blanks' are not placed in the returned FcCharSet.
Version
Fontconfig version &version;
FcFreeTypeCharSetAndSpacing
3
FcFreeTypeCharSetAndSpacing
compute Unicode coverage and spacing type
#include <fontconfig.h>
#include <fcfreetype.h>
FcCharSet * FcFreeTypeCharSetAndSpacing
FT_Face face
FcBlanks *blanks
int *spacing
Description
Scans a FreeType face and returns the set of encoded Unicode chars.
This scans
several encoding tables to build as complete a list as possible.
If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
not in 'blanks' are not placed in the returned FcCharSet.
spacing receives the computed spacing type of the
font, one of FC_MONO for a font where all glyphs have the same width,
FC_DUAL, where the font has glyphs in precisely two widths, one twice as
wide as the other, or FC_PROPORTIONAL where the font has glyphs of many
widths.
Version
Fontconfig version &version;
FcFreeTypeQuery
3
FcFreeTypeQuery
compute pattern from font file (and index)
#include <fontconfig.h>
#include <fcfreetype.h>
FcPattern * FcFreeTypeQuery
const FcChar8 *file
int id
FcBlanks *blanks
int *count
Description
Constructs a pattern representing the 'id'th font in 'file'. The number
of fonts in 'file' is returned in 'count'.
Version
Fontconfig version &version;
FcFreeTypeQueryFace
3
FcFreeTypeQueryFace
compute pattern from FT_Face
#include <fontconfig.h>
#include <fcfreetype.h>
FcPattern * FcFreeTypeQueryFace
const FT_Face face
const FcChar8 *file
int id
FcBlanks *blanks
Description
Constructs a pattern representing 'face'. 'file' and 'id' are used solely as
data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
Version
Fontconfig version &version;