我们想要加粗的字符串是PlayTime,它以Unicode与外部url进行了转换,如下代码所示,而不是打印后的图片。
这是代码片段:
String BILL = "\n \uD835\uDC0F\uD835\uDC0B\uD835\uDC00\uD835\uDC18\uD835\uDC13\uD835\uDC08\uD835\uDC0C\uD835\uDC04 \n";
BILL = BILL + "Albert I Promenade 53 & 89 Oostende \n";
BILL = BILL + "0496 11 01 12 \n";
使用此链接将简单文本隐藏为粗体,结果是这样的:url used for converting string into bold
最佳答案
一种可能是控制序列的存在:
String wide = "\u001b!\u0020" + "PlayThing" + "\u001b!\u0000";
String emphasized = "\u001b!\u0008" + "PlayThing" + "\u001b!\u0000";
为此,将需要打印机的功能。