Unfortunately, freetype does not seem to render directly to a distance field as of version 2.9 (check https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Modecheck the render modes listed here)
You could calculate the distance from the alpha value of the freetype generated bitmaps using something like thisthe techniques described in the paper http://weber.itn.liu.se/~stegu/aadist/edtaa_preprint.pdf"Anti-aliased Euclidean distance transform"