internal static spr➓ smethod_0(Class672 A_0) { WordArt wordArt = A_0.method_28().WordArt; spr➓ r➓ = new spr➓(); if (sprḆ.(wordArt.Text)) { string str = Class955.smethod_7(wordArt.Text); spr⚪ r⚪ = A_0.method_18(); spr⡅ r⡅2 = A_0.method_19() as spr⡅; spr⡅ r⡅ = (r⚪ == null) ? null : (r⚪.() as spr⡅); SizeF sizeInPoints = A_0.method_28().SizeInPoints; float width = sizeInPoints.Width; float height = sizeInPoints.Height; float rotation = (float)A_0.method_28().Rotation; int num7 = smethod_1(wordArt.Bold, wordArt.Italic, wordArt.Underline); sprᝪ rᝪ = spr᮵.ᜂ().ᜀ(wordArt.FontFamily, height, (FontStyle)num7, wordArt.FontFamily); PointF tf = new PointF(0f, rᝪ.ᜑ() - (rᝪ.ᜏ() - rᝪ.ᜃ())); sprⓚ rⓚ2 = ((r⡅2 == null) || sprⓚ.ᜁ(r⡅2.ᜀ(), null)) ? sprⓚ.ទ : r⡅2.ᜀ(); sprⓚ rⓚ = ((r⡅ == null) || sprⓚ.ᜁ(r⡅.ᜀ(), null)) ? sprⓚ.ទ : r⡅.ᜀ(); spr⚢ r⚢ = new spr⚢(rᝪ, rⓚ2, rⓚ, tf, str, SizeF.Empty, (float)wordArt.Spacing); SizeF ef = rᝪ.ᜃ(str); float num2 = width / ef.Width; r⚢.ᜀ(new spr➂(num2, 0f, 0f, 1f, 0f, 0f)); if (rotation != 0f) { float x = width * 0.5f; float y = height * 0.5f; r⚢.ᜃ().ᜀ(rotation, new PointF(x, y), MatrixOrder.Append); } r➓.ᜁ(r⚢); } return(r➓); }
public Size method_7(string A_0, sprᝪ A_1) { if (!string.IsNullOrEmpty(A_0) && (A_1 != null)) { return(Size.Ceiling(A_1.ᜃ(A_0))); } return(new Size()); }
public Class545 method_5(string A_0, Graphics A_1, Font A_2, sprᝪ A_3, StringFormat A_4, SizeF A_5) { this.method_9(A_0, A_1, A_2, A_3, A_4, A_5); Class545 class2 = this.method_10(); this.method_13(); return(class2); }
public void method_12(string A_0, sprᝪ A_1, Color A_2, float A_3, float A_4, StringFormat A_5) { this.method_0().ᜁ(); spr⚢ r⚢ = new spr⚢(A_1, A_2, new PointF(0f, 0f), A_0); this.method_0().().ᜏ().ᜀ(A_3, A_4 - r⚢.ᜄ().Y); this.method_0().ᜀ(r⚢); this.method_0().ᜂ(); }
public void method_11(string A_0, sprᝪ A_1, Color A_2, PointF A_3, SizeF A_4, spr➂ A_5, StringFormat A_6) { this.method_0().ᜁ(); spr⚢ r⚢ = new spr⚢(A_1, sprⓚ.ᜀ(A_2), sprⓚ.ទ, new PointF(0f, 0f), A_0, A_4, 0f); if ((A_1.ᜂ() & FontStyle.Underline) != FontStyle.Regular) { r⚢. = 1; } if (spr➂.ᜀ(null, A_5)) { this.method_0().().ᜏ().ᜀ(A_5.ᜐ(), A_5.ᜓ(), A_5.᜕(), A_5.(), A_5.(), A_5.()); } this.method_0().().ᜏ().ᜀ(A_3.X, A_3.Y - r⚢.ᜄ().Y); this.method_0().ᜀ(r⚢); this.method_0().ᜂ(); }
private void method_9(string A_0, Graphics A_1, Font A_2, sprᝪ A_3, StringFormat A_4, SizeF A_5) { int num = 12; if (A_0 == null) { throw new ArgumentNullException(BookmarkStart.b("䘱儳丵䰷", num)); } if ((A_2 == null) && (A_3 == null)) { throw new ArgumentNullException(BookmarkStart.b("吱嬳堵䰷", num)); } this.string_0 = A_0; this.graphics_0 = A_1; this.font_0 = A_2; this.sprᝪ_0 = A_3; this.stringFormat_0 = A_4; this.sizeF_0 = A_5; this.class543_0 = new Class543(A_0); }
public static Interface19[] smethod_0(Class196 A_0, double A_1, Interface21 A_2, string A_3, float A_4, float A_5, bool A_6) { StringFormat format; int num = 3; format = new StringFormat(StringFormat.GenericTypographic) { FormatFlags = format.FormatFlags | StringFormatFlags.MeasureTrailingSpaces, FormatFlags = format.FormatFlags | StringFormatFlags.NoClip, Trimming = StringTrimming.Word }; string str2 = (A_3 != null) ? A_3 : A_2.imethod_5(); if ((A_2 is Field) ? (A_2 as Field).CharacterFormat.AllCaps : (A_2 as TextRange).CharacterFormat.AllCaps) { str2 = str2.ToUpper(); } if ((A_2 is Field) ? (A_2 as Field).CharacterFormat.AllCaps : (A_2 as TextRange).CharacterFormat.AllCaps) { str2 = str2.ToUpper(); } Font font = null; sprᝪ rᝪ = null; if (A_0.method_1()) { rᝪ = (A_2 is Field) ? A_0.method_376((A_2 as Field).CharacterFormat) : A_0.method_378(A_2 as TextRange); } else { font = (A_2 is Field) ? A_0.method_365((A_2 as Field).CharacterFormat) : A_0.method_367(A_2 as TextRange); } Class544 class3 = new Class544(); class3.method_1(A_0); class3.method_2(A_0.method_405(A_2 as TextRange)); class3.method_3(A_2); Class545 class2 = class3.method_5(str2, A_0.method_151(), font, rᝪ, format, new SizeF((float)A_1, float.MaxValue)); if (class2.struct11_0.Length > 0) { Interface19[] interfaceArray2 = new Interface19[2]; interfaceArray2[0] = new Class542(A_2, class2.struct11_0[0].string_0); string str = string.Empty; if ((class2.string_0 == null) && (class2.struct11_0.Length > 1)) { for (int i = 1; i < class2.method_1(); i++) { if (class2.struct11_0[i].string_0 == BookmarkStart.b("न", num)) { str = str + BookmarkStart.b("⌨", num); } else { str = str + BookmarkStart.b("⌨", num) + class2.struct11_0[i].string_0; } } } else { str = class2.string_0; } if ((str == BookmarkStart.b("⌨", num)) || (str == BookmarkStart.b("", num))) { str = BookmarkStart.b("न", num); } if ((str != null) && (str.StartsWith(BookmarkStart.b("⌨", num)) || str.StartsWith(BookmarkStart.b("", num)))) { str = str.Remove(0, 1).TrimStart(new char[0]); } interfaceArray2[1] = new Class542(A_2, str); return(interfaceArray2); } if (((A_2 == null) || (A_2.imethod_5() == null)) || !(A_2.imethod_5() != string.Empty)) { return(null); } (A_2 as TextRange).TextToSplit = class2.string_0; if (A_0.method_323(A_2 as TextRange, (A_2 as TextRange).TextToSplit).Width > A_1) { return(smethod_1(A_0, A_1, A_2, null, A_4, A_5, A_6)); } return(new Interface19[] { new Class542(A_2, string.Empty), new Class542(A_2, class2.string_0) }); }