Inheritance: BaseFont
Example #1
0
 public static BaseFont GetFont(string name)
 {
     BaseFont ret;
     if (!sFontFactory.TryGetValue(name, out ret))
     {
         ret = new DynamicFont(name);
         sFontFactory.Add(name, ret);
     }
     return ret;
 }
Example #2
0
        public static BaseFont GetFont(string name)
        {
            BaseFont ret;
            if (!sFontFactory.TryGetValue(name, out ret))
            {
                ret = new DynamicFont(name);
                sFontFactory.Add(name, ret);
            }

            if (ret.packageItem!=null && !ret.packageItem.decoded)
                ret.packageItem.Load();

            return ret;
        }