Display line/distance data on image

Good Day All,
I need to annotate some JPEGS with distance measurements. I see how to calibrate the scale and can measure and draw the lines on the image however I am unable to find a way to have the distance associated with that line appear on the image. I am looking for something like this:

image

There seems to be a plugin /macro for that: https://imagej.nih.gov/ij/plugins/measure-label.html

https://imagej.nih.gov/ij/macros/MeasureAndSetLabel.txt

Also there are a 2 entries in forums discussing similar problems and their solution: http://imagej.1557.x6.nabble.com/How-do-you-label-a-line-measurement-with-its-length-td5012782.html
http://imagej.1557.x6.nabble.com/Distance-measurement-displayed-in-image-td5007955.html

Dr. Google is usually my most reliable and useful collaborator =)