src/providers/Azos.Media/PDF/DocumentModel/PdfFont.cs
/// <summary>
/// Returns existing font by name or creates and registers a new one
/// </summary>
Returns existing font by name or creates and registers a new one
Returns existing font by name or creates and registers a new one
public static PdfFont ByName(string name)
      {
        if (name.IsNullOrWhiteSpace())
         throw new PdfException(StringConsts.ARGUMENT_ERROR + typeof(PdfFont).Name + ".ByName(name==null|empty)");
        var result = s_Fonts.GetOrRegister(name, pts => new PdfFont(name), name);
        return result;
      }
public static PdfFont ByName ( string name ) { if ( name . IsNullOrWhiteSpace ( ) ) throw new PdfException ( StringConsts . ARGUMENT_ERROR + typeof ( PdfFont ) . Name + " " ) ; var result = s_Fonts . GetOrRegister ( name , pts => new PdfFont ( name ) , name ) ; return result ; }
Returns existing font by name or creates and registers a new one
Returns existing font by name or creates and registers a new one
name
string