public bool GetRectByCodePoint(int codepoint, out TextureFontGlyphData glyphdata) { if (!codePointLocations.TryGetValue(codepoint, out glyphdata)) { glyphdata = null; return false; } return true; }