Commit Graph

278 Commits

Author SHA1 Message Date
Austin English
0a649054ae gdi32/tests: Make sure to use return value (LLVM/Clang). 2011-02-07 10:07:13 -06:00
Kusanagi Kouichi
3311bbb319 gdi32: Check if a character is double byte or single byte. 2011-02-03 13:15:19 +01:00
Kusanagi Kouichi
c8ebdff8fa gdi32/tests: Add tests for GetGlyphOutlineA. 2011-02-03 13:15:19 +01:00
Kusanagi Kouichi
edabccd5af gdi32/tests: Consolidate identity matrices. 2011-02-03 13:15:18 +01:00
Kusanagi Kouichi
2d6b748c79 gdi32: Upper 24 bits of a character range must be same. 2011-02-01 18:14:09 +01:00
Kusanagi Kouichi
c117d45cb3 gdi32: Reject invalid character range in GetCharABCWidthsA. 2011-01-28 14:50:20 +01:00
Kusanagi Kouichi
c706ecea82 gdi32/tests: Add some more tests for GetCharABCWidthsA. 2011-01-28 12:50:53 +01:00
Greg Geldorp
566d455b29 gdi32/tests: Fix font tests on Arabic machines. 2011-01-24 12:35:02 +01:00
Akihiro Sagawa
62b5963507 gdi32: Pass the byte count to FONT_mbtowc in GetCharABCWidthsA. 2011-01-17 15:59:26 +01:00
Akihiro Sagawa
c05d8781ad gdi32/tests: Add more tests for GetCharABCWidthsA. 2011-01-17 15:59:12 +01:00
Greg Geldorp
16e9171989 gdi32/tests: Fix tmLastChar test. 2011-01-14 18:26:19 +01:00
Kusanagi Kouichi
5c987fc574 gdi32: GetCharABCWidthsA should work for DBCS. 2011-01-13 17:26:12 +01:00
Kusanagi Kouichi
fcb4a1610e gdi32/tests: Add a test for GetCharABCWidthsA with DBCS. 2011-01-13 17:26:09 +01:00
Greg Geldorp
33a5cdbf79 gdi32/tests: Allow ANSI_CHARSET for some tests. 2011-01-12 14:56:05 +01:00
Greg Geldorp
3658b84509 gdi32/tests: Skip tests on unexpected font code page. 2011-01-11 16:05:48 +01:00
Greg Geldorp
857ebf02df gdi32/tests: Fix some font test failures on non-English machines. 2011-01-10 13:03:52 +01:00
Greg Geldorp
1e922ebb07 gdi32/tests: Fix System font test for Japanese. 2011-01-07 15:00:52 +01:00
André Hentschel
56233536e8 gdi32/tests: Don't test function directly when reporting GetLastError(). 2011-01-03 11:54:06 +01:00
Austin Lund
a9aafec28a gdi32/tests: Skip GetGlyphIndices tests for non-ANSI codepages. 2010-11-15 17:21:36 +01:00
Dmitry Timoshkov
d419f24372 gdi32: Remove broken check for WinXP. 2010-11-10 16:16:42 +01:00
Alexandre Julliard
730f01801f tests: Make some variables static. 2010-10-01 13:41:42 +02:00
Andrew Nguyen
ca96aed384 gdi32: Improve AddFontMemResourceEx parameter validation. 2010-08-03 18:00:19 +02:00
Dmitry Timoshkov
81557b5e21 gdi32: Do not crash on an invalid pointer passed to AddFontMemResourceEx. 2010-08-02 16:10:06 +02:00
Nikolay Sivov
cd43ff167b gdi32: Add CreateFontIndirectEx implementation. 2010-06-14 14:14:15 +02:00
Austin English
00ddfc804a gdi32/tests: Use ret in test_CreateFontIndirect(). 2010-05-24 12:53:00 +02:00
Dmitry Timoshkov
7d3cb53cf1 gdi32: Do not use VDMX for mapping of negative font heights, based on a test case. 2010-05-18 18:44:24 +02:00
Gerald Pfeifer
08b88c42ee gdi32: Remove variable x which is not really used from testJustification. 2010-05-03 15:41:21 +02:00
Ilya Shpigor
91a1321a97 gdi32: Additional checking in the test for font creation with the OEM charset. 2010-01-19 12:21:15 +01:00
Ilya Shpigor
f91d61a529 gdi32: Test for font creation with the OEM charset. 2009-12-31 12:12:18 +01:00
André Hentschel
fb56000c13 gdi32/tests: Also test non-style suffix. 2009-12-14 12:04:04 +01:00
Francois Gouget
d442a48e2a gdi32/tests: Make test_CreateFontIndirect() static. 2009-11-24 15:53:36 +01:00
André Hentschel
762280eab0 gdi32/tests: Simplify testcase. 2009-11-18 11:14:24 +01:00
André Hentschel
e4beddb664 gdi32: Don't strip font suffix. 2009-11-17 15:14:56 +01:00
André Hentschel
8f31df1dd8 gdi32/tests: Test CreateFontIndirect for suffix stripping. 2009-11-16 13:25:00 +01:00
Dmitry Timoshkov
2158999382 gdi32: Rework the test for too large width/height font ratio to pass with different font heights, make it pass under Wine. 2009-10-07 12:27:51 +02:00
Dmitry Timoshkov
16aa1369f8 gdi32: Some fonts have a broken last segment of cmap4 table, avoid a crash in that case.
Freetype has a similar consistency check.
2009-08-03 14:58:57 +02:00
Francois Gouget
8b93e1fe06 gdi32/tests: Make test_GetTextMetrics2() static. 2009-06-29 13:22:51 +02:00
Francois Gouget
4f0c6a3172 gdi32/tests: Fix the trailing '\n' of a few ok() calls. 2009-06-26 14:40:08 +02:00
Rein Klazes
08ca2fa6a9 gdi32/tests: Show that there is an upper limit to the width of a font that can be specified. 2009-06-25 12:08:12 +02:00
Paul Vriens
f043f3db27 gdi32/tests: Fix a test failure on NT4. 2009-04-28 11:58:27 +02:00
Massimo Del Fedele
97e81bc3bd gdi32/tests: Add test for GetGlyphOutlineW() requesting buffer size for space char. 2009-03-31 16:43:04 +02:00
Francois Gouget
9de60b9c2c gdi32/tests: Use win_skip() to skip over unimplemented functionality. 2009-02-24 16:57:26 +01:00
Huw Davies
5b183a208f gdi32/tests: Don't test the height that is 1.75 times the original font height. This is unscaled in winnt yet doubled in win9x. 2009-02-23 15:24:56 +01:00
Huw Davies
ff2f88cf08 gdi32: Fix fractional scaling threshold. 2009-02-20 18:46:04 +01:00
Paul Vriens
ac6077023f gdi32/tests: Report a missing function only once. 2009-02-20 18:07:42 +01:00
Huw Davies
5c8c151aa8 gdi32/tests: Add tests for the 120 dpi bitmap fonts. 2009-02-19 15:57:47 +01:00
Huw Davies
4f25723853 gdi32: Set the font family as FF_MODERN if the panose marks it as monospaced. 2009-02-19 15:57:47 +01:00
Huw Davies
e6a0fa9f44 gdi32/tests: Output the requested font name on failure. 2009-02-19 15:57:47 +01:00
Huw Davies
ee339afa3f gdi32/tests: Output the required font height if the test fails. 2009-02-19 15:57:47 +01:00
Huw Davies
f4e3e18b42 gdi32/tests: From Vista onwards TabbedTextOut ignores justification, so remove that bit of the test. 2009-02-18 14:48:05 +01:00
Huw Davies
2c6ddb8030 gdi32: The special handling of the character codes metrics for symbol fonts should be based on the presence of the MS symbol charmap rather than whether the font is enumerated as SYMBOL_CHARSET. 2009-02-18 13:13:29 +01:00
Huw Davies
c40b434172 gdi32/tests: Win9x truncates the LONG elements of LOGFONT to 16 bit values. 2009-02-18 13:13:26 +01:00
Huw Davies
bd69c2e95a gdi32/tests: Allow the first char code to point to glyph 0 (the .notdef glyph). 2009-02-17 15:14:57 +01:00
Huw Davies
24c9a37aaf gdi32: In a Baltic locale the last char of a symbol font is reported as 0xf8fd rather than 0xf0ff. 2009-02-17 15:14:53 +01:00
Huw Davies
aecf29ae84 gdi32/tests: Win9x doesn't ensure the facename is nul terminated. Compare the logfont one element at a time. 2009-02-17 15:14:35 +01:00
Huw Davies
7cc7ad5ec4 gdi32/tests: Win98 and WinMe actually do set error codes. 2009-02-17 15:14:29 +01:00
Huw Davies
c404d00b3d gdi32/tests: GetTextFaceA called with a NULL buffer returns 0 on win98 and winMe. 2009-02-17 15:14:25 +01:00
Huw Davies
3fa05ae6a7 gdi32/tests: Only test the lowest byte of GdiRealizationInfo flags so that the test passes on Vista. 2009-02-16 16:01:38 +01:00
Huw Davies
e93d348109 gdi32: Improve calculation of the character code text metrics. 2009-02-16 16:01:37 +01:00
Huw Davies
d9811e6927 gdi32/tests: Use the ANSI text metrics so the tests work on win9x. 2009-02-12 17:53:34 +01:00
Huw Davies
8ab829a68a gdi32: Correct the font family values returned in the text metrics. 2009-02-11 16:14:46 +01:00
Dmitry Timoshkov
24937a4f0f gdi32: Add a test for the MAT2 parameter of GetGlyphOutline, make it pass under Wine. 2009-02-03 12:40:27 +01:00
Alexandre Julliard
328ca0e00c gdi32/tests: Fix an uninitialized pointer check for Win64. 2009-01-09 18:08:50 +01:00
Alexandre Julliard
428de06982 gdi32/tests: Fix a pointer casting warning on 64-bit. 2009-01-03 20:13:29 +01:00
Dmitry Timoshkov
25a1803720 gdi32: Fix a broken test. 2008-11-06 11:10:10 +01:00
Jeremy White
484add2220 gdi32/tests: Make the comparison of the enumerated and returned logfont structures actually work. 2008-10-13 12:14:23 +02:00
Jeremy White
fed3d50663 gdi32: Expand maximum font count to 4096, warn when we go over that limit. 2008-10-13 12:14:00 +02:00
Dmitry Timoshkov
0d1470575d gdi32: Allow a rounding error in the text justification test. 2008-10-06 15:30:40 +02:00
Dmitry Timoshkov
c8d5730610 gdi32: Add a test for a font being selected into 2 DCs with different transformations. 2008-10-06 15:30:36 +02:00
Dmitry Timoshkov
0467d4e4c6 gdi32: Make test_font_metrics require the font being selected into the DC. 2008-10-06 15:30:31 +02:00
Alexandre Julliard
ff6f7a57b9 gdi32/tests: Skip test that depends on Tahoma if it isn't installed. 2008-09-19 12:07:32 +02:00
Dmitry Timoshkov
21cdaeea4b gdi32: Replace DC transform by font scaling for bitmap fonts. 2008-08-21 11:42:25 +02:00
Paul Vriens
d1bcc32bf2 gdi32/tests: Don't test unimplemented functions. 2008-08-01 10:36:52 +02:00
Alexandre Julliard
680233f235 gdi32/tests: Allow some more rounding errors in glyph sizes. 2008-07-31 17:16:50 +02:00
Lei Zhang
9b4f17f630 gdi32: Glyph advances should be measured for unrotated characters. 2008-07-23 11:56:09 +02:00
Lei Zhang
78a1e07c93 gdi32: Add a test for font orientation. 2008-07-23 11:56:00 +02:00
Dmitry Timoshkov
7976d993f5 gdi32: Relax the gm.gmCellIncX comparison. 2008-07-21 13:00:42 +02:00
Michael Karcher
49eb123739 Add support for compatibility mode in WineEngCreateFontInstance. 2008-07-08 10:44:54 +02:00
James Hawkins
36e703b409 gdi32: Fix two tests that fail for all platforms. 2008-07-02 12:20:27 +02:00
Alistair Leslie-Hughes
641d6aa5c2 gdi32: Stop crash in font tests. 2008-07-01 13:45:37 +02:00
Dan Hipschman
92c8cac214 gdi32: Return the correct value from GetTextFace. 2008-06-25 11:41:00 +02:00
Dmitry Timoshkov
6f7457d8ad gdi32: Add a test for outline text metrics. 2008-06-24 12:23:03 +02:00
Dmitry Timoshkov
9675720510 gdi32: Initialize otmMacAscent, otmMacDescent, otmMacLineGap in outline text metrics. 2008-06-24 12:21:06 +02:00
Dmitry Timoshkov
41aad2dce2 gdi32: Extend the font substitution test, make it pass under Wine. 2008-06-23 12:53:22 +02:00
Dan Hipschman
c1480126b1 gdi32: Add tests for GetTextFace.
Currently only GetTextFaceA is tested, and in an ancillary way, and the
behavior differs from GetTextFaceW.
2008-06-21 11:37:20 +02:00
Alexandre Julliard
8f7f203649 gdi32/tests: Reduce the size of the test output a little. 2008-06-04 12:52:18 +02:00
James Hawkins
617d8fee03 gdi32: Fix two tests that fail in win2k3. 2008-05-19 13:36:05 +02:00
Dmitry Timoshkov
a5d288f08c gdi32: Add more font substitution tests, make them pass under Wine. 2008-05-13 20:25:50 +02:00
Paul Vriens
55902e0ce0 gdi32/tests: Run tests on win9x again. 2008-04-23 12:23:15 +02:00
Dmitry Timoshkov
2a2c66c062 gdi32: Clarify which font doesn't contain 'x'. 2008-04-14 12:40:22 +02:00
Dmitry Timoshkov
0fdd381f26 gdi32: Move negative lfWidth test into a separate body, skip the test if there is no 'x' in the font. 2008-04-07 20:34:49 +02:00
Dmitry Timoshkov
90265ac586 gdi32: Add a font scaling test when lfHeight == 0 and lfWidth != 0, make it pass under Wine. 2008-04-04 11:03:42 +02:00
Mikołaj Zalewski
4094ff0256 gdi32: Fix GetGlyphIndices to select properly the invalid char glyph for TrueType fonts. 2008-04-02 12:36:42 +02:00
Francois Gouget
e637e83ec4 gdi32/tests: Add the trailing '\n' to a couple of ok() calls. 2008-03-03 12:03:52 +01:00
Huw Davies
34002d4c7e gdi32: Add a partial implementation of GdiRealizationInfo. 2008-02-28 10:44:35 +01:00
Reece H. Dunn
e3a5167ffe gdi32: Vista returns UNICODE_NOCHAR if a character does not exist. 2008-01-25 12:30:24 +01:00
Dmitry Timoshkov
0acfe68864 gdi32: Actually perform the fractional scaling test, make it pass under Wine. 2008-01-21 11:39:20 +01:00
Dmitry Timoshkov
2fdaa56693 gdi32: Add a test for undocumented EnumFontFamiliesEx(NULL), make it pass under Wine. 2008-01-15 11:38:15 +01:00
Dmitry Timoshkov
d973271566 gdi32: Use public FS_xxxxxx defines. 2008-01-14 13:11:42 +01:00
Dmitry Timoshkov
535053b927 gdi32: Add support for scaling font metrics. 2008-01-08 17:05:35 +01:00
Dmitry Timoshkov
3068ac9eca gdi32: Add more tests for bitmap font metrics scaling. 2008-01-08 12:54:49 +01:00
Aric Stewart
a8e62526f7 fonts: Correct External leading for japanese small font and enable fontmetric test for the font. 2007-12-27 14:13:30 +01:00
Hans Leidekker
0dc765809c gdi32: GetCharABCWidthsI does not require a scalable font. 2007-12-10 12:27:13 +01:00
Aric Stewart
0433883ec1 gdi32: Font tests with Japanese font data. Thanks to Dmitry Timoshkov for the data and tests. 2007-12-10 12:12:57 +01:00
Dan Kegel
f4b0cf5f5b gdi32/tests: Fix false pass in warn+heap case. 2007-10-24 13:47:28 +02:00
Hans Leidekker
d21c5044c6 gdi32: Remove a test that expects the break character to equal ascii space. 2007-10-23 12:22:59 +02:00
Francois Gouget
5266e57975 Assorted spelling fixes. 2007-07-31 21:37:50 +02:00
Alexandre Julliard
cb0a626e50 gdi32/tests: Don't test default char, it doesn't have to be always the same. 2007-07-25 13:46:18 +02:00
Huw Davies
7495d81495 gdi32: Using a bitmap font as the fallback sans serif is a very bad idea. 2007-07-05 19:54:52 +02:00
Francois Gouget
dddbd3cbdb gdi32/tests: Run the GetTextMetricsA() tests on Windows 9x too. 2007-06-21 15:37:43 +02:00
Michael Stefaniuc
5f62da109e janitorial: Pass HEAP_ZERO_MEMORY as flag to HeapAlloc() instead of zeroing out the allocated memory in a later call. 2007-04-25 12:26:07 +02:00
Dmitry Timoshkov
ebe2ac4879 gdi32: Fix a couple of problems with negative lfWidth test. 2007-04-12 16:11:58 +02:00
Felix Nawothnig
f73d7d07c8 gdi32: Properly handle negative font widths. 2007-04-02 11:18:38 +02:00
Dmitry Timoshkov
bd07f3f39e gdi32: Add a GetTextMetrics test, make it pass under Wine. 2007-03-15 13:09:56 +01:00
Stefan Huehner
51a7ca3440 Change some functions arguments from () -> (void). 2007-03-12 12:25:31 +01:00
Dmitry Timoshkov
7f16f21cf7 gdi32: Add an extensive EnumFontFamilies test, fix some failures when running under Wine. 2007-03-06 21:52:00 +01:00
Paul Vriens
a105c6b1de gdi32/tests: Use skip where appropriate. 2007-03-05 18:08:43 +01:00
Paul Vriens
37cba3a9f9 gdi32/tests: Make sure we can run on win9x and NT again. 2007-03-05 18:08:35 +01:00
Hans Leidekker
748032e0fb gdi32: Implement GetFontUnicodeRanges. 2007-03-02 11:39:32 +01:00
Dmitry Timoshkov
14478b8ba2 gdi32: Move get_glyph_indices near its caller test_font_charset. 2007-02-20 12:24:00 +01:00
Alexandre Julliard
6ede7a1130 gdi32/tests: Create a window for justification tests that generate output
instead of painting over the desktop.
2007-02-15 19:41:34 +01:00
Dmitry Timoshkov
8295d9040b gdi32: Skip the SYMBOL_CHARSET test if Symbol or Wingdings is not installed. 2007-02-15 16:55:23 +01:00
Dmitry Timoshkov
64e1ce40aa gdi32: Fix a typo in the memcmp call. 2007-02-15 15:42:54 +01:00
Pedro Araujo Chaves Jr
2051bcccca gdi32: Fix for GetTextExtentExPointW() and ExtTextOutW(). 2007-02-15 13:27:24 +01:00
Dmitry Timoshkov
37591409b2 gdi32: Revert 1440eb5a35 and add the test showing that the change was wrong. 2007-02-15 11:21:53 +01:00
Dmitry Timoshkov
e915a3cfb1 gdi32: Make sure that we don't read/write beyond the provided buffer in GetOutlineTextMetricsA, add a test case. 2007-02-05 14:03:45 +01:00
Francois Gouget
7a76ae1a65 gdi32/tests: Replace an '#if 0' with an 'if (0)'. 2007-01-08 12:09:05 +01:00
Alexandre Julliard
7dfc447741 gdi32: Renamed the gdi directory to gdi32. 2006-10-20 12:25:29 +02:00