sprite-kitin-app-purchasesklabelnode

£ (Pound) Currency is not rendered by SKLabelNode in SpriteKit iOS 11.3.x


There is an In-app-Purchase screen where I have to display a button with text "unlock all £0.99" so that when player clicks that the In-app purchase moves forward.

The currency and localised price value are retrieved & populated from SKProduct.

Every other currencies which I have tested such as $, ¥, € renders fine the in label. However, when I use £ currency, the label just ignores that sign.

Is there are any workaround for it, other than reporting bug to apple at the moment?

No £ Sign rendered:

enter image description here

But shows in SKLabelNode.text:

enter image description here

Renders $ sign properly:

enter image description here


Solution

  • I found cause of the issue. The issue was with the Font that I was using in game. It failed to render certain currencies such as £. When I tried using Comic Sans MS font, all currency signs include £ appeared magically. So I end up using Comic Sans MS font for that button text which shows currency sign.