Get text scene node font weight as number

Is there a way to get the font weight as a number? Here’s what I’m using now but I’d like to the numbers (0-1000).

// FONT WEIGHT
if (styleRange.fontStyle!=false) { // edited
	isLight = fontStyle.indexOf("light")!=-1 || fontStyle.indexOf("thin")!=-1;

	if (fontStyle.indexOf("bold")!=-1) {
		value = Styles.FONT_WEIGHT_BOLD;
	}
	else if (isLight) {
		value = Styles.FONT_WEIGHT_LIGHT;
	}
	else {
		value = Styles.FONT_WEIGHT_NORMAL;
	}

	styles[Styles.FONT_WEIGHT] = value;
}