mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
When applying logical / himetric ratio to olefont sizes, must divide
by the standard ratio 72 / 2540.
This commit is contained in:
parent
187f7a4a4f
commit
2bcc1c07a9
1 changed files with 4 additions and 2 deletions
|
@ -953,7 +953,9 @@ static HRESULT WINAPI OLEFontImpl_get_hFont(
|
|||
*/
|
||||
IFont_get_Size(iface, &cySize);
|
||||
|
||||
fontHeight = MulDiv( cySize.s.Lo, this->cyLogical, this->cyHimetric );
|
||||
/* Standard ratio is 72 / 2540, or 18 / 635 in lowest terms. */
|
||||
/* Ratio is applied here relative to the standard. */
|
||||
fontHeight = MulDiv( cySize.s.Lo, this->cyLogical*635, this->cyHimetric*18 );
|
||||
|
||||
memset(&logFont, 0, sizeof(LOGFONTW));
|
||||
|
||||
|
@ -1020,7 +1022,7 @@ static HRESULT WINAPI OLEFontImpl_Clone(
|
|||
/* We need to clone the HFONT too. This is just cut & paste from above */
|
||||
IFont_get_Size(iface, &cySize);
|
||||
|
||||
fontHeight = MulDiv(cySize.s.Lo, this->cyLogical,this->cyHimetric);
|
||||
fontHeight = MulDiv(cySize.s.Lo, this->cyLogical*635,this->cyHimetric*18);
|
||||
|
||||
memset(&logFont, 0, sizeof(LOGFONTW));
|
||||
|
||||
|
|
Loading…
Reference in a new issue