Esme Povirk
a554079860
gdiplus: Implement reference counting for private font families.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50896
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 11:33:16 +02:00
Jeff Smith
8eff23cc06
gdiplus/tests: Use wide-char string literals for test strings.
...
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-10 09:41:39 +01:00
Jeff Smith
796550cc72
gdiplus/tests: Use wide-char string literals for file names.
...
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-10 09:41:33 +01:00
Jeff Smith
de0497df87
gdiplus/tests: Use wide-char string literals for font names.
...
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-10 09:41:21 +01:00
Michael Stefaniuc
4e9ad7b305
gdiplus/tests: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-24 15:02:08 +02:00
Shawn M. Chapla
04d536267e
gdiplus: Set font emSize to height minus internal leading.
...
Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codewevers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-15 20:06:37 +02:00
Shawn M. Chapla
bfc8404041
gdiplus/tests: Add additional logfont size tests.
...
Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codewevers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-15 20:06:37 +02:00
Vincent Povirk
689e94c597
gdiplus/tests: Don't test the exact substitution of MS Shell Dlg.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47872
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-23 12:20:43 +01:00
Vincent Povirk
861811254f
gdiplus/tests: Don't test font face of DEFAULT_GUI_FONT.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47872
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-23 12:20:41 +01:00
Dmitry Timoshkov
b9307cfa61
gdiplus: Create FontFamily objects only once for the FontCollection.
...
.Net 4.7+ depends on this behaviour and expects to be able to do pointer
equality tests for FontFamily objects.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-02 16:21:45 +01:00
Dmitry Timoshkov
2884da7ef7
gdiplus/tests: Add tests for FontFamily object management.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-02 16:21:43 +01:00
Sven Baars
5f25d7a9a9
gdiplus/tests: Add some font family pointer tests.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 18:35:46 +01:00
Nikolay Sivov
a3ed938e4a
gdiplus/tests: Add some missing return value checks (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-07 10:47:20 -06:00
Nikolay Sivov
a1ff2c44ea
gdiplus/tests: Add parameter validation test for GdipGetFontCollectionFamilyCount().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-01 21:50:57 +01:00
Nikolay Sivov
b1ccf61f22
gdiplus/tests: Check more return values (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 20:44:33 +01:00
Fabian Maurer
89366f740f
gdiplus: In GdipPrivateAddMemoryFont allow loading fonts with long names.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 20:44:33 +01:00
Nikolay Sivov
4616954a9d
gdiplus/tests: Some tests for GdipGetFontCollectionFamilyList() and system collection.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-21 23:07:00 +01:00
Vincent Povirk
8f54e2034e
gdiplus/tests: Enable floating point exceptions.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-26 10:10:10 +02:00
Owen Rudge
1ddf2b4db8
gdiplus/tests: Add tests for invalid parameter handling for GdipGetFontHeight.
...
Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 21:40:33 +01:00
Nikolay Sivov
668fe2030d
gdiplus: Fix its vs it's typos.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 11:13:49 -05:00
Nikolay Sivov
b18ecadef7
gdiplus/tests: Fix a font leak (Valgrind).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-01 01:04:37 +09:00
Alexandre Julliard
9fb9cb2bb7
gdiplus/tests: Check the correct fallback font when Arial is missing.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:51 +09:00
Gerald Pfeifer
42afdebc43
gdiplus: Remove three unused constants.
2014-08-25 20:40:16 +02:00
Nikolay Sivov
d68dde3751
gdiplus/tests: Fix some leaks when running with Wine (Valgrind).
2014-04-25 14:03:31 +02:00
Dmitry Timoshkov
1c8d4aaa4b
gdiplus/tests: Fix tests compilation with __WINESRC__ defined.
2013-10-16 11:41:20 +02:00
Dmitry Timoshkov
84ef3d484c
gdiplus: get_font_hfont() should ask gdi32 to match font height against the character height instead of cell height.
2013-06-19 19:18:39 +02:00
Dmitry Timoshkov
84ea75f1c6
gdiplus: GdipGetLogFont should use device scale and transform when appropriate.
2012-10-26 16:48:53 +02:00
Dmitry Timoshkov
5e65f95542
gdiplus: Test also lf.lfEscapement and lf.lfOrientation returned by GdipGetLogFont.
2012-10-23 12:11:05 +02:00
Dmitry Timoshkov
22336a121b
gdiplus: Add a test for GdipMeasureDriverString called with not NULL matrix.
2012-10-12 11:28:12 +02:00
Dmitry Timoshkov
608a936ada
gdiplus: Clarify where extra Y margin added by GdipMeasureString comes from.
2012-10-11 20:40:08 +02:00
Dmitry Timoshkov
8fd422499b
gdiplus: Add more font transformation tests.
2012-10-09 16:12:17 +02:00
Dmitry Timoshkov
e664c2bd3a
gdiplus: Add a font transformation test.
2012-10-08 17:35:54 +02:00
Dmitry Timoshkov
691be74f17
gdiplus: Take into account font substitution in GdipCreateFontFromLogfont.
2012-09-27 20:49:37 +02:00
Dmitry Timoshkov
65a966de76
gdiplus: Take into account font substitution in GdipCreateFontFamilyFromName.
2012-09-27 20:49:29 +02:00
Dmitry Timoshkov
25ee85fe84
gdiplus: Move font substitution test into a separate function.
2012-09-27 20:49:23 +02:00
Dmitry Timoshkov
eeb52474c1
gdiplus: Add a test for creating a nonexistent font with GdipCreateFontFromLogfont.
2012-06-19 13:44:07 +02:00
Dmitry Timoshkov
a90fcbff00
gdiplus: Add a bunch of tests for internal font metrics.
2012-05-11 15:43:55 +02:00
Dmitry Timoshkov
4b9e1db09f
gdiplus: Use Tahoma instead of Arial for gdiplus font tests.
2012-04-23 11:41:25 +02:00
Francois Gouget
bcd793bf3b
gdiplus/tests: Don't check for hardcoded family font names.
...
Only check that each font family is different and that we can create fonts from them.
2011-09-13 11:27:38 +02:00
Austin English
0d8f2b364c
gdiplus/tests: Make sure to use return values (LLVM/Clang).
2011-02-07 10:11:30 -06:00
Austin Lund
ae0a484945
gdiplus/tests: Fix GetLogFont charset tests for Asian platforms.
2010-10-25 13:52:51 +02:00
Alexandre Julliard
415bb3c5a0
gdiplus/tests: Don't fail if we do find Microsoft Sans Serif on Wine.
2010-07-01 12:06:35 +02:00
Vincent Povirk
531219f84d
gdiplus: Do not create FontFamilies for bitmap fonts.
2010-04-16 12:01:42 +02:00
Justin Chevrier
b7679da9a7
gdiplus: Handle UnitWorld in GdipGetFontHeightGivenDPI.
2010-03-26 10:31:25 +01:00
Justin Chevrier
cf5c16c49e
gdiplus/tests: Add GdipGetFontHeightGivenDPI tests.
2010-03-26 10:31:18 +01:00
Huw Davies
70742d5e5a
gdiplus: Fix a memory leak in the tests.
...
Found by Valgrind.
2009-12-15 16:09:12 +01:00
Vincent Povirk
377b73d022
gdiplus: Don't accept MS Sans Serif as the generic sans serif font.
2009-09-08 13:45:03 +02:00
Alexandre Julliard
186528e298
gdiplus/tests: Use the global wine_dbgstr_w instead of a local variant.
2009-08-19 13:36:22 +02:00
Vincent Povirk
73eea0d05f
gdiplus: Create a static InstalledFontCollection object, currently empty.
2009-04-28 13:10:02 +02:00
Vincent Povirk
31f2b8e1ea
gdiplus: Add test for GdipNewInstalledFontCollection.
2009-04-28 13:10:01 +02:00