[comp.windows.ms.programmer] Font Point Sizes, and Environment variables

gmccain@polyslo.CalPoly.EDU (Greg) (05/10/91)

My first question is on how to obtain font information on point sizes of the
fonts.  I use EnumFonts () to first obtain a list of fonts, then call 
EnumFonts () again with each font to get it's sizes.  What I can't figure
out is how determine the font's point sizes.  Currently I look at the
lfHeight field of the LOGFONT structure, but that gives me weird heights
ranging from 6 to 150.  What I really want is a nice list of fonts like you
see in the "Fonts" section of the control panel, or like what what MS Word
lists for you.  

Second, would Windows even think about letting me get at it's personal
DOS environment variables?  I'd like to be able to modify things like the
path variable so new programs would get copies of it...

Thanx in advance!


-- 
  O__/|         	      |         gmccain@polyslo.CalPoly.EDU 
  |   |	  ___  ____    ^ ____ |---------------------------------------  
<-|-  |--/   | \  /  g | |___ |		 
 \----/	     |__\/__/ \| ___| |   The only good rat is a DEAD rat