Example #1
0
 public void LoadFont(string filename)
 {
     font       = new MyFont(filename);
     curContour = null;
     curSymbol  = null;
     font.SortSymbols();
 }
Example #2
0
        public MyFont Load(string filename)
        {
            MyFont            font = new MyFont();
            FontInterpretator fi   = new FontInterpretator();
            string            line = "";
            StreamReader      sr   = new StreamReader(filename);

            line = sr.ReadLine();
            if (line == null)
            {
                return(font);
            }

            while (true)
            {
                line = sr.ReadLine();
                if (line == null)
                {
                    break;
                }
                font.symbols.Add(fi.SymbolFromString(line));
            }
            sr.Close();
            return(font);
        }
Example #3
0
 public WorkSpace(int w, int h)
 {
     Height    = h;
     Width     = w;
     curPoint  = new MyPoint();
     font      = new MyFont();
     allix     = true;
     AllSymbol = false;
     coord     = true;
 }
Example #4
0
 public void DrawString(Graphics g, MyFont font, int ptx, string s, float x, float y)
 {
     font.DrawString(g, s, ptx, x, y);
 }