Exemplo n.º 1
0
 public Class27(Class596 settings, ShxFile shxFile)
     : base(settings)
 {
     this.shxFile_0  = shxFile;
     this.double_3   = 1.0 / (shxFile.Above != 0 ? (double)shxFile.Above : (double)shxFile.Height);
     this.double_4   = (double)shxFile.Below * this.double_3;
     this.vector2D_0 = settings.IsVertical ? new Vector2D(shxFile.HorizontalLinefeedAdvance * this.double_3 * this.Ascent, 0.0) : new Vector2D(0.0, shxFile.VerticalLinefeedAdvance * this.double_3 * this.Ascent);
     if (this.vector2D_0 == Vector2D.Zero)
     {
         this.vector2D_0 = settings.IsVertical ? new Vector2D(5.0 / 3.0 * this.Ascent, 0.0) : new Vector2D(0.0, -5.0 / 3.0 * this.Ascent);
     }
     this.class755_0 = Class754.smethod_0(shxFile, this.double_3);
 }
Exemplo n.º 2
0
 public Class754(Class27 textMetrics, bool vertical)
 {
     this.class27_0  = textMetrics;
     this.class755_0 = Class754.smethod_0(textMetrics.ShxFile, textMetrics.ToCanonicalScale);
 }