code: private static Style.FontStyle  parseFontStyle(String val)
     {
        // Italic is probably the most common, so test that first :)
        switch (val)
        {
           case "italic":  return Style.FontStyle.Italic;
           case "normal":  return Style.FontStyle.Normal;
           case "oblique": return Style.FontStyle.Oblique;
           default:        return null;
        }
     }
docs: Parse a font style keyword