Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public CCFontAtlas(CCFont font)
 {
     Font = font;
     FontLetterDefinitions = new Dictionary <char, CCFontLetterDefinition>();
     AtlasTextures         = new Dictionary <int, CCTexture2D>();
 }
Exemplo n.º 4
0
 public CCFontAtlas (CCFont font)
 { 
     Font = font;
     FontLetterDefinitions = new Dictionary<char, CCFontLetterDefinition>();
     AtlasTextures = new Dictionary<int, CCTexture2D>();
 }