🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2550

Font Point Sizes, and Environment variables

#2550
From: Greg
Date: Thu, 09 May 1991 18:12
23 lines
1392 bytes

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      
Technical Details
Message-ID: <28299100.5bb1@petunia.CalPoly.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!petunia!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!petunia!news
From: gmccain@polyslo.CalPoly.EDU (Greg)
Newsgroups: comp.windows.ms.programmer
Subject: Font Point Sizes, and Environment variables
Message-ID: <28299100.5bb1@petunia.CalPoly.EDU>
Date: 9 May 91 18:12:16 GMT
Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407
Lines: 23