public static String checkFontFamily(JTextPane pane)
	{
		AttributeSet attributes = pane.getInputAttributes();

		if (attributes.isDefined(StyleConstants.FontFamily))
		{
			return attributes.getAttribute(StyleConstants.FontFamily)
					.toString();
		}

		if (attributes.isDefined(CSS.Attribute.FONT_FAMILY))
		{
			return attributes.getAttribute(CSS.Attribute.FONT_FAMILY)
					.toString();
		}
		return pane.getFont().getFamily();
	}