Example #1
0
        public FontCharacter(Image character, FontFlag flags)
        {
            Int32 i = (Int32)flags;

            forms    = new Image[i + 1];
            forms[i] = character;
        }
Example #2
0
 public Image GetForm(FontFlag flags)
 {
     if ((Int32)flags < forms.Length)
     {
         return(forms[((Int32)flags)]);
     }
     else
     {
         return(null);
     }
 }
Example #3
0
        public void AddForm(Image character, FontFlag flags)
        {
            Int32 i = (Int32)flags;

            if (i > forms.Length - 1)
            {
                Image[] forms2 = new Image[i + 1];
                Array.Copy(forms, forms2, forms.Length);
                forms = forms2;
            }
            forms[i] = character;
        }
 public void AddCharacter(int charNumber, Image ch, FontFlag flags)
 {
     if (foundChars[charNumber] == null)
     {
         foundChars[charNumber] = new FontCharacter(ch, flags);
     }
     else
     {
         foundChars[charNumber].AddForm(ch, flags);
     }
     chars++;
 }
Example #5
0
 public void AddCharacter(int charNumber, Image ch, FontFlag flags)
 {
     if (foundChars[charNumber] == null)
     {
         foundChars[charNumber] = new FontCharacter(ch, flags);
     }
     else
     {
         foundChars[charNumber].AddForm(ch, flags);
     }
     chars++;
 }
Example #6
0
 public Image GetCharacter(int charNumber, FontFlag flags)
 {
     if (foundChars[charNumber] != null)
     {
         if (foundChars[charNumber].GetForm(flags) != null)
         {
             return(foundChars[charNumber].GetForm(flags));
         }
         else
         {
             throw new Exception("Form Not Found!");
         }
     }
     else
     {
         throw new Exception("Character non-existant!");
     }
 }
 public Image GetCharacter(int charNumber, FontFlag flags)
 {
     if (foundChars[charNumber] != null)
     {
         if (foundChars[charNumber].GetForm(flags) != null)
         {
             return foundChars[charNumber].GetForm(flags);
         }
         else
         {
             throw new Exception("Form Not Found!");
         }
     }
     else
     {
         throw new Exception("Character non-existant!");
     }
 }
Example #8
0
 public abstract Image GetCharacter(Int32 charNumber, FontFlag flags);
Example #9
0
 public override Image GetCharacter(Int32 charNumber, FontFlag flags)
 {
     return(foundChars.GetCharacter(charNumber, flags));
 }
Example #10
0
File: OPFF.cs Project: Orvid/Cosmos
 public override Image GetCharacter(Int32 charNumber, FontFlag flags)
 {
     return foundChars.GetCharacter(charNumber, flags);
 }
Example #11
0
 public Image GetForm(FontFlag flags)
 {
     if ((Int32)flags < forms.Length)
     {
         return (forms[((Int32)flags)]);
     }
     else
     {
         return null;
     }
 }
Example #12
0
 public void AddForm(Image character, FontFlag flags)
 {
     Int32 i = (Int32)flags;
     if (i > forms.Length - 1)
     {
         Image[] forms2 = new Image[i + 1];
         Array.Copy(forms, forms2, forms.Length);
         forms = forms2;
     }
     forms[i] = character;
 }
Example #13
0
 public FontCharacter(Image character, FontFlag flags)
 {
     Int32 i = (Int32)flags;
     forms = new Image[i + 1];
     forms[i] = character;
 }
Example #14
0
 public abstract Image GetCharacter(Int32 charNumber, FontFlag flags);