Example #1
0
 private void method_0(Stream stream)
 {
     WoutWareFont.smethod_2(stream, (float)this.double_0);
     WoutWareFont.smethod_2(stream, (float)this.double_1);
     try
     {
         this.ilist_0       = (IList <IShape2D>) new List <IShape2D>();
         this.idictionary_0 = (IDictionary <uint, IList <int> >) new Dictionary <uint, IList <int> >();
         IList <Pair <WoutWareGlyph, IList <Pair <Matrix3D, int> > > > pendingGlyphs = (IList <Pair <WoutWareGlyph, IList <Pair <Matrix3D, int> > > >) new List <Pair <WoutWareGlyph, IList <Pair <Matrix3D, int> > > >();
         foreach (WoutWareGlyph glyph in this.Glyphs)
         {
             this.method_2(glyph, pendingGlyphs);
         }
         WoutWareFont.smethod_0(stream, this.ilist_0.Count);
         foreach (IShape2D shape in (IEnumerable <IShape2D>) this.ilist_0)
         {
             WoutWareFont.smethod_10(stream, shape);
         }
         WoutWareFont.smethod_0(stream, pendingGlyphs.Count);
         foreach (Pair <WoutWareGlyph, IList <Pair <Matrix3D, int> > > pair in (IEnumerable <Pair <WoutWareGlyph, IList <Pair <Matrix3D, int> > > >)pendingGlyphs)
         {
             WoutWareFont.smethod_13(stream, pair.First, (IEnumerable <Pair <Matrix3D, int> >)pair.Second);
         }
     }
     finally
     {
         this.ilist_0       = (IList <IShape2D>)null;
         this.idictionary_0 = (IDictionary <uint, IList <int> >)null;
     }
 }
Example #2
0
        private static void smethod_13(
            Stream stream,
            WoutWareGlyph glyph,
            IEnumerable <Pair <Matrix3D, int> > shapeRefs)
        {
            WoutWareFont.smethod_4(stream, glyph.Letter);
            WoutWareFont.smethod_6(stream, glyph.Advance);
            if (shapeRefs != null)
            {
                foreach (Pair <Matrix3D, int> shapeRef in shapeRefs)
                {
                    Matrix3D            first = shapeRef.First;
                    WoutWareFont.Enum12 enum12_1;
                    if (WoutWareFont.smethod_12(first.M01))
                    {
                        if (WoutWareFont.smethod_12(first.M10))
                        {
                            WoutWareFont.Enum12 enum12_2;
                            if (WoutWareFont.smethod_12(first.M02) && WoutWareFont.smethod_12(first.M12))
                            {
                                if (WoutWareFont.smethod_12(first.M00) && WoutWareFont.smethod_12(first.M11))
                                {
                                    stream.WriteByte((byte)100);
                                    enum12_1 = WoutWareFont.Enum12.const_0;
                                    goto label_19;
                                }
                                else
                                {
                                    stream.WriteByte((byte)115);
                                    enum12_2 = WoutWareFont.Enum12.const_2;
                                }
                            }
                            else if (WoutWareFont.smethod_12(first.M00 - 1.0) && WoutWareFont.smethod_12(first.M11 - 1.0))
                            {
                                stream.WriteByte((byte)116);
                                enum12_2 = WoutWareFont.Enum12.const_1;
                            }
                            else
                            {
                                stream.WriteByte((byte)109);
                                enum12_2 = WoutWareFont.Enum12.const_3;
                            }
                            switch (enum12_2)
                            {
                            case WoutWareFont.Enum12.const_3:
                                WoutWareFont.smethod_2(stream, (float)first.M00);
                                WoutWareFont.smethod_2(stream, (float)first.M02);
                                WoutWareFont.smethod_2(stream, (float)first.M11);
                                WoutWareFont.smethod_2(stream, (float)first.M12);
                                goto label_19;

                            case WoutWareFont.Enum12.const_2:
                                WoutWareFont.smethod_2(stream, (float)first.M00);
                                WoutWareFont.smethod_2(stream, (float)first.M11);
                                goto label_19;

                            case WoutWareFont.Enum12.const_1:
                                WoutWareFont.smethod_2(stream, (float)first.M02);
                                WoutWareFont.smethod_2(stream, (float)first.M12);
                                goto label_19;

                            default:
                                goto label_19;
                            }
                        }
                        else
                        {
                            stream.WriteByte((byte)99);
                            enum12_1 = WoutWareFont.Enum12.const_4;
                        }
                    }
                    else
                    {
                        stream.WriteByte((byte)99);
                        enum12_1 = WoutWareFont.Enum12.const_4;
                    }
                    WoutWareFont.smethod_2(stream, (float)first.M00);
                    WoutWareFont.smethod_2(stream, (float)first.M01);
                    WoutWareFont.smethod_2(stream, (float)first.M02);
                    WoutWareFont.smethod_2(stream, (float)first.M10);
                    WoutWareFont.smethod_2(stream, (float)first.M11);
                    WoutWareFont.smethod_2(stream, (float)first.M12);
label_19:
                    WoutWareFont.smethod_0(stream, shapeRef.Second);
                }
            }
            stream.WriteByte((byte)33);
        }