# Function: showText() (/jsdoc/pixi-vn/index/functions/showText)



\> **showText**(`alias`, `text`, `options?`): [`Text`](/jsdoc/pixi-vn/index/classes/Text)

Defined in: [src/canvas/functions/text-utility.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/canvas/functions/text-utility.ts#L14)

Add and show a text in the canvas.

Parameters [#parameters]

alias [#alias]

`string`

The unique alias of the text. You can use this alias to refer to this text.

text [#text]

`string`

options? [#options]

`Omit`\<[`TextOptions`](/jsdoc/pixi-vn/index/interfaces/TextOptions), `"text"`>

The options of the text.

Returns [#returns]

[`Text`](/jsdoc/pixi-vn/index/classes/Text)

A promise that is resolved when the text is loaded.

Example [#example]

```typescript
let text = showText("text", "Hello World", { fontSize: 24, fill: "white" })
```
