private CompoundFont CreateFont() { var font = new CompoundFont(); foreach (var name in FontNames) { var f = FontPool.Instance[name]; if (f != FontPool.Instance.Null && !font.Fonts.Contains(f)) { font.Fonts.Add(f); } } return(font); }
public void Dispose() { font?.Dispose(); font = null; }