public GlyphImage(string ID) { if (db.GetRows("select * from images where img_id = " + ID)) { this.ID = ID; this.GlyphID = db.GetCell(0, "img_glyph_id"); this.Path = db.GetCell(0, "img_path"); this.Status = db.GetCell(0, "img_status"); } }
public Glyph(string ID, bool LoadImages) { if (db.GetRows("select * from glyphs where glyph_id = " + ID)) { this.ID = ID; this.FontID = db.GetCell(0, "glyph_font_id"); this.Unicode = db.GetCell(0, "glyph_unicode"); this.Frequency = System.Convert.ToInt32(db.GetCell(0, "glyph_frequency")); this.XOffset = System.Convert.ToInt32(db.GetCell(0, "glyph_x_offset")); this.YOffset = System.Convert.ToInt32(db.GetCell(0, "glyph_y_offset")); } if (LoadImages) { RefreshImages(); } }
public Font(string ID, bool LoadGlyphs, bool LoadImages) { if (db.GetRows("select * from fonts where font_id = " + ID)) { this.ID = ID; this.LangID = db.GetCell(0, "font_lang_id"); this.Name = db.GetCell(0, "font_name"); this.LineHeight = System.Convert.ToInt32(db.GetCell(0, "font_line_height")); this.Italic = System.Convert.ToInt32(db.GetCell(0, "font_italic")); this.Bold = System.Convert.ToInt32(db.GetCell(0, "font_bold")); this.Fixed = System.Convert.ToInt32(db.GetCell(0, "font_fixed")); this.Serif = System.Convert.ToInt32(db.GetCell(0, "font_serif")); this.Fraktur = System.Convert.ToInt32(db.GetCell(0, "font_fraktur")); } if (LoadGlyphs) { RefreshGlyphs(LoadImages); } }