Android的,文字/字体呈现为正方形 [英] Android, Text / Font renders as Squares

查看:398
本文介绍了Android的,文字/字体呈现为正方形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图通过我的程序共享图像,共享菜单有时会出来这样看。

When I try sharing an image through my program, the share menu sometimes comes out looking like this.

一些注意事项:

1),这似乎并没有发生在第一次运行,但只有在我已经暂停的应用程序,并走了回来

1) It doesn't seem to occur on the first run, but only after I have paused the application and gone back in.

2)我的应用程序使用OpenGL广泛。这是可能的,我改变共享设置,则没有返回值恢复到原来的。

2) My app uses OpenGL extensively. It is possible I am changing a shared setting, then not returning the value back to the original.

3)在我的应用其他一切工作正常。

3) Everything else in my application works fine.

4)我曾尝试删除所有允许透明的叫声,我仍然有这个问题。

4) I have tried removing all the calls that allow transparencies, and I am still having this problem.

推荐答案

我有这个问题了。我使用的是GLES 2.0范围内,我一直能只有这样,才能得到这种摆脱......(它会听起来不可思议)是没有要求

I have this problem too. I am using a GLES 2.0 context, the only way I have been able to get rid of this... (it's going to sound weird) is by NOT calling

GLES20.glDeleteTextures(hTextures.length,hTextures,0)

GLES20.glDeleteTextures ( hTextures.length, hTextures, 0 );

这不是发生在我开始清理我的纹理,它已不会再因为删除它发生了。我不知道为什么,这将是关系吗?

It wasn't happening before I started clearing up my textures, and it hasn't happened again since removing it. I have no idea why that would be though?

我也不能肯定不释放我的纹理所带来的后果的。

I'm also not sure of the ramifications of not releasing my textures.

如果任何人都可以摆脱对此事的光,那简直太好了,有问题漂浮了几个版本。这对Android的,一切都在统一的问题出现。

If anyone can shed light on the matter, that'd be great, there's a few versions of questions floating around. Appears it's a problem in Unity for android and everything.

这篇关于Android的,文字/字体呈现为正方形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆