ReCreateJS / txtjs

A <canvas> font and typesetting engine for @CreateJS.
https://recreatejs.github.io/txtjs
BSD 2-Clause "Simplified" License
8 stars 3 forks source link

Missing ligatures example / test #5

Open jedateach opened 4 years ago

jedateach commented 4 years ago

The library supposedly supports liguatures, but the feature doesn't appear to be demonstrated.

Supposedly ligatures can be loaded according to the font loader: https://github.com/ReCreateJS/txtjs/blob/0fc35ac3a4764a3af4129f38658b878258c31c53/src/FontLoader.ts#L193

These examples are named as such: https://recreatejs.github.io/txtjs/examples/#Text/ligatures, and https://recreatejs.github.io/txtjs/examples/#CharacterText/ligatures. It uses the 'lobster' font, but the corresponding font file doesn't appear to contain ligature data: https://github.com/ReCreateJS/txtjs/blob/0fc35ac3a4764a3af4129f38658b878258c31c53/font/lobster.txt#L347

I'm not sure why this is.

quentint commented 4 years ago

I supposed you've seen this: https://github.com/diverted247/txtjs/issues/19#issuecomment-218723654

I might have some time to work on ligatures. Will keep you posted.

jedateach commented 4 years ago

No I didn't, thanks for pointing it out