0

Is there a way to change a space between characters? Some ttf font strings look very compressed.

The maximum closest thing I've managed to find is cc.FontDefinition But it doesn't look like it contains anything specific I need.

heximal
  • 10,327
  • 5
  • 46
  • 69

1 Answers1

0

As far as I know there is no method to change space between characters but you can change letters position via accessing it.

label.getLetter(index);

returns the character as a sprite. And then you can set its position.

Cenkisabi
  • 1,066
  • 8
  • 25
  • unfortunately, it's available only for LabelBMFont (not for LabelTTF) – heximal Jun 11 '18 at 10:58
  • 1
    we use it in our games already. if you create your label just like: Label *label = Label::createWithTTF("text", "font", fontsize); Then you can use getLetter(). There is no problem. – Cenkisabi Jun 12 '18 at 12:43
  • oh, I see, you're talking about c++. i didn't find getLetter wrapper in js binding. – heximal Jun 13 '18 at 11:24