Пример #1
0
        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);
        }
Пример #2
0
 public void Dispose()
 {
     font?.Dispose();
     font = null;
 }