It happens automagically. PfaEdit will generate flex hints in situations where it is appropriate to do so. You don’t need to do anything. If flex hints are used then the necessary subroutines will be added to the font. If they are not needed then the subroutines will not be added.