Skip to content
pixi-silk
GitHub repository
Function

hasRtl

import { hasRtl } from 'pixi-silk/text/bidi';
function hasRtl(text: string): boolean;

True when the text holds a right-to-left character or a bidi control, so it needs the bidi pass.

Parameters#

ParameterType
textstring

Returns#

boolean