Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TextGenerationSettings.alignByGeometry

public bool alignByGeometry;

Description

Use the extents of glyph geometry to perform horizontal alignment rather than glyph metrics.

This can result in better fitting left and right alignment, but may result in incorrect positioning when attempting to overlay multiple fonts (such as a specialized outline font) on top of each other.