VTK  9.3.20240329
vtkFontConfigFreeTypeTools.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
22 #ifndef vtkFontConfigFreeTypeTools_h
23 #define vtkFontConfigFreeTypeTools_h
24 
25 #include "vtkFreeTypeTools.h"
26 #include "vtkRenderingFreeTypeFontConfigModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKRENDERINGFREETYPEFONTCONFIG_EXPORT vtkFontConfigFreeTypeTools : public vtkFreeTypeTools
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
42 
48  static bool LookupFaceFontConfig(vtkTextProperty* tprop, FT_Library lib, FT_Face* face);
49 
50 protected:
53 
57  FT_Error CreateFTCManager() override;
58 
59 private:
61  void operator=(const vtkFontConfigFreeTypeTools&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif // vtkFontConfigFreeTypeTools_h
Subclass of vtkFreeTypeTools that uses system installed fonts.
FT_Error CreateFTCManager() override
Reimplemented from Superclass to use the FontConfig face lookup callback.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFontConfigFreeTypeTools * New()
Creates a new object of this type, but it is not preferred to use this method directly.
~vtkFontConfigFreeTypeTools() override
static bool LookupFaceFontConfig(vtkTextProperty *tprop, FT_Library lib, FT_Face *face)
Modified version of vtkFreeTypeTools::LookupFace that locates FontConfig faces.
FreeType library support.
a simple class to control print indentation
Definition: vtkIndent.h:108
represent text properties.