mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 07:57:22 +00:00
gdiplus: Use get_log_fontW in GdipGetLogFontW.
Signed-off-by: David Kahurani <k.kahurani@gmail.com>
This commit is contained in:
parent
326a9e18bb
commit
08d9f9b60b
|
@ -480,24 +480,15 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics, LOGFONTW
|
|||
|
||||
GdipMultiplyMatrix(&matrix, &graphics->gdi_transform, MatrixOrderAppend);
|
||||
transform_properties(graphics, &matrix, FALSE, NULL, &rel_height, &angle);
|
||||
get_log_fontW(font, graphics, lf);
|
||||
|
||||
lf->lfHeight = -gdip_round(height * rel_height);
|
||||
lf->lfWidth = 0;
|
||||
lf->lfEscapement = lf->lfOrientation = gdip_round((angle / M_PI) * 1800.0);
|
||||
if (lf->lfEscapement < 0)
|
||||
{
|
||||
lf->lfEscapement += 3600;
|
||||
lf->lfOrientation += 3600;
|
||||
}
|
||||
lf->lfWeight = font->otm.otmTextMetrics.tmWeight;
|
||||
lf->lfItalic = font->otm.otmTextMetrics.tmItalic ? 1 : 0;
|
||||
lf->lfUnderline = font->otm.otmTextMetrics.tmUnderlined ? 1 : 0;
|
||||
lf->lfStrikeOut = font->otm.otmTextMetrics.tmStruckOut ? 1 : 0;
|
||||
lf->lfCharSet = font->otm.otmTextMetrics.tmCharSet;
|
||||
lf->lfOutPrecision = OUT_DEFAULT_PRECIS;
|
||||
lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||
lf->lfQuality = DEFAULT_QUALITY;
|
||||
lf->lfPitchAndFamily = 0;
|
||||
lstrcpyW(lf->lfFaceName, font->family->FamilyName);
|
||||
|
||||
TRACE("=> %s,%ld\n", debugstr_w(lf->lfFaceName), lf->lfHeight);
|
||||
|
||||
|
|
Loading…
Reference in a new issue