coretext: correctly clamp the core text weights at min/max values
Addresses bug found in #624 (closed)
Note I have not changed the weight mapping as I do not know enough to make that change correctly, but I at least think this change makes it behave more sensibly when weights outside the expected bounds are encountered.