Example #1
0
 public string AddEmptyGlyph(string Unicode)
 {
     Glyph G = new Glyph();
     G.FontID = this.ID;
     G.Unicode = Unicode;
     G.Save(false);
     return G.ID;
 }
Example #2
0
 public void AddGlyph(string Unicode, string ImagePath)
 {
     Glyph G = new Glyph();
     G.FontID = this.ID;
     G.Unicode = Unicode;
     G.Save(false);
     G.AddImage(ImagePath);
     Glyphs.Add(G);
 }
Example #3
0
        public void RefreshGlyphs(bool LoadImages)
        {
            this.Glyphs.Clear();

            if (this.ID != "")
            {
                if (db.GetRows("select glyph_id from glyphs where glyph_font_id = " + this.ID + " order by glyph_unicode asc"))
                {
                    DataTable GlyphTable = db.Bucket.Copy();

                    for (int x = 0; x < GlyphTable.Rows.Count; x++)
                    {
                        Glyph G = new Glyph(GlyphTable.Rows[x][0].ToString(), LoadImages);
                        Glyphs.Add(G);
                    }
                }
            }
        }