Пример #1
0
        int getDescent(BitmapFontFile fontFile, int padBottom)
        {
            var descent = 0;

            foreach (var c in fontFile.chars)
            {
                if (c.width > 0 && c.height > 0)
                {
                    descent = Math.Min(fontFile.common.base_ + c.yOffset + fontFile.info.outLine, descent);
                }
            }

            return(descent + padBottom);
        }
Пример #2
0
        int GetDescent(BitmapFontFile fontFile, int padBottom)
        {
            var descent = 0;

            foreach (var c in fontFile.Chars)
            {
                if (c.Width > 0 && c.Height > 0)
                {
                    descent = Math.Min(fontFile.Common.Base_ + c.YOffset + fontFile.Info.OutLine, descent);
                }
            }

            return(descent + padBottom);
        }
Пример #3
0
 public BitmapFontProcessorResult(BitmapFontFile fontFile)
 {
     this.FontFile = fontFile;
 }
Пример #4
0
		public BitmapFontProcessorResult( BitmapFontFile fontFile )
		{
			this.fontFile = fontFile;
		}