"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/gdiplus/tests/font.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

font.c  (wine-5.12.tar.xz):font.c  (wine-5.13.tar.xz)
skipping to change at line 303 skipping to change at line 303
expect(Ok, stat); expect(Ok, stat);
stat = GdipGetEmHeight(family, FontStyleRegular, &em_height); stat = GdipGetEmHeight(family, FontStyleRegular, &em_height);
expect(Ok, stat); expect(Ok, stat);
expect(2048, em_height); expect(2048, em_height);
stat = GdipGetLineSpacing(family, FontStyleRegular, &line_spacing); stat = GdipGetLineSpacing(family, FontStyleRegular, &line_spacing);
expect(Ok, stat); expect(Ok, stat);
expect(2472, line_spacing); expect(2472, line_spacing);
GdipDeleteFontFamily(family); GdipDeleteFontFamily(family);
GdipDeleteFont(font); GdipDeleteFont(font);
font = NULL;
/* The next test must be done with a font where tmHeight -
tmInternalLeading != tmAscent. Times New Roman is such a font,
so make sure we really have it before continuing. */
memset(&lfa, 0, sizeof(lfa));
lstrcpyA(lfa.lfFaceName, "Times New Roman");
stat = GdipCreateFontFromLogfontA(hdc, &lfa, &font);
expect(Ok, stat);
memset(&lfa2, 0, sizeof(lfa2));
stat = GdipGetLogFontA(font, graphics, &lfa2);
expect(Ok, stat);
GdipDeleteFont(font);
font = NULL;
if (!lstrlenA(lfa.lfFaceName) || lstrcmpA(lfa.lfFaceName, lfa2.lfFaceName))
{
skip("Times New Roman not installed\n");
}
else
{
static const struct
{
INT input;
REAL expected;
} test_sizes[] = {{12, 9.0}, {36, 32.0}, {48, 42.0}, {72, 63.0}, {144, 1
27.0}};
UINT i;
memset(&lfa, 0, sizeof(lfa));
lstrcpyA(lfa.lfFaceName, "Times New Roman");
for (i = 0; i < sizeof(test_sizes)/sizeof(test_sizes[0]); ++i)
{
lfa.lfHeight = test_sizes[i].input;
stat = GdipCreateFontFromLogfontA(hdc, &lfa, &font);
expect(Ok, stat);
stat = GdipGetFontSize(font, &rval);
expect(Ok, stat);
expectf(test_sizes[i].expected, rval);
GdipDeleteFont(font);
font = NULL;
}
}
GdipDeleteGraphics(graphics); GdipDeleteGraphics(graphics);
ReleaseDC(0, hdc); ReleaseDC(0, hdc);
} }
static void test_fontfamily (void) static void test_fontfamily (void)
{ {
GpFontFamily *family, *clonedFontFamily; GpFontFamily *family, *clonedFontFamily;
WCHAR itsName[LF_FACESIZE]; WCHAR itsName[LF_FACESIZE];
GpStatus stat; GpStatus stat;
 End of changes. 1 change blocks. 
0 lines changed or deleted 51 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)