Ejemplo n.º 1
0
 public TrueTypeStandard14FallbackSimpleFont(NameToken name, AdobeFontMetrics fontMetrics, Encoding encoding, TrueTypeFont font,
                                             MetricOverrides overrides)
 {
     this.fontMetrics = fontMetrics;
     this.encoding    = encoding ?? throw new ArgumentNullException(nameof(encoding));
     this.font        = font;
     this.overrides   = overrides;
     Name             = name;
 }
Ejemplo n.º 2
0
        public Type1Standard14Font(AdobeFontMetrics standardFontMetrics, Encoding overrideEncoding = null)
        {
            this.standardFontMetrics = standardFontMetrics ?? throw new ArgumentNullException(nameof(standardFontMetrics));
            encoding = overrideEncoding ?? new AdobeFontMetricsEncoding(standardFontMetrics);

            Name = NameToken.Create(standardFontMetrics.FontName);

            IsVertical = false;
        }
 public TrueTypeStandard14FallbackSimpleFont(NameToken name, AdobeFontMetrics fontMetrics, Encoding encoding, TrueTypeFont font,
                                             MetricOverrides overrides)
 {
     this.fontMetrics = fontMetrics;
     this.encoding    = encoding ?? throw new ArgumentNullException(nameof(encoding));
     this.font        = font;
     this.overrides   = overrides;
     Name             = name;
     Details          = fontMetrics == null?FontDetails.GetDefault(Name?.Data) : new FontDetails(Name?.Data,
                                                                                                 fontMetrics.Weight == "Bold",
                                                                                                 fontMetrics.Weight == "Bold" ? 700 : FontDetails.DefaultWeight,
                                                                                                 fontMetrics.ItalicAngle != 0);
 }
Ejemplo n.º 4
0
        public Type1Standard14Font(AdobeFontMetrics standardFontMetrics, Encoding overrideEncoding = null)
        {
            this.standardFontMetrics = standardFontMetrics ?? throw new ArgumentNullException(nameof(standardFontMetrics));
            encoding = overrideEncoding ?? new AdobeFontMetricsEncoding(standardFontMetrics);

            Name = NameToken.Create(standardFontMetrics.FontName);

            IsVertical = false;
            Details    = new FontDetails(Name.Data,
                                         standardFontMetrics.Weight == "Bold",
                                         standardFontMetrics.Weight == "Bold" ? 700 : FontDetails.DefaultWeight,
                                         standardFontMetrics.ItalicAngle != 0);
        }
Ejemplo n.º 5
0
 public Standard14WritingFont(AdobeFontMetrics metrics)
 {
     this.metrics = metrics;
 }