# TeXFonts class

Namespace: [Grasshopper2.UI.Typography](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.typography.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class TeXFonts
```

Collates a set of fonts and colours used in typesetting.

## Constructors

- [TeXFonts](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/ctor.md): Create a new TeX font aggregate from scratch.

## Properties

- [BodyFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/bodyfont.md): Gets the font to use for body text.
- [BodyTint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/bodytint.md): Gets the colour to use for body text.
- [CodeFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/codefont.md): Gets the font to use for (monospaced) code text.
- [CodeTint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/codetint.md): Gets the colour to use for (monospaced) code text.
- [MathFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/mathfont.md): Gets the font to use for math text.
- [MathTint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/mathtint.md): Gets the colour to use for math text.

## Methods

- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/default.md): (static) Create default TeX fonts.
- [Scale](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/scale.md): Scale the fonts by a certain factor.
- [Unify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/unify.md): Unify the math and code fonts so that they have the same size as the body font.
- [WithBodyFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/withbodyfont.md): Override the body font properties.
- [WithCodeFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/withcodefont.md): Override the code font properties.
- [WithMathFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texfonts/withmathfont.md): Override the math font properties.
