# MVTLabelGlyphs

class in `3d-tiles-renderer/three/plugins`, extends `MVTGlyphs`

```js
import { MVTLabelGlyphs } from '3d-tiles-renderer/three/plugins';
```

Renders text labels one glyph per character, laid out along each annotation's path. Characters are
rasterized into the atlas on demand, so a label's text may change at any time.

## Constructor

```js
new MVTLabelGlyphs( options?: Object )
```

- `options`, `Object`, optional
  - `size`, `number`, optional, default `16`: Glyph size in pixels.
  - `glyphSize`, `number`, optional: Atlas slot size in pixels (defaults to `16 * devicePixelRatio`).
  - `slotCount`, `number`, optional, default `64`: Initial atlas slot capacity ( grows as needed ).
  - `font`, `string | null`, optional, default `null`: Explicit CSS font string; overrides `fontFamily`.
  - `fontFamily`, `string`, optional, default `'sans-serif'`: Font family used to build the CSS font when
`font` isn't given.
  - `strokeStyle`, `string`, optional, default `'black'`: Outline color drawn under each glyph.
  - `strokeWidth`, `number`, optional, default `0`: Outline width in atlas pixels ( 0 disables the outline ).

## Methods

### .reset

```js
.reset(  )
```

Resets the cached glyphs content. Used when changing fonts or styles.

### .measureChar

```js
.measureChar( char: string ): number
```

Advance width of `char` in the label's size units, cached per character.

- `char`, `string`: The character to measure.

Returns `number`: The advance width.
