VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkFontConfigFreeTypeTools Class Reference

Subclass of vtkFreeTypeTools that uses system installed fonts. More...

#include <vtkFontConfigFreeTypeTools.h>

Inheritance diagram for vtkFontConfigFreeTypeTools:
Inheritance graph
[legend]
Collaboration diagram for vtkFontConfigFreeTypeTools:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkFreeTypeTools Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkFontConfigFreeTypeToolsNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkFontConfigFreeTypeToolsSafeDownCast (vtkObjectBase *o)
static vtkFontConfigFreeTypeToolsNew ()
static bool LookupFaceFontConfig (vtkTextProperty *tprop, FT_Library lib, FT_Face *face)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkFontConfigFreeTypeTools ()
 ~vtkFontConfigFreeTypeTools ()
FT_Error CreateFTCManager ()

Detailed Description

Subclass of vtkFreeTypeTools that uses system installed fonts.

vtkFontConfigFreeTypeTools defers to vtkFreeTypeTools for rendering and rasterization, but sources fonts from a FontConfig system lookup. If the lookup fails, the compiled fonts of vtkFreeType are used instead.

Warning:
Do not instantiate this class directly. Rather, call vtkFreeTypeTools::GetInstance() to ensure that the singleton design is correctly applied. Be aware that FontConfig lookup is disabled by default. To enable, call vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff();

Definition at line 39 of file vtkFontConfigFreeTypeTools.h.


Member Typedef Documentation

Reimplemented from vtkFreeTypeTools.

Definition at line 43 of file vtkFontConfigFreeTypeTools.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkFontConfigFreeTypeTools::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkFreeTypeTools.

virtual int vtkFontConfigFreeTypeTools::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkFreeTypeTools.

Reimplemented from vtkFreeTypeTools.

virtual vtkObjectBase* vtkFontConfigFreeTypeTools::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkFreeTypeTools.

Reimplemented from vtkFreeTypeTools.

virtual void vtkFontConfigFreeTypeTools::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkFreeTypeTools.

Creates a new object of this type, but it is not preferred to use this method directly. Instead, call vtkFreeTypeTools::GetInstance() and let the object factory create a new instance. In this way the singleton pattern of vtkFreeTypeTools is preserved.

Reimplemented from vtkObject.

static bool vtkFontConfigFreeTypeTools::LookupFaceFontConfig ( vtkTextProperty tprop,
FT_Library  lib,
FT_Face *  face 
) [static]

Modified version of vtkFreeTypeTools::LookupFace that locates FontConfig faces. Falls back to the Superclass method for compiled fonts if the FontConfig lookup fails.

FT_Error vtkFontConfigFreeTypeTools::CreateFTCManager ( ) [protected, virtual]

Reimplemented from Superclass to use the FontConfig face lookup callback.

Reimplemented from vtkFreeTypeTools.


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