pixi-cjk

CJK support for Pixi.js

Usage no npm install needed!

<script type="module">
  import pixiCjk from 'https://cdn.skypack.dev/pixi-cjk';
</script>

README

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