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
Родитель cd37d0e815
Коммит 1ba9a1efb0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}