static public void AddFont(YWorksFontInfo font) { if (font == null) { throw new ArgumentNullException("font"); } _fonts.Add(font.FontFamily, font); }
static YWorksSchemaPrinter() { _defaultFont = new YWorksFontInfo("Consolas", 6.75, 18.15); _currentFont = _defaultFont; _fonts.Add("Consolas", _defaultFont); }
static public void SetCurrentFont(string name) { var font = GetFont(name); _currentFont = font; }