When using the Text Tool in Onshape Sketch mode it will automatically anchor itself to the selected face, line, or tangent point. These actions allow you to easily place text in a precise location within your model. Alternatively, if you prefer you can use the 'new sketch' option and go freehand.