0

I'm trying to display a EUR currency amount to a UI.Window Text, so I try like this

var UI = require('ui');
var Vector2 = require('vector2');
var window = new UI.Window();

// Create TimeText
var euro = new UI.Text({
    position: new Vector2(0, 80),
    size: new Vector2(144, 30),
    text: '€ 245',
    font: 'gothic-14-bold'
});

window.add(euro);

While it's parsed correctly (console.log() of it displays € 245), but the euro sign is not displayed on the Pebble. So I tried to workaround like this

text: "\u20AC 245",

but this also fails. How can I display currency symbols correctly?

4

1 回答 1

0

似乎原生 Pebble 字体的字符集很窄。但是包括图像(或者可能嵌入字体?)是辅助解决方法。

于 2015-11-28T20:01:56.860 回答