cheshirekow
v0.1.0
|
Namespaces | |
endian | |
hint | |
key | |
lang | |
lcd | |
match | |
name | |
op | |
qual | |
result | |
rgba | |
setname | |
slant | |
str | |
type | |
weight | |
width | |
Classes | |
struct | Atomic |
traits class for FcAtomic wrapper Used for locking access to configuration files. Provides a safe way to update configuration files. More... | |
class | AtomicDelegate |
Used for locking access to configuration files. Provides a safe way to update configuration files. More... | |
struct | Blanks |
traits class for FcBlanks. holds a list of Unicode chars which are expected to be blank More... | |
class | BlanksDelegate |
holds a list of Unicode chars which are expected to be blank More... | |
struct | Cache |
traits class for FcCache Holds information about the fonts contained in a single directory. More... | |
class | CacheDelegate |
Holds information about the fonts contained in a single directory. More... | |
struct | CharSet |
Traits class for a charset. An CharSet is an abstract type that holds the set of encoded Unicode chars in a font. Operations to build and compare these sets are provided. More... | |
class | CharSetDelegate |
An CharSet is an abstract type that holds the set of encoded Unicode chars in a font. Operations to build and compare these sets are provided. More... | |
struct | Config |
class | ConfigDelegate |
holds a complete configuration of the library; More... | |
struct | Constant |
class | ConstantDelegate |
class | ConstantList |
utility class for building a static list of ObjectTypes, replaces static allocation of a list of FcObjectType objects More... | |
class | ConstCPtr |
acts like a const c-pointer by overloading the ->() operator, but is not copyable and doesn't allow the underlying c-pointer to be copied More... | |
class | CPtr |
acts like a c-pointer by overloading the ->() operator, but is not copyable and doesn't allow the underlying c-pointer to be copied More... | |
struct | FontSet |
An FcFontSet simply holds a list of patterns; these are used to return the results of listing available fonts. More... | |
class | FontSetDelegate |
An FcFontSet simply holds a list of patterns; these are used to return the results of listing available fonts. More... | |
struct | LangSet |
class | LangSetDelegate |
An LangSet is an abstract type that holds the set of languages supported by a font. More... | |
struct | LValuePair |
allows an error to be returned with a result in a single expression More... | |
struct | Matrix |
wraps FcMatrix with it's member methods More... | |
struct | ObjectSet |
class | ObjectSetDelegate |
holds a set of names and is used to specify which fields from fonts are placed in the the list of returned patterns when listing fonts. More... | |
struct | ObjectType |
class | ObjectTypeDelegate |
wraps FcObjectType More... | |
class | ObjectTypeList |
utility class for building a static list of ObjectTypes, replaces static allocation of a list of FcObjectType objects More... | |
struct | Pattern |
traits class for FcPattern holds a set of names with associated value lists; More... | |
class | PatternDelegate |
holds a set of names with associated value lists; More... | |
class | RefPtr |
object which acts like a c-pointer, but when dereferenced returns a delegate object which adds methods to the pointer More... | |
struct | RValuePair |
allows an error to be returned with a result in a single expression More... | |
class | String |
class | StringOther |
struct | StringOther< Char8_t * > |
struct | StringOther< const Char8_t * > |
struct | StrList |
class | StrListDelegate |
used during enumeration to safely and correctly walk the list of strings even while that list is edited in the middle of enumeration. More... | |
struct | StrSet |
class | StrSetDelegate |
holds a list of strings that can be appended to and enumerated. More... | |
struct | TypeMap |
Ensures typesafety of pattern add,get by mapping property keys to their type in a compile-time queriable map. More... | |
Typedefs | |
typedef int | Bool_t |
typedef unsigned short | Char16_t |
typedef unsigned int | Char32_t |
typedef unsigned char | Char8_t |
typedef String< const Char8_t * > | ConstString_t |
typedef endian::Endian | Endian_t |
typedef key::Key | Key_t |
typedef lang::Result | LangResult_t |
typedef match::MatchKind | MatchKind_t |
typedef int | Object_t |
typedef op::Op | Op_t |
typedef qual::Qual | Qual_t |
typedef result::Result | Result_t |
typedef setname::SetName | SetName_t |
typedef String< Char8_t * > | String_t |
typedef type::Type | Type_t |
Variables | |
const char *const | ANTIALIAS = "antialias" |
Bool (depends) More... | |
const char *const | ASPECT = "aspect" |
Double. More... | |
const char *const | AUTOHINT = "autohint" |
Bool (false) More... | |
const char *const | CACHE_SUFFIX = ".cache-3" |
const char *const | CACHE_VERSION = "3" |
const char *const | CAPABILITY = "capability" |
String. More... | |
const char *const | CHAR_HEIGHT = "charheight" |
Int. More... | |
const char *const | CHAR_WIDTH = "charwidth" |
Int. More... | |
const char *const | CHARSET = "charset" |
CharSet. More... | |
const char *const | DECORATIVE = "decorative" |
Bool - true if style is a decorative variant. More... | |
const char *const | DIR_CACHE_FILE = "fonts.cache-3" |
const char *const | DPI = "dpi" |
double More... | |
const char *const | EMBEDDED_BITMAP = "embeddedbitmap" |
Bool - true to enable embedded bitmaps. More... | |
const char *const | EMBOLDEN = "embolden" |
Bool - true if emboldening needed. More... | |
const char *const | FAMILY = "family" |
property keys More... | |
const char *const | FAMILYLANG = "familylang" |
String RFC 3066 langs. More... | |
const char *const | FILE = "file" |
String. More... | |
const char *const | FONTFORMAT = "fontformat" |
String. More... | |
const char *const | FONTVERSION = "fontversion" |
Int from 'head' table. More... | |
const char *const | FOUNDRY = "foundry" |
String. More... | |
const char *const | FT_FACE = "ftface" |
FT_Face. More... | |
const char *const | FULLNAME = "fullname" |
String. More... | |
const char *const | FULLNAMELANG = "fullnamelang" |
String RFC 3066 langs. More... | |
const char *const | GLOBAL_ADVANCE = "globaladvance" |
Bool (true) More... | |
const char *const | HINT_STYLE = "hintstyle" |
Int. More... | |
const char *const | HINTING = "hinting" |
Bool (true) More... | |
const char *const | INDEX = "index" |
Int. More... | |
const char *const | LANG = "lang" |
String RFC 3066 langs. More... | |
const char *const | LCD_FILTER = "lcdfilter" |
Int. More... | |
const unsigned int | MAJOR = 2 |
const char *const | MATRIX = "matrix" |
FcMatrix. More... | |
const unsigned int | MINOR = 10 |
const char *const | MINSPACE = "minspace" |
Bool use minimum line spacing. More... | |
const char *const | NAMELANG = "namelang" |
String RFC 3866 langs. More... | |
const char *const | OUTLINE = "outline" |
Bool. More... | |
const char *const | PIXEL_SIZE = "pixelsize" |
Double. More... | |
const char *const | RASTERIZER = "rasterizer" |
String. More... | |
const unsigned int | REVISION = 0 |
const char *const | RGBA = "rgba" |
Int. More... | |
const char *const | SCALABLE = "scalable" |
Bool. More... | |
const char *const | SCALE = "scale" |
double More... | |
const char *const | SIZE = "size" |
Double. More... | |
const char *const | SLANT = "slant" |
Int. More... | |
const char *const | SOURCE = "source" |
String (deprecated) More... | |
const char *const | SPACING = "spacing" |
Int. More... | |
const char *const | STYLE = "style" |
String. More... | |
const char *const | STYLELANG = "stylelang" |
String RFC 3066 langs. More... | |
const char *const | USER_CACHE_FILE = ".fonts.cache-3" |
const unsigned int | UTF8_MAX_LEN = 6 |
const unsigned int | VERSION = ((MAJOR * 10000) + (MINOR * 100) + (REVISION)) |
const char *const | VERTICAL_LAYOUT = "verticallayout" |
Bool (false) More... | |
const char *const | WEIGHT = "weight" |
Int. More... | |
const char *const | WIDTH = "width" |
Int. More... | |
typedef int fontconfig::Bool_t |
typedef unsigned short fontconfig::Char16_t |
typedef unsigned int fontconfig::Char32_t |
typedef unsigned char fontconfig::Char8_t |
typedef String<const Char8_t*> fontconfig::ConstString_t |
typedef endian::Endian fontconfig::Endian_t |
typedef key::Key fontconfig::Key_t |
typedef lang::Result fontconfig::LangResult_t |
typedef int fontconfig::Object_t |
typedef op::Op fontconfig::Op_t |
typedef qual::Qual fontconfig::Qual_t |
typedef result::Result fontconfig::Result_t |
typedef String<Char8_t*> fontconfig::String_t |
typedef type::Type fontconfig::Type_t |
Char32_t fontconfig::CharIndex | ( | ft::RefPtr< ft::Face > | face, |
Char32_t | ucs4 | ||
) |
map Unicode to glyph id
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.
RefPtr<CharSet> fontconfig::CharSetAndSpacing | ( | ft::RefPtr< ft::Face > | , |
RefPtr< Blanks > | blanks, | ||
int * | spacing | ||
) |
compute Unicode coverage and spacing type
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.
bool fontconfig::dirScan | ( | RefPtr< FontSet > | set, |
RefPtr< StrSet > | dirs, | ||
RefPtr< Blanks > | blanks, | ||
const Char8_t * | dir, | ||
bool | force | ||
) |
scan a font directory without caching it
If cache is not zero or if force is FcFalse, this function currently returns FcFalse. Otherwise, it scans an entire directory and adds all fonts found to set. Any subdirectories found are added to dirs. Calling this function does not create any cache files. Use FcDirCacheRead() if caching is desired.
fontconfig::FCMM_MAP_KEY | ( | FAMILY | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | STYLE | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | SLANT | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | WEIGHT | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | SIZE | , |
double | |||
) |
fontconfig::FCMM_MAP_KEY | ( | ASPECT | , |
double | |||
) |
fontconfig::FCMM_MAP_KEY | ( | PIXEL_SIZE | , |
double | |||
) |
fontconfig::FCMM_MAP_KEY | ( | SPACING | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FOUNDRY | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | ANTIALIAS | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | HINTING | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | HINT_STYLE | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | VERTICAL_LAYOUT | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | AUTOHINT | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | GLOBAL_ADVANCE | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | WIDTH | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FILE | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | INDEX | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | RASTERIZER | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | OUTLINE | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | SCALABLE | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | SCALE | , |
double | |||
) |
fontconfig::FCMM_MAP_KEY | ( | DPI | , |
double | |||
) |
fontconfig::FCMM_MAP_KEY | ( | RGBA | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | MINSPACE | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | SOURCE | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | CHARSET | , |
CharSet | |||
) |
fontconfig::FCMM_MAP_KEY | ( | LANG | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FONTVERSION | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FULLNAME | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FAMILYLANG | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | STYLELANG | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FULLNAMELANG | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | CAPABILITY | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | FONTFORMAT | , |
const Char8_t * | |||
) |
fontconfig::FCMM_MAP_KEY | ( | EMBOLDEN | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | EMBEDDED_BITMAP | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | DECORATIVE | , |
bool | |||
) |
fontconfig::FCMM_MAP_KEY | ( | LCD_FILTER | , |
int | |||
) |
fontconfig::FCMM_MAP_KEY | ( | NAMELANG | , |
const Char8_t * | |||
) |
bool fontconfig::fileIsDir | ( | const Char8_t * | file | ) |
check whether a file is a directory
Returns FcTrue if file is a directory, otherwise returns FcFalse.
bool fontconfig::fileScan | ( | RefPtr< FontSet > | set, |
RefPtr< StrSet > | dirs, | ||
RefPtr< Blanks > | blanks, | ||
const Char8_t * | file, | ||
bool | force | ||
) |
scan a font file
Scans a single file and adds all fonts found to set. If force is FcTrue, then the file is scanned even if associated information is found in cache. If file is a directory, it is added to dirs. Whether fonts are found depends on fontconfig policy as well as the current configuration. Internally, fontconfig will ignore BDF and PCF fonts which are not in Unicode (or the effectively equivalent ISO Latin-1) encoding as those are not usable by Unicode-based applications. The configuration can ignore fonts based on filename or contents of the font file itself. Returns FcFalse if any of the fonts cannot be added (due to allocation failure). Otherwise returns FcTrue.
void fontconfig::fini | ( | ) |
finalize fontconfig library
Frees all data structures allocated by previous calls to fontconfig functions. Fontconfig returns to an uninitialized state, requiring a new call to one of the FcInit functions before any other fontconfig function may be called.
RefPtr<CharSet> fontconfig::GetCharSet | ( | ft::RefPtr< ft::Face > | face, |
RefPtr< Blanks > | blanks | ||
) |
compute Unicode coverage
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.
int fontconfig::getVersion | ( | ) |
library version number
Returns the version number of the library.
bool fontconfig::init | ( | ) |
initialize fontconfig library
Loads the default configuration file and the fonts referenced therein and sets the default configuration to that result. Returns whether this process succeeded or not. If the default configuration has already been loaded, this routine does nothing and returns FcTrue.
bool fontconfig::initBringUptoDate | ( | ) |
reload configuration files if needed
Checks the rescan interval in the default configuration, checking the configuration if the interval has passed and reloading the configuration if when any changes are detected. Returns FcFalse if the configuration cannot be reloaded (see FcInitReinitialize). Otherwise returns FcTrue.
load configuration
Loads the default configuration file and returns the resulting configuration. Does not load any font information.
load configuration and font data
Loads the default configuration file and builds information about the available fonts. Returns the resulting configuration.
bool fontconfig::initReinitialize | ( | ) |
re-initialize library
Forces the default configuration file to be reloaded and resets the default configuration. Returns FcFalse if the configuration cannot be reloaded (due to configuration file errors, allocation failures or other issues) and leaves the existing configuration unchanged. Otherwise returns FcTrue.
Matrix fontconfig::operator* | ( | const Matrix & | a, |
const Matrix & | b | ||
) |
multiply matricies
bool fontconfig::operator== | ( | const Matrix & | a, |
const Matrix & | b | ||
) |
test for equality
RefPtr<Pattern> fontconfig::Query | ( | const Char8_t * | file, |
int | id, | ||
RefPtr< Blanks > | blanks, | ||
int * | count | ||
) |
compute pattern from font file (and index)
Constructs a pattern representing the 'id'th font in 'file'. The number of fonts in 'file' is returned in 'count'.
RefPtr<Pattern> fontconfig::QueryFace | ( | const ft::RefPtr< ft::Face > & | face, |
const Char8_t * | file, | ||
int | id, | ||
RefPtr< Blanks > | blanks | ||
) |
compute pattern from FT_Face
Constructs a pattern representing 'face'. 'file' and 'id' are used solely as data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
const char* const fontconfig::ANTIALIAS = "antialias" |
const char* const fontconfig::AUTOHINT = "autohint" |
const char* const fontconfig::CACHE_VERSION = "3" |
Current font cache file format version This is appended to the cache files so that multiple versions of the library will peacefully coexist
Change this value whenever the disk format for the cache file changes in any non-compatible way. Try to avoid such changes as it means multiple copies of the font information.
const char* const fontconfig::CAPABILITY = "capability" |
const char* const fontconfig::CHAR_HEIGHT = "charheight" |
const char* const fontconfig::CHAR_WIDTH = "charwidth" |
const char* const fontconfig::DECORATIVE = "decorative" |
const char* const fontconfig::DIR_CACHE_FILE = "fonts.cache-3" |
const char* const fontconfig::EMBEDDED_BITMAP = "embeddedbitmap" |
const char* const fontconfig::EMBOLDEN = "embolden" |
const char* const fontconfig::FAMILY = "family" |
const char* const fontconfig::FAMILYLANG = "familylang" |
const char* const fontconfig::FONTFORMAT = "fontformat" |
const char* const fontconfig::FONTVERSION = "fontversion" |
const char* const fontconfig::FULLNAME = "fullname" |
const char* const fontconfig::FULLNAMELANG = "fullnamelang" |
const char* const fontconfig::GLOBAL_ADVANCE = "globaladvance" |
const char* const fontconfig::HINTING = "hinting" |
const char* const fontconfig::LANG = "lang" |
const char* const fontconfig::LCD_FILTER = "lcdfilter" |
const char* const fontconfig::MINSPACE = "minspace" |
const char* const fontconfig::NAMELANG = "namelang" |
const char* const fontconfig::PIXEL_SIZE = "pixelsize" |
const char* const fontconfig::RASTERIZER = "rasterizer" |
const char* const fontconfig::SOURCE = "source" |
const char* const fontconfig::STYLELANG = "stylelang" |
const char* const fontconfig::USER_CACHE_FILE = ".fonts.cache-3" |
const char* const fontconfig::VERTICAL_LAYOUT = "verticallayout" |