public GlyphManager()
{
glyphSubTextures = new Dictionary<GlyphId, SubTexture>();
glyphInfos = new Dictionary<GlyphId, Glyph>();
textureAtlas = new TextureAtlas(512,PixelFormat.R8G8B8);
textMaterial = Material.Create(Allocator.GetHeap(), "TextMaterial");
var mat = textMaterial.Resolve();
mat.BackfaceCulling = false;
mat.SetBlending(BlendSource.SourceAlpha, BlendDestination.InverseSourceAlpha);
mat.SetShader("Text");
mat.SetTexture(0, textureAtlas.AtlasImageHandle);
mat.GetTextureUnit(0).WrapMode = TextureWrapMode.ClampToEdge;
}