final CSSValue value = layoutContext.getValue(FontStyleKeys.FONT_FAMILY);
DebugLog.log("FontFamily is " + value + " but has not been set?" + currentNode);
return;
}
final double width = StrictGeomUtility.toExternalValue(fm.getCharWidth(0x20));
final CSSNumericValue percentageBase =
CSSNumericValue.createValue(CSSNumericType.PT, width);
final CSSNumericValue min = CSSValueResolverUtility.getLength
(resolveValue(layoutContext, TextStyleKeys.X_MIN_WORD_SPACING), percentageBase);
final CSSNumericValue max = CSSValueResolverUtility.getLength
(resolveValue(layoutContext, TextStyleKeys.X_MAX_WORD_SPACING), percentageBase);
final CSSNumericValue opt = CSSValueResolverUtility.getLength
(resolveValue(layoutContext, TextStyleKeys.X_OPTIMUM_WORD_SPACING), percentageBase);
layoutContext.setValue(TextStyleKeys.X_MIN_WORD_SPACING, min);
layoutContext.setValue(TextStyleKeys.X_MAX_WORD_SPACING, max);
layoutContext.setValue(TextStyleKeys.X_OPTIMUM_WORD_SPACING, opt);