# TeXSpacing 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 TeXSpacing
```

Collates a bunch of settings used during the glue-box model setup phase. Basically, it lists the standard spacing and penalties to be used when converting a body of text into a TeX stream.

## Properties

- [ClauseGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/clauseglue.md): Gets the inter-clause glue, for example following a comma, full stop, or semi-colon.
- [HyphenationPenalty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/hyphenationpenalty.md): Gets the penalty to insert at hyphenation points.
- [LastLineGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/lastlineglue.md): Gets the glue to use at the end of a paragraph.
- [LeadingLineBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/leadinglinebox.md): Gets the box to insert in front of the first word of every new paragraph. May be null.
- [MathGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/mathglue.md): Gets the ideal inter-symbol glue inside mathematical expressions.
- [ParagraphPenalty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/paragraphpenalty.md): Gets the penalty to append at the end of a paragraph.
- [TabGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/tabglue.md): Gets the glue to use for tab whitespace.
- [WordGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/wordglue.md): Gets the ideal inter-word glue.

## Methods

- [CreateFromFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/createfromfont.md): (static) Create a standard TeX spacing instance based on a specific font.
- [WithClauseGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withclauseglue.md): Set the clause spacing glue.
- [WithHyphenationPenalty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withhyphenationpenalty.md): Set the hyphenation penalty.
- [WithLastLineGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withlastlineglue.md): Set the last-line spacing glue.
- [WithLeadingBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withleadingbox.md): Set the leading box.
- [WithMathGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withmathglue.md): Set the math spacing glue.
- [WithParagraphPenalty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withparagraphpenalty.md): Set the paragraph ending penalty.
- [WithTabGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withtabglue.md): Set the tab spacing glue.
- [WithWordGlue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texspacing/withwordglue.md): Set the word spacing glue.
