本文介绍了消失的ChangeableText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有问题.当我创建一个可更改的文本时,一些字母消失了.我尝试使用服务器字体,并且没有改变!

I have a problem. When i create a changeable text then some letters disappears. I tried with sever fonts and it's not changing!

代码段:

字体:

FontFactory.setAssetBasePath("font/");
this.mFontTexture = new BitmapTextureAtlas(256, 256, TextureOptions.BILINEAR_PREMULTIPLYALPHA);

可变文本:

ChangeableText ty = new ChangeableText(20, CAMERA_HEIGHT / 2 - 80, mFont, "Game over!");
this.mScene.attachChild(ty);

推荐答案

BitmapTextureAtlas太小时,我有了它.尝试将其放大(也许是512x512),这也取决于字体大小.

I had it when the BitmapTextureAtlas was too small. Try making it larger (Maybe 512x512), it also depends on the font size.

这篇关于消失的ChangeableText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 07:55