What would be the best approach for outlining or dropshadowing a font?

后端 未结 10 1822
不思量自难忘°
不思量自难忘° 2020-12-14 11:00

I\'m not finding any support for dropshadow or outline of a font in Sprite Kit. For the dropshadow, I\'m guessing I could create a second SKLabelNode and offset it behind t

10条回答
  •  盖世英雄少女心
    2020-12-14 11:38

    Since iOS 11 SKLabelNode has attributedText property. You need to specify strokeColor, strokeWidth and don't forget font and foregroundColor.

提交回复
热议问题