예제 #1
0
 /// <summary>
 /// Create a new <see cref="Type1FontProgram"/> from the information retrieved from the PDF document.
 /// </summary>
 /// <param name="name">The name of the font.</param>
 /// <param name="encoding"></param>
 /// <param name="fontMatrix"></param>
 /// <param name="boundingBox"></param>
 /// <param name="privateDictionary"></param>
 /// <param name="charStrings"></param>
 public Type1FontProgram(string name, IReadOnlyDictionary <int, string> encoding, ArrayToken fontMatrix, PdfRectangle boundingBox,
                         Type1PrivateDictionary privateDictionary,
                         Type1CharStrings charStrings)
 {
     Name              = name;
     Encoding          = encoding;
     FontMatrix        = fontMatrix;
     BoundingBox       = boundingBox;
     PrivateDictionary = privateDictionary ?? throw new ArgumentNullException(nameof(privateDictionary));
     CharStrings       = charStrings ?? throw new ArgumentNullException(nameof(charStrings));
 }
예제 #2
0
 /// <summary>
 /// Create a new <see cref="Type1Font"/>.
 /// </summary>
 internal Type1Font(string name, IReadOnlyDictionary <int, string> encoding, ArrayToken fontMatrix, PdfRectangle boundingBox,
                    Type1PrivateDictionary privateDictionary,
                    Type1CharStrings charStrings)
 {
     Name              = name;
     Encoding          = encoding;
     FontMatrix        = GetFontTransformationMatrix(fontMatrix);
     BoundingBox       = boundingBox;
     PrivateDictionary = privateDictionary ?? throw new ArgumentNullException(nameof(privateDictionary));
     CharStrings       = charStrings ?? throw new ArgumentNullException(nameof(charStrings));
 }