- char value[MAX_FONT_ATTRIBUTE_SIZE + 1u];
- processFontAttributeValue(value, attribute);
-
- fontRun.weight = StringToWeight(value);
- fontRun.weightDefined = true;
+ fontRun.weightDefined = ProcessEnumerationAttribute<FontWeight>(attribute, MAX_FONT_ATTRIBUTE_SIZE, &StringToWeight, fontRun.weight);