Bug 109176 Japanese hiragino text slided up within big button/drop-menu/... patch by Hideo Saito <saito@densan.co.jp> r=joshmoz, sr=roc

This commit is contained in:
masayuki%d-toybox.com 2005-11-30 13:19:49 +00:00
parent 788aba6938
commit 6fb6b4c4c6

View File

@ -95,7 +95,7 @@ NS_IMETHODIMP nsFontMetricsMac::Init(const nsFont& aFont, nsIAtom* aLangGroup, n
mEmDescent = NSToCoordRound(float(fInfo.descent) * dev2app);
mEmHeight = mEmAscent + mEmDescent;
mMaxHeight = mEmHeight + mLeading;
mMaxHeight = mEmHeight;
mMaxAscent = mEmAscent;
mMaxDescent = mEmDescent;
@ -309,7 +309,7 @@ NS_IMETHODIMP nsFontMetricsMac :: GetHeight(nscoord &aHeight)
NS_IMETHODIMP nsFontMetricsMac :: GetNormalLineHeight(nscoord &aHeight)
{
aHeight = mMaxHeight; // on Windows, it's mEmHeight + mLeading (= mMaxHeight on the Mac)
aHeight = mEmHeight + mLeading; // Mac's leading is external leading
return NS_OK;
}