The chart showed that for a font size of 10, the pixel would 13.   If I 
wanted an 8-character date (MM/DD/YY) then the width would be 13 * 8 = 104 
which is way too much.  75 as you suggest is a much better fit for Arial 10.   
So I don't think that chart is a good place to start.    What would your 
utility do -- look at the actual text that's in a column you want to locate?

Karen

 
> I think R:Base is already making an "educated guess" at how wide the 
> columns should be based on either the field size or the actual observed data 
> in 
> the first bunch of displayed rows.  It may be using the very same 
> table-based algorithm as you are.
> 
> You could always simply scale the number that table produces to get a 
> better fit for you.
> 
> I can write you up a little textextent utility as described in my previous 
> email, but that will give you sizes based on the actual text you want to 
> measure.  Would that help you?
> 
> 
> BTW, it's 75px for dates!
> --
> Larry
> 
> 
> 
> 

Reply via email to