VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkFontConfigFreeTypeTools.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00033 #ifndef __vtkFontConfigFreeTypeTools_h 00034 #define __vtkFontConfigFreeTypeTools_h 00035 00036 #include "vtkRenderingFreeTypeFontConfigModule.h" // For export macro 00037 #include "vtkFreeTypeTools.h" 00038 00039 class VTKRENDERINGFREETYPEFONTCONFIG_EXPORT vtkFontConfigFreeTypeTools: 00040 public vtkFreeTypeTools 00041 { 00042 public: 00043 vtkTypeMacro(vtkFontConfigFreeTypeTools, vtkFreeTypeTools); 00044 virtual void PrintSelf(ostream &os, vtkIndent indent); 00045 00050 static vtkFontConfigFreeTypeTools *New(); 00051 00053 00056 static bool LookupFaceFontConfig(vtkTextProperty *tprop, FT_Library lib, 00057 FT_Face *face); 00059 00060 protected: 00061 vtkFontConfigFreeTypeTools(); 00062 ~vtkFontConfigFreeTypeTools(); 00063 00066 FT_Error CreateFTCManager(); 00067 00068 private: 00069 vtkFontConfigFreeTypeTools(const vtkFontConfigFreeTypeTools &); // Not implemented. 00070 void operator=(const vtkFontConfigFreeTypeTools &); // Not implemented. 00071 }; 00072 00073 #endif //__vtkFontConfigFreeTypeTools_h