Ejemplo n.º 1
0
 /// <summary>
 /// Create a new <see cref="AdobeFontMetrics"/>.
 /// </summary>
 public AdobeFontMetrics(decimal afmVersion, IReadOnlyList <string> comments, int metricSets, string fontName,
                         string fullName,
                         string familyName,
                         string weight,
                         PdfRectangle boundingBox,
                         string version,
                         string notice,
                         string encodingScheme,
                         int mappingScheme,
                         int escapeCharacter,
                         string characterSet,
                         int characters,
                         bool isBaseFont,
                         AdobeFontMetricsVector vVector,
                         bool isFixedV,
                         decimal capHeight,
                         decimal xHeight,
                         decimal ascender,
                         decimal descender,
                         decimal underlinePosition,
                         decimal underlineThickness,
                         decimal italicAngle,
                         AdobeFontMetricsCharacterSize characterWidth,
                         decimal horizontalStemWidth,
                         decimal verticalStemWidth,
                         IReadOnlyDictionary <string, AdobeFontMetricsIndividualCharacterMetric> characterMetrics)
 {
     AfmVersion          = afmVersion;
     Comments            = comments;
     MetricSets          = (AdobeFontMetricsWritingDirections)metricSets;
     FontName            = fontName;
     FullName            = fullName;
     FamilyName          = familyName;
     Weight              = weight;
     BoundingBox         = boundingBox;
     Version             = version;
     Notice              = notice;
     EncodingScheme      = encodingScheme;
     MappingScheme       = mappingScheme;
     EscapeCharacter     = escapeCharacter;
     CharacterSet        = characterSet;
     Characters          = characters;
     IsBaseFont          = isBaseFont;
     VVector             = vVector;
     IsFixedV            = isFixedV;
     CapHeight           = capHeight;
     XHeight             = xHeight;
     Ascender            = ascender;
     Descender           = descender;
     UnderlinePosition   = underlinePosition;
     UnderlineThickness  = underlineThickness;
     ItalicAngle         = italicAngle;
     CharacterWidth      = characterWidth;
     HorizontalStemWidth = horizontalStemWidth;
     VerticalStemWidth   = verticalStemWidth;
     CharacterMetrics    = characterMetrics;
 }
Ejemplo n.º 2
0
 public void SetCharacterWidth(double x, double y)
 {
     CharacterWidth = new AdobeFontMetricsCharacterSize(x, y);
 }