I'm trying to coordinate Stata graphs with the text in a book. The (current) spec for the book text in 12pt Arial. Stata (for Windows) has no problem using Arial but it only defines relative sizes. Presumably, Stata picks up a font at a specific (point) size, but I can't find this defined anywhere. It surprised me that I can't find any previous discussion of this on the lists. So I ran this experiment, saved the graph as TIF, and imported it into a document with text using Arial at sizes from the word processor (OpenOffice rather than Word). After a little fiddling, the fonts *nearly* match
#delimit ;
twoway scatteri 0 0 10 10,
xsize(6) ysize(3)
text(0 0 "{stSans:Is this text 8pt}", box place(ne))
text(1 0 "{stSans:Is this text 66pt}", box size(*8) place(ne))
text(5 0 "{stSans:Is this text 72pt}", box size(*8.8) place(ne));
Stata's 66pt is a *smidgen* larger than Windows, but the 72pt matches as close as I can measure - and subject to printer precision. So I deduce the Stata base font is approx 8.2pt in Windows terms and can more or less match an absolute size when the graph is defined by xsize and ysize and not pulled about.
Does anyone have better ideas? Presumably a similar experiment would be needed for any substituted font.
Allan
#delimit ;
twoway scatteri 0 0 10 10,
xsize(6) ysize(3)
text(0 0 "{stSans:Is this text 8pt}", box place(ne))
text(1 0 "{stSans:Is this text 66pt}", box size(*8) place(ne))
text(5 0 "{stSans:Is this text 72pt}", box size(*8.8) place(ne));
Stata's 66pt is a *smidgen* larger than Windows, but the 72pt matches as close as I can measure - and subject to printer precision. So I deduce the Stata base font is approx 8.2pt in Windows terms and can more or less match an absolute size when the graph is defined by xsize and ysize and not pulled about.
Does anyone have better ideas? Presumably a similar experiment would be needed for any substituted font.
Allan
Comment