# GH_TextRenderingConstants module

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public module GH_TextRenderingConstants
```

Contains app wide text-rendering constants. When you are drawing your own texts use these constants instead of TextRenderingHint::****

## Properties

- [CenterCenter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textrenderingconstants/centercenter.md): (static) Gets the String format for Center Center alignment. Do not dispose or modify this StringFormat instance.
- [FarCenter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textrenderingconstants/farcenter.md): (static) Gets the String format for Far (horizontal) Center (vertical) alignment. Do not dispose or modify this StringFormat instance.
- [GH_CrispText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textrenderingconstants/gh-crisptext.md): (static) Gets the Grasshopper default text rendering hint for crisply drawn strings. By default this hint is TextRenderingHint.ClearTypeGridFit, but it can be changed in the settings.
- [GH_SmoothText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textrenderingconstants/gh-smoothtext.md): (static) Gets the Grasshopper default text rendering hint for smoothly drawn strings. By default this hint is TextRenderingHint.AntiAlias, but it can be changed in the settings.
- [NearCenter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textrenderingconstants/nearcenter.md): (static) Gets the String format for Near (horizontal) Center (vertical) alignment. Do not dispose or modify this StringFormat instance.

## Methods

- [StringFormat](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textrenderingconstants/stringformat.md): (static) Get a precooked StringFormat instance. Do not modify or dispose instances returned by this method. The format uses NoWrap flags and EllipsisCharacter trimming.
