This ensures that a font will always be returned, but doesn't ensure that it is anything like the requested pattern.įont matching starts with an application constructed pattern. Lang String List of RFC-3066-style languages thisįontversion Int Version number of the fontĬapability String List of layout capabilities in the fontĮmbolden Bool Rasterizer should synthetically embolden the fontįONT MATCHING Fontconfig performs matching by measuring the distance from a provided pattern to all of the available fonts in the system. Minspace Bool Eliminate leading from line spacingĬharset CharSet Unicode chars encoded by the font Scale Double Scale factor for point->pixel conversions Scalable Bool Whether glyphs can be scaled Outline Bool Whether the glyphs are outlines Rasterizer String Which rasterizer is in use Index Int The index of the font within the fileįtface FT_Face Use the specified FreeType face object Globaladvance Bool Use font global advance dataįile String The filename holding the font Hinting Bool Whether the rasterizer should use hintingĪutohint Bool Use autohinter instead of normal hinter Spacing Int Proportional, dual-width, monospace or charcellĪntialias Bool Whether glyphs can be antialiased Weight Int Light, medium, demibold, bold or blackĪspect Double Stretches glyphs horizontally before hinting Stylelang String Languages corresponding to each styleįullname String Font full names (often includes style)įullnamelang String Languages corresponding to each fullname Others are provided as a convenience for the applications' rendering mechanism.įamilylang String Languages corresponding to each family Properties for font matching and font completion. Centralizing font configuration will simplify and regularize font installation and customization.įONT PROPERTIES While font patterns may contain essentially any properties, there are some well known properties with associated types. The hope is that this will ensure that configuration of fonts for all applications can be centralized in This library and a private configuration mechanism. The intent is to permit applications to pick and choose appropriate functionality from the library instead of forcing them to choose between XML was chosen as a configuration file format because it provides a format which is easy forĮxternal agents to edit while retaining the correct structure and syntax.įont configuration is separate from font matching applications needing to do their own matching can access the available fonts from the library and perform It is hoped that this will lead to more stableįont selection when passing names from one application to another. The intent is to make font configurations relatively static, and shared by as many applications as possible. Other mechanism provided to applications for changing the running configuration is to add fonts and directories to the list of application-provided font files. From an external perspective, configuration of the library consists of generating a valid XML tree and feeding that to FcConfigParse. Fontconfig contains two essential modules, the configuration module which builds an internal configuration from XML files and the matching module whichĪccepts font patterns and returns the nearest matching font.įONT CONFIGURATION The configuration module consists of the FcConfig datatype, libexpat and FcConfigParse which walks over an XML tree and amends a configuration with dataįound within.
0 Comments
Leave a Reply. |