LogoPixi’VN
pixi-jsType aliases

Type Alias: AnyTextStyle

> AnyTextStyle = TextStyle | HTMLTextStyle

Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:38

A union of all text styles, including HTML, Bitmap and Canvas text styles. This is used to allow for any text style to be passed to a text object.

Example

import { TextStyle, HTMLTextStyle } from 'pixi.js';
const style: AnyTextStyle = new TextStyle({ fontSize: 24 });
const htmlStyle: AnyTextStyle = new HTMLTextStyle({ fontSize: '24px' });

Standard

See

  • TextStyle
  • HTMLTextStyle