Text this: Sharp conditions for the convergence of greedy expansions with prescribed coefficients