阅读背景:

如何 - 准确地测量drawTextOnPath()在画布上绘制的文本的像素大小

来源:互联网 

I'm using drawTextOnPath() to display some text on a Canvas and I need to know the dimensions of the text being drawn. I know this is not feasible for paths composed of multiple segments, curves, etc. but my path is a single segment which is perfectly horizontal. I am using Paint.getTextBounds() to get a Rect with the dimensions of the text I want to draw.I'm using drawTextOnPath() to display some text




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: