Go to the documentation of this file.
28 #ifndef vtkFreeTypeTools_h
29 #define vtkFreeTypeTools_h
42 #include "vtk_freetype.h"
43 #include FT_FREETYPE_H
50 class vtkTextPropertyLookup;
85 FT_Library* GetLibrary();
106 int dpi,
int bbox[4]);
108 int dpi,
int bbox[4]);
151 int dpi,
int targetWidth,
int targetHeight);
154 int targetWidth,
int targetHeight);
159 static vtkTypeUInt16 HashString(const
char *str);
201 virtual FT_Error CreateFTCManager();
210 ImageMetaData &metaData);
220 ImageMetaData &metaData);
252 GLYPH_REQUEST_DEFAULT = 0,
253 GLYPH_REQUEST_BITMAP = 1,
254 GLYPH_REQUEST_OUTLINE = 2
259 int request = GLYPH_REQUEST_DEFAULT);
260 bool GetSize(
size_t tprop_cache_id,
int font_size, FT_Size *
size);
269 int request = GLYPH_REQUEST_DEFAULT);
273 int request = GLYPH_REQUEST_DEFAULT);
285 FT_Face &
face,
bool &face_has_kerning);
291 int prop_font_size, FT_UInt &gindex,
292 FT_BitmapGlyph &bitmap_glyph);
293 FT_Bitmap*
GetBitmap(FT_UInt32
c, FTC_Scaler scaler, FT_UInt &gindex,
294 FT_BitmapGlyph &bitmap_glyph);
300 int prop_font_size, FT_UInt &gindex,
301 FT_OutlineGlyph &outline_glyph);
302 FT_Outline*
GetOutline(FT_UInt32
c, FTC_Scaler scaler, FT_UInt &gindex,
303 FT_OutlineGlyph &outline_glyph);
346 template <
typename StringType>
347 bool RenderStringInternal(
vtkTextProperty *tprop,
const StringType &str,
353 template <
typename StringType>
354 bool StringToPathInternal(
vtkTextProperty *tprop,
const StringType &str,
361 template <
typename T>
362 bool CalculateBoundingBox(
const T& str, MetaData &metaData);
369 template <
typename StringType,
typename DataType>
370 bool PopulateData(
const StringType& str, DataType
data, MetaData &metaData);
376 template <
typename IteratorType,
typename DataType>
377 bool RenderLine(IteratorType begin, IteratorType
end,
int lineIndex,
378 DataType
data, MetaData &metaData);
384 template <
typename CharType>
385 bool RenderCharacter(CharType character,
int &
x,
int &
y,
388 template <
typename CharType>
389 bool RenderCharacter(CharType character,
int &
x,
int &
y,
398 template <
typename T>
399 int FitStringToBBox(
const T &str, MetaData &metaData,
int targetWidth,
410 void GetLineMetrics(T begin, T
end, MetaData &metaData,
int &
width,
GLsizei GLsizei GLenum GLenum const GLvoid * data
#define VTK_UNSIGNED_LONG_MAX
concrete dataset representing a path defined by Bezier curves.
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
GLint GLint GLint GLint GLint x
#define vtkSetClampMacro(name, type, min, max)
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
GLsizei const GLchar ** path
#define vtkGetMacro(name, type)
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
GLint GLint GLsizei width
vtkSetMacro(IgnoreDriverBugs, bool)
GLint GLint GLint GLint GLint GLint y
#define VTK_UNSIGNED_INT_MAX
Interface for generating images and path data from string data, using multiple backends.
GLenum GLuint GLint GLenum face
Wrapper around std::string to keep symbols short.
GLenum GLsizei GLenum GLenum const GLvoid * image
#define VTKRENDERINGFREETYPE_EXPORT