font height and width

Discussion in 'JavaScript' started by jeffroberts, Oct 26, 2006.

  1. #1
    Is there any way from javascript to get the font properties for a specific font ? I want to be able to get the pixel height and width of a specific font on the client workstation. I want to pass in something like "Courier-new" point size of 12 and get back the number of pixels each character takes up on the screen in the browser window.

    thanks jeff

    :confused:
     
    jeffroberts, Oct 26, 2006 IP