小编Dyl*_*uwe的帖子

Libgdx如何获取文本的总宽度?(BitmapFont)

如何获取BitmapFont文本的总宽度?

font.draw(batch, text ,Gdx.graphics.getWidth() / 2 - /* text width */ /2,450);
Run Code Online (Sandbox Code Playgroud)

fonts android libgdx

2
推荐指数
1
解决办法
1871
查看次数

标签 统计

android ×1

fonts ×1

libgdx ×1