I have a Inside the
http://www.dhtmlgoodies.com/?whichScript=text_fit_in_box
(someone's another work) which works perfectly for me - longer texts as well as shorter texts. It just do not react to resize of window (it works just once on loading of page), so I have written this short code to run it automatically after each window resize (it works for me): I hope it can help to someone.
fittext.js
did not work correctly for me (plugin for jQuery, as well as derived jquery-free version), nor with using of compressor attribute, so I found another solution: