pixi-cjk

CJK support for Pixi.js


Keywords
pixi, pixi.js, cjk, Chinese, Japanese, Korean, word-wrap, pixi-cjk, pixijs, text
License
MIT
Install
npm install pixi-cjk@0.2.5

Documentation

PIXI CJK

pixi-cjk is a plugin for Pixi.js to display the Chinese/Japanese/Korean correctly

Features

  • prevent illegal break-lines in CJK (which also called kinsoku-shori)
  • prevent unneeded breaking space when follwoing by CJK character

Setup

npm install pixi-cjk

Usage

Apply the Text style with breakWords: true, then improt the plugin. It should cover the CJK styling for you.

import 'pixi-cjk';

How it works

Example

before-after