Looks like he's using the same trick I used on the Lua side - first make sure the text fits in a render box, then get the exact size by using BoundsForRange (that's what he proceeds to use further down in this function). So 20 is really a number that is supposed to guarantee a box big enough to fit the text, and later down that size is discarded.