Fix the linear interpolation during weight mapping

Fixes fontconfig/fontconfig#164
3 jobs for master in 8 minutes and 40 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #371675
mingw-build

00:04:35

passed #371673
shared-build

00:06:15

passed #371674
static-build

00:04:13