func (component *Component) setFontName(value interface{}) error {
    stringVal, ok := value.(string)
    if !ok {
        return fmt.Errorf("error converting %v to string", value)
    }