/// ------------------------------------------------------------------------------------ public bool SetFont(string name, Font fntNew) { var fnt = s_fontCache.SingleOrDefault(f => FontHelper.AreFontsSame(f, fntNew)); if (fnt == null) { fnt = fntNew; s_fontCache.Add(fnt); } var props = GetDisplayProps(name); if (props == null) { Add(new PaFieldDisplayProperties(name, false, false) { Font = fnt }); return(true); } props.Font = fnt; return(false); }