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

            _currentFont = font;
        }