🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37286

Re: Determining font size values: R2 vs. R3

#37286
From: Bob Scheifler
Date: Fri, 23 Feb 1990 22:14
8 lines
859 bytes
	TFheight = font->max_bounds.ascent + font->max_bounds.descent;
	TFwidth = font->max_bounds.rbearing - font->min_bounds.lbearing;

Perhaps the problem is that font->max_bounds.width can be greater than TFwidth
as you calculate it?  Try using max of these two values.  Otherwise, a more
explicit example of the problem, the actual fonts involved and the values
computed, would be helpful.
Technical Details
Message-ID: <9002232214.AA01863@expire.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
References: <3630008@hpindda.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler)
Newsgroups: comp.windows.x
Subject: Re: Determining font size values: R2 vs. R3
Message-ID: <9002232214.AA01863@expire.lcs.mit.edu>
Date: 23 Feb 90 22:14:36 GMT
References: <3630008@hpindda.HP.COM>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 8