For Rails 8 user, I just copy the fonts/ folder under public/, like this:
fonts/
public/
My dev env works well after doing that.