If I know the font size (12) and the font family (calibri), is there a way to determine the length (in pixels) a given string will take after it will be rendered? I am absol
Use jQuery,
$("text").each(function(){alert(this.innerHTML+" is "+$(this).width()+" pixels.");});