Example #1
0
 public void LoadFont(string path, int startChar)
 {
     List<int> listChars = new List<int>();
     FontSheet sheet = new FontSheet();
     sheet.LoadFont(path, startChar, ref listChars, ref mCharHeight, ref mSpace);
     for (int i = 0; i < listChars.Count; i++)
     {
         mCharToVertIndexMap.Add(listChars[i], new Tuple<int, int>(mFontSheets.Count, i));
     }
     mFontSheets.Add(sheet);
 }
Example #2
0
        public void LoadFont(string path, int startChar)
        {
            List <int> listChars = new List <int>();
            FontSheet  sheet     = new FontSheet();

            sheet.LoadFont(path, startChar, ref listChars, ref mCharHeight, ref mSpace);
            for (int i = 0; i < listChars.Count; i++)
            {
                mCharToVertIndexMap.Add(listChars[i], new Tuple <int, int>(mFontSheets.Count, i));
            }
            mFontSheets.Add(sheet);
        }