public TmxText(XMLReader xText) { FontFamily = xText.Attribute("fontfamily") ?? "sans-serif"; PixelSize = xText.AttributeIntN("pixelsize") ?? 16; Wrap = xText.AttributeBool("wrap"); Color = TmxHelpers.ParseTmxColor(xText.Attribute("color")); Bold = xText.AttributeBool("bold"); Italic = xText.AttributeBool("italic"); Underline = xText.AttributeBool("underline"); Strikeout = xText.AttributeBool("strikeout"); Kerning = xText.AttributeBoolN("kerning") ?? true; Alignment = new TmxAlignment(xText.Attribute("halign"), xText.Attribute("valign")); Value = xText.CurrentContents(); }