Ejemplo n.º 1
0
 public Panos_1(String SVGPanos1String)
 {
     int tempInt;
     String[] valuesString = SVGPanos1String.Split(' ');
     if (int.TryParse(valuesString[0], out tempInt))
         family = (Family)tempInt;
     if (int.TryParse(valuesString[1], out tempInt))
         serifStyle = (Serif_Style)tempInt;
     if (int.TryParse(valuesString[2], out tempInt))
         weight = (Weight)tempInt;
     if (int.TryParse(valuesString[3], out tempInt))
         proportion = (Proportion)tempInt;
     if (int.TryParse(valuesString[4], out tempInt))
         contrast = (Contrast)tempInt;
     if (int.TryParse(valuesString[5], out tempInt))
         strokeVariation = (Stroke_Variation)tempInt;
     if (int.TryParse(valuesString[6], out tempInt))
         armStyle = (Arm_Style)tempInt;
     if (int.TryParse(valuesString[7], out tempInt))
         letterform = (Letterform)tempInt;
     if (int.TryParse(valuesString[8], out tempInt))
         midline = (Midline)tempInt;
     if (int.TryParse(valuesString[0], out tempInt))
         xHeight = (XHeight)tempInt;
 }
Ejemplo n.º 2
0
            public Panos_1(String SVGPanos1String)
            {
                int tempInt;

                String[] valuesString = SVGPanos1String.Split(' ');
                if (int.TryParse(valuesString[0], out tempInt))
                {
                    family = (Family)tempInt;
                }
                if (int.TryParse(valuesString[1], out tempInt))
                {
                    serifStyle = (Serif_Style)tempInt;
                }
                if (int.TryParse(valuesString[2], out tempInt))
                {
                    weight = (Weight)tempInt;
                }
                if (int.TryParse(valuesString[3], out tempInt))
                {
                    proportion = (Proportion)tempInt;
                }
                if (int.TryParse(valuesString[4], out tempInt))
                {
                    contrast = (Contrast)tempInt;
                }
                if (int.TryParse(valuesString[5], out tempInt))
                {
                    strokeVariation = (Stroke_Variation)tempInt;
                }
                if (int.TryParse(valuesString[6], out tempInt))
                {
                    armStyle = (Arm_Style)tempInt;
                }
                if (int.TryParse(valuesString[7], out tempInt))
                {
                    letterform = (Letterform)tempInt;
                }
                if (int.TryParse(valuesString[8], out tempInt))
                {
                    midline = (Midline)tempInt;
                }
                if (int.TryParse(valuesString[0], out tempInt))
                {
                    xHeight = (XHeight)tempInt;
                }
            }