Check if custom font can display character

前端 未结 6 973
感情败类
感情败类 2020-12-06 17:14

I have a custom font which is displaying the box character. The font I am using does not support all languages apparently. I want to check if the String I am about to displa

6条回答
  •  攒了一身酷
    2020-12-06 17:45

    please check the source code from Googles Mozc project. The EmojiRenderableChecker class seems to work pretty well!

    it's like a compat version for Paint.hasGlypgh (added in Marshmallow).

提交回复
热议问题