Esempio n. 1
0
 internal static Class754.Class755 smethod_0(ShxFile file, double scale)
 {
     Class754.Class755 class755;
     lock (Class754.dictionary_0)
     {
         if (!Class754.dictionary_0.TryGetValue(file.FileName, out class755))
         {
             class755 = new Class754.Class755(file, scale);
             Class754.dictionary_0.Add(file.FileName, class755);
         }
     }
     return(class755);
 }
Esempio n. 2
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);
 }
Esempio n. 3
0
 public Class754(Class27 textMetrics, bool vertical)
 {
     this.class27_0  = textMetrics;
     this.class755_0 = Class754.smethod_0(textMetrics.ShxFile, textMetrics.ToCanonicalScale);
 }