public CCTLTextLayout(CCLabel label) { this.label = label; this.fontAtlas = label.FontAtlas; this.font = label.FontAtlas.Font; this.text = label.Text; // Obtain the kernings for the text. ComputeHorizontalKernings(this.text); // Flag the possible line breaks base on the current label text. LineBreak(this.text); }
public CCFontAtlas(CCFont font) { Font = font; FontLetterDefinitions = new Dictionary <char, CCFontLetterDefinition>(); AtlasTextures = new Dictionary <int, CCTexture2D>(); }
public CCFontAtlas (CCFont font) { Font = font; FontLetterDefinitions = new Dictionary<char, CCFontLetterDefinition>(); AtlasTextures = new Dictionary<int, CCTexture2D>(); }