line text justify

BlitzPlus Forums/BlitzPlus Programming/line text justify

i've an bitmap font (8x12 px), i want justify the displayed line text. How to determine the blank width between the words ?

i've already a function 'StringWidth' which determine the width (pixels) of any string displayed with my bitmap font (with or without spaces).

For example the line text is displayed into a window. The window width size is a little longer than the length of the displayed string text !

Many Thanks !