private static Font parseFont(String value) {
		int sizeIndex = value.lastIndexOf("-");
		int styleIndex = value.lastIndexOf("-", sizeIndex - 1);
		if (sizeIndex <= 0 || styleIndex <= 0) {
			return null;
		}
		String sizeString = value.substring(sizeIndex + 1);
		String styleString = value.substring(styleIndex + 1, sizeIndex);
		String familyName = value.substring(0, styleIndex);

		try {
			int size = Integer.parseInt(sizeString);
			int style = getStyle(styleString);
			if (style >= 0) {
				return new Font(familyName, style, size);
			}
		}
		catch (NumberFormatException e) {
			// parse failed, return null
		}
		return null;
	}
Returns the Font style int for the given style string
@param styleString the string to convert to a Font style int
@return the Font style int for the given style string
Ghidra/Framework/Gui/src/main/java/generic/theme/FontValue.java