Exemplo n.º 1
0
        public FontCharacter(Image character, FontFlag flags)
        {
            Int32 i = (Int32)flags;

            forms    = new Image[i + 1];
            forms[i] = character;
        }
Exemplo n.º 2
0
 public Image GetForm(FontFlag flags)
 {
     if ((Int32)flags < forms.Length)
     {
         return(forms[((Int32)flags)]);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 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;
        }
Exemplo n.º 4
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++;
 }
Exemplo n.º 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++;
 }
Exemplo n.º 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!");
     }
 }
Exemplo n.º 7
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!");
     }
 }
Exemplo n.º 8
0
 public abstract Image GetCharacter(Int32 charNumber, FontFlag flags);
Exemplo n.º 9
0
 public override Image GetCharacter(Int32 charNumber, FontFlag flags)
 {
     return(foundChars.GetCharacter(charNumber, flags));
 }
Exemplo n.º 10
0
Arquivo: OPFF.cs Projeto: Orvid/Cosmos
 public override Image GetCharacter(Int32 charNumber, FontFlag flags)
 {
     return foundChars.GetCharacter(charNumber, flags);
 }
Exemplo n.º 11
0
 public Image GetForm(FontFlag flags)
 {
     if ((Int32)flags < forms.Length)
     {
         return (forms[((Int32)flags)]);
     }
     else
     {
         return null;
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 13
0
 public FontCharacter(Image character, FontFlag flags)
 {
     Int32 i = (Int32)flags;
     forms = new Image[i + 1];
     forms[i] = character;
 }
Exemplo n.º 14
0
 public abstract Image GetCharacter(Int32 charNumber, FontFlag flags);