-
- Downloads
ENH: Add vtkTextProperty::UseTightBoundingBox to center a label to anchor.
This property allows the user to center the string to the anchor point. By default, the bounding box for the string is computed using the font metrics which includes ascents and descents. As descents might not be present in the string, the label will not be perfectly centered on the anchor point. Setting this property on will compute the bounding box using the current string rather than the font metric. This results in perfectly centered labels. This does not work well for temporal data if the string changes as it results in text that moves around.
Showing
- Rendering/Core/vtkTextProperty.cxx 1 addition, 0 deletionsRendering/Core/vtkTextProperty.cxx
- Rendering/Core/vtkTextProperty.h 10 additions, 0 deletionsRendering/Core/vtkTextProperty.h
- Rendering/FreeType/Testing/Python/multiLineText.py 112 additions, 4 deletionsRendering/FreeType/Testing/Python/multiLineText.py
- Rendering/FreeType/Testing/Tcl/multiLineText.tcl 120 additions, 6 deletionsRendering/FreeType/Testing/Tcl/multiLineText.tcl
- Rendering/FreeType/vtkFreeTypeTools.cxx 38 additions, 12 deletionsRendering/FreeType/vtkFreeTypeTools.cxx
- Rendering/FreeType/vtkFreeTypeTools.h 3 additions, 1 deletionRendering/FreeType/vtkFreeTypeTools.h
Loading
Please register or sign in to comment