public override void imethod_0( ref Vector2D baselinePos, double height, Enum24 whiteSpaceHandlingFlags) { base.imethod_0(ref baselinePos, height, whiteSpaceHandlingFlags); Vector2D vector2D = Vector2D.Zero; double val1_1; double val1_2; if (this.Blocks.Count > 0) { val1_1 = 0.0; val1_2 = 0.0; foreach (Interface24 block in this.Blocks) { Class596 settings = block.Settings; val1_1 = System.Math.Max(val1_1, settings.Font.Metrics.Ascent); val1_2 = System.Math.Max(val1_2, settings.Font.Metrics.Descent); Vector2D lineFeedAdvance = settings.Font.Metrics.LineFeedAdvance; if (System.Math.Abs(lineFeedAdvance.X) > System.Math.Abs(vector2D.X)) { vector2D.X = lineFeedAdvance.X; } if (System.Math.Abs(lineFeedAdvance.Y) > System.Math.Abs(vector2D.Y)) { vector2D.Y = lineFeedAdvance.Y; } } } else { val1_1 = this.Settings.Font.Metrics.Ascent; val1_2 = this.Settings.Font.Metrics.Descent; vector2D = this.Settings.Font.Metrics.LineFeedAdvance; } if (this.lineSpacingStyle_0 == LineSpacingStyle.AtLeast) { Bounds2D bounds = this.GetBounds(whiteSpaceHandlingFlags, (Class985)null); double y = val1_1 - bounds.Corner2.Y + this.Offset.Y; double num = val1_2 - this.Offset.Y + bounds.Corner1.Y; if (y < 0.0) { Class427 class427 = this; class427.Offset = class427.Offset + new Vector2D(0.0, y); } baselinePos = this.Offset + vector2D * this.double_0; if (num >= 0.0) { return; } baselinePos.Y += num; } else { baselinePos = this.Offset + vector2D * this.double_0; } }
protected Class25(Class596 settings) { this.double_2 = settings.Height; double m00 = this.double_2 * settings.LetterWidth; double m01 = m00 * System.Math.Tan(-settings.ObliqueAngle); this.matrix2D_0 = new Matrix2D(m00, m01, 0.0, -this.double_2); this.double_1 = settings.LetterDistance; this.bool_0 = settings.IsVertical; }
public Class1023( Class1023.Class1024 paragraphFormat, double lineSpacingFactor, LineSpacingStyle lineSpacingStyle, Class596 settings) { this.class1024_0 = paragraphFormat; this.double_0 = lineSpacingFactor; this.lineSpacingStyle_0 = lineSpacingStyle; this.class596_0 = new Class596(settings); this.method_0(settings); }
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); }
internal Class596(Class596 from) { this.dxfModel_0 = from.dxfModel_0; this.color_0 = from.color_0; this.string_1 = from.string_1; this.string_2 = from.string_2; this.interface14_0 = from.Font; this.bool_0 = from.bool_0; this.bool_1 = from.bool_1; this.double_2 = from.double_2; this.double_3 = from.double_3; this.bool_2 = from.bool_2; this.bool_3 = from.bool_3; this.enum46_0 = from.enum46_0; this.double_4 = from.double_4; this.double_5 = from.double_5; this.bool_4 = from.bool_4; this.bool_5 = from.bool_5; }
public void method_2(string text, Class596 textSettings) { this.method_3((Interface24) new Class470(text, textSettings)); }
public void method_1(Class596 tabSettings) { this.class426_0 = new Class426(this.class1024_0, tabSettings); this.class427_0.method_0((Interface24)this.class426_0); }
public void method_0(Class596 lineSettings) { this.linkedList_0.AddLast(new Class427(this.double_0, this.lineSpacingStyle_0, lineSettings)); this.class427_0 = this.linkedList_0.Last.Value; this.class426_0 = (Class426)null; }
public Class425(Class596 settings, bool vertical) : this(settings) { this.bool_0 = vertical; }
public Class425(Class596 settings) { this.class596_0 = settings; }
internal Class26(string fontFileName, Class596 settings) : base(settings) { this.class1060_0 = Class26.smethod_0(fontFileName, settings.Bold, settings.Italic); }
public Class26(Class596 settings, bool useBigfont) : base(settings) { this.class1060_0 = Class26.smethod_0(useBigfont ? settings.BigFontFilename : settings.FontFileName, settings.Bold, settings.Italic); }
public Class426(Class1023.Class1024 paragraphFormat, Class596 settings) : base(settings) { this.class1024_0 = paragraphFormat; this.double_1 = 4.0 * settings.Height; }
internal Class470(string text, Class596 settings) { this.string_0 = text; this.class596_0 = new Class596(settings); }
public Class427(double lineSpacingFactor, LineSpacingStyle lineSpacingStyle, Class596 settings) : base(settings) { this.double_0 = lineSpacingFactor; this.lineSpacingStyle_0 = lineSpacingStyle; }