1 ,ˆl–ßi~”ÔD¨  »‚Á2¦-ÿà „ áuï_‡I|¥‰ÓMÃÂ?÷ FreeType Design / IV

FreeType Design / IV

IV. Module Classes

We will now try to explain more precisely the types of modules that FreeType 2 is capable of managing.

  • Renderer modules manage scalable glyph images. This means transforming them, computing their bounding box, and converting them to either monochrome or anti-aliased bitmaps.

    Note that FreeType 2 is capable of dealing with any kind of glyph images, as long as a renderer module is provided for it. The library comes by default with two renderers.

    raster

    Supports the conversion of vectorial outlines (described by an FT_Outline object) to monochrome bitmaps.

    smooth

    Supports the conversion of the same outlines to anti-aliased pixmaps (using 256 levels of gray). Note that this renderer also supports direct span generation, this is, it provides a hook into the engine so that the application can manipulate the rendering results itself, instead of letting the rasterizer fill a pixmap. See this tutorial demo file for an example.

  • Font driver modules support one or more specific font formats. Here is a list with the most important ones.

    truetype

    TrueType fonts.