public void LoadFont(string filename) { font = new MyFont(filename); curContour = null; curSymbol = null; font.SortSymbols(); }
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); }
public WorkSpace(int w, int h) { Height = h; Width = w; curPoint = new MyPoint(); font = new MyFont(); allix = true; AllSymbol = false; coord = true; }
public void DrawString(Graphics g, MyFont font, int ptx, string s, float x, float y) { font.DrawString(g, s, ptx, x, y); }