VTK  9.4.20250322
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
28VTK_ABI_NAMESPACE_BEGIN
29class VTKRENDERINGFREETYPEFONTCONFIG_EXPORT vtkFontConfigFreeTypeTools : public vtkFreeTypeTools
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
42
48 static bool LookupFaceFontConfig(vtkTextProperty* tprop, FT_Library lib, FT_Face* face);
49
50protected:
53
57 FT_Error CreateFTCManager() override;
58
59private:
61 void operator=(const vtkFontConfigFreeTypeTools&) = delete;
62};
63
64VTK_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.
~vtkFontConfigFreeTypeTools() override
static bool LookupFaceFontConfig(vtkTextProperty *tprop, FT_Library lib, FT_Face *face)
Modified version of vtkFreeTypeTools::LookupFace that locates FontConfig faces.
static vtkFontConfigFreeTypeTools * New()
Creates a new object of this type, but it is not preferred to use this method directly.
FreeType library support.
a simple class to control print indentation
Definition vtkIndent.h:108
represent text properties.