return function(D,o)D=D or Enum.Font.SourceSans if o.type=="\115\101\116\070\111\110\116"then return o.font or Enum.Font.SourceSans elseif o.type=="\115\101\116\084\101\120\116\073\116\101\109"then return o.item and o.item.Font or Enum.Font.SourceSans end return D end
return function (state, action)
  state = state or Enum.Font.SourceSans

  if action.type == "setFont" then
    return action.font or Enum.Font.SourceSans
  elseif action.type == "setTextItem" then
    -- Update when a new TextItem is set
    return action.item and action.item.Font or Enum.Font.SourceSans
  end

  return state
end