예제 #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;
 }
 /// <summary>
 /// Create a new <see cref="AdobeFontMetricsIndividualCharacterMetric"/>.
 /// </summary>
 public AdobeFontMetricsIndividualCharacterMetric(int characterCode, string name, AdobeFontMetricsVector width,
                                                  AdobeFontMetricsVector widthDirection0,
                                                  AdobeFontMetricsVector widthDirection1,
                                                  AdobeFontMetricsVector vVector,
                                                  PdfRectangle boundingBox,
                                                  AdobeFontMetricsLigature ligature)
 {
     CharacterCode   = characterCode;
     Name            = name;
     Width           = width;
     WidthDirection0 = widthDirection0;
     WidthDirection1 = widthDirection1;
     VVector         = vVector;
     BoundingBox     = boundingBox;
     Ligature        = ligature;
 }
예제 #3
0
 public void SetVVector(double x, double y)
 {
     VVector = new AdobeFontMetricsVector(x, y);
 }