Akihiro Sagawa
b4a10d17c6
gdi32/tests: Add more text metrics tests in synthetic bold bitmap fonts.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:55:08 +01:00
Akihiro Sagawa
c17a8f32c4
gdi32: Fix ABC width calculations when using vertical font.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 10:20:24 +01:00
Akihiro Sagawa
34c4687f25
gdi32/tests: Add more ABC width tests with vertical font.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 10:20:21 +01:00
Akihiro Sagawa
da63c2356d
gdi32/tests: Add more ABC width tests in various widths.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 10:20:19 +01:00
Akihiro Sagawa
2a402a427a
gdi32: Fix ABC width calculations when applying transformations internally.
...
This fixes a regression introduced by f6bc356860
.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 10:20:16 +01:00
Michael Stefaniuc
5c3928df94
gdi32/tests: Use the global HeapAlloc() wrappers.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-31 09:46:37 +01:00
Huw Davies
ccc871dcd0
gdi32: Set otmMacLineGap from the line gap in the hhea table.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-19 19:49:02 +01:00
Fabian Maurer
6f790606c0
gdi32: In AddFaceToList allow fonts with long names and add tests.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 22:00:39 +01:00
Nikolay Sivov
bba13f04c4
gdi32: Fix widths returned by GetCharWidthI().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-13 10:14:12 +02:00
Huw Davies
8dc039a7d1
gdi32/tests: Prevent a crash if the shell dlg font is not found.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:17:27 +02:00
Huw Davies
858c07f667
gdi32/tests: Combine the matching macros into a single function.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-17 09:54:18 +01:00
Nikolay Sivov
533d800d42
gdi32: Cleanup otmfsType bit mask from reserved bits.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 10:00:02 +01:00
Nikolay Sivov
be287422ce
gdi32/tests: Test that otmfsType field is cleaned up from reserved bits.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 10:00:00 +01:00
Francois Gouget
4099ddb521
gdi32/tests: Add inline, __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
...
And standardize their formatting and parameter names.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 10:24:23 +01:00
Michael Stefaniuc
68f1df237a
gdi32/tests: Make use of todo_wine_if().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 09:14:34 -05:00
Andrey Gusev
6fae520e1c
gdi32/tests: Fix a typo in trace() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 12:27:18 +09:00
Huw Davies
ef34222131
gdi32/tests: Allocate the font enum data structures.
...
These are in excess of 250kB and may overflow the stack.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-14 19:26:11 +09:00
Nikolay Sivov
10437c027f
gdi32/tests: Simplify tests using todo_wine_if().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:17:28 +09:00
Nikolay Sivov
c98f40e227
gdi32: Fix otmfsSelection to have bold style set in case of bold simulation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 13:40:28 +09:00
Nikolay Sivov
11be16ca79
gdi32/tests: Turn some asserts in font tests into regular tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 23:27:16 +09:00
Nikolay Sivov
6389f41135
gdi32: Fix otmfsSelection to have italic style set in case of oblique simulation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 23:27:13 +09:00
Akihiro Sagawa
34e7361790
gdi32: Fix the advance width in synthetic bold glyphs with scaling.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-15 23:49:43 +09:00
Akihiro Sagawa
37fdc50097
gdi32/tests: Add font advance tests for synthetic bold face with scaling.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 11:48:44 +01:00
Akihiro Sagawa
6cd42f3df7
gdi32/tests: Refactor test_fake_bold_font() to avoid code duplications.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 11:48:41 +01:00
Nikolay Sivov
0e92f07f41
gdi32/tests: Some empty string tests for GetTextExtentPoint.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:09:31 +09:00
Nikolay Sivov
819d36786e
gdi32: Improve structure layout of data returned by GetFontRealizationInfo().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 13:00:32 +09:00
Aric Stewart
fc94e5dd5f
gdi32/tests: Mark Hebrew stock font test as different, like Arabic.
...
Signed-off-by: Aric Stewart <aric@codeweavers.com>
2015-10-06 00:01:56 +09:00
Nikolay Sivov
6f7dfe2cea
gdi32: Implement GetFontFileInfo().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2015-10-05 22:27:11 +09:00
Aric Stewart
781b88b7c5
gdi32/tests: Expand tests skipped in Arabic to also skip in Hebrew.
...
Signed-off-by: Aric Stewart <aric@codeweavers.com>
2015-10-01 23:29:57 +09:00
Nikolay Sivov
af5884ffe5
gdi32/freetype: Handle fonts with broken usWinDescent values.
2015-10-01 16:29:40 +09:00
Nikolay Sivov
efb8afcfdc
gdi32/tests: Avoid excessive traces for fonts with OS/2 version 4 tables.
2015-09-11 16:05:23 +09:00
Gerald Pfeifer
775de7922e
gdi32: Avoid two cases of shift overflow in get_glyph_indices.
2015-09-08 15:10:59 +09:00
Nikolay Sivov
7889b17425
gdi32: Added GetFontRealizationInfo() export.
2015-09-01 19:28:16 +09:00
Nikolay Sivov
adb0f582e0
gdi32/tests: Add names to data structure GetFontRealizationInfo returns, explicitly test with older variant fields.
2015-09-01 19:27:20 +09:00
Huw Davies
5021e91940
gdi32/tests: 64-bit GetFontFileInfo may fail with error ERROR_NOACCESS.
2015-08-20 20:35:20 +09:00
Huw Davies
76c321d5e6
gdi32: Add tests for GetFontRealizationInfo, GetFontFileInfo and GetFontFileData.
2015-08-17 14:52:15 +09:00
Daniel Lehman
22c51eeabf
gdi32: Check for NULL pointer in GetOutlineTextMetrics.
2015-07-28 13:41:46 +02:00
Dmitry Timoshkov
50b6b376cb
gdi32: EnumFontFamilies should enumerate substituted fonts only when directly asked for.
2015-07-17 19:29:10 +09:00
Dmitry Timoshkov
5289c9fd92
gdi32: Add a test for enumerating substituted fonts.
...
EnumFontFamilies(NULL) should not enumerate substituted fonts,
but EnumFontFamilies("MS Shell Dlg") should do.
2015-07-17 19:28:32 +09:00
Huw Davies
c81ff0f8cf
gdi32/tests: Japanese Win 7 uses MS Shell Dlg as its default GUI font.
2015-06-19 20:14:38 +09:00
Huw Davies
002cf965e1
gdi32/tests: Fix Courier test on Arabic locales.
2015-06-18 21:41:02 +09:00
Francois Gouget
150d920310
gdi32/tests: Silence some font traces that generate too many lines.
2015-05-11 15:19:04 +09:00
Matteo Bruni
a71f25d239
gdi32/tests: Add a test for GetGlyphOutline with an insufficient buffer.
2014-10-09 18:24:53 +02:00
Qian Hong
887a6832bb
gdi32/tests: Improve font name localization tests by not requiring a strict language match.
2014-07-10 12:40:44 +02:00
Alexandre Julliard
7d21dd26c8
gdi32/tests: Remove some noisy traces.
2014-06-13 10:12:28 +02:00
Huw Davies
80a29e2d31
gdi32: CLIP_DFA_DISABLE should disable the font association mechanism.
2014-06-11 19:15:28 +02:00
Huw Davies
0987e77089
gdi32/tests: tmLastChar is solely governed by the last entry before 0xffff in the cmap.
2014-06-11 16:04:55 +02:00
Alex Henrie
0fb88f8d01
gdi32/tests: Add MS Shell Dlg tests.
2014-05-13 19:58:09 +02:00
Huw Davies
c66f0019ff
gdi32: In a Hebrew locale the last char of a symbol font is reported as 0xf896 rather than 0xf0ff.
2014-05-07 18:57:35 +02:00
Austin English
d0fa8cbc74
gdi32/tests: Skip some tests if Times New Roman is not installed.
2014-04-11 19:12:31 +02:00
Akihiro Sagawa
f548ce29ed
gdi32/tests: GetGlyphOutlineA is broken for johab charset on windows.
2014-03-20 10:41:48 +01:00
André Hentschel
87d85357cd
gdi32/tests: GetCharABCWidthsA is broken for johab charset on windows.
2014-03-18 11:40:30 +01:00
Akihiro Sagawa
04e8b00ab0
gdi32: Improve the font enumeration order for complex script locales.
2014-03-12 20:27:43 +01:00
Akihiro Sagawa
1e7116ca9f
gdi32/tests: Avoid using GetGlyphIndices directly.
2014-02-19 16:39:29 +01:00
Akihiro Sagawa
efe7a9763f
gdi32/tests: Improve the font search method for test_EnumFontFamiliesEx_default_charset.
2014-02-19 16:39:29 +01:00
Akihiro Sagawa
feaf554778
gdi32/tests: Mark Win2k result as broken.
2014-02-19 16:39:28 +01:00
Akihiro Sagawa
f6475ace5f
gdi32: Improve vertical writing metrics.
2014-01-13 17:37:38 +01:00
Akihiro Sagawa
a221654aae
gdi32/tests: Add tests for vertical writing metrics.
2014-01-13 17:37:37 +01:00
Akihiro Sagawa
f6bc356860
gdi32: Fix ABC metrics for rotated font.
2014-01-13 17:37:35 +01:00
Akihiro Sagawa
b8f22f4755
gdi32/tests: Add more GetCharABCWidths tests for rotated font.
2014-01-13 17:37:34 +01:00
Frédéric Delanoy
cc97a2385a
gdi32/tests: Constify a character string.
2013-12-23 11:54:31 +01:00
Akihiro Sagawa
a88a121059
gdi32: Use ANSI character code as glyph index for bitmap fonts.
2013-12-11 18:16:59 +01:00
Akihiro Sagawa
99ceb599bb
gdi32: Synthesize bold glyphs for outline fonts.
2013-10-21 20:23:55 +02:00
Akihiro Sagawa
cab2cacb8e
gdi32: Adjust fake bold outline font metrics.
2013-10-21 20:23:55 +02:00
Akihiro Sagawa
b6666014c5
gdi32/tests: Add tests for fake bold outline fonts.
2013-10-21 20:23:54 +02:00
Dmitry Timoshkov
8c22e66217
gdi32/tests: Fix font tests compilation with __WINESRC__ defined.
2013-10-17 10:46:51 +02:00
Akihiro Sagawa
0b58ab7ac9
gdi32/tests: Skip linked font like SimSun-ExtB in fixed-pitch font selection.
2013-10-09 10:08:06 +02:00
Akihiro Sagawa
88acc9c899
gdi32: Don't modify output glyph metrics unless the function succeeds.
2013-10-03 20:06:51 +02:00
Akihiro Sagawa
042b39a82b
gdi32: Fix the B spacing value of empty glyph.
2013-10-02 20:17:03 +02:00
Akihiro Sagawa
db86409db6
gdi32: Return fake BBox when requesting empty glyph metrics.
2013-10-01 19:26:17 +02:00
Akihiro Sagawa
24e0e4d150
gdi32/tests: Fix copy&paste issues related to gmBlackBoxY.
2013-10-01 19:25:25 +02:00
Francois Gouget
d3672524ed
Assorted spelling fixes.
2013-10-01 19:09:08 +02:00
Akihiro Sagawa
e2bce62a6d
gdi32: Return GDI_ERROR when requested empty glyph bitmaps.
2013-09-26 19:56:57 +02:00
Akihiro Sagawa
cc7b39681d
gdi32/tests: Add more empty glyph tests.
2013-09-23 20:32:23 +02:00
Aric Stewart
3f4ef58b0f
gdi32: ABC value signs remain the same despite any changes in layout direction or viewport.
2013-09-12 21:31:09 +02:00
Aric Stewart
4a300d2423
gdi32: GetCharWidth32A/W return positive widths for all layouts and various DC transforms.
2013-09-11 18:33:04 +02:00
Huw Davies
774f57ca24
gdi32/tests: Add vdmx tests.
2013-08-28 16:14:40 +02:00
Huw Davies
7310bdb498
gdi32/tests: Mark some tests as exact.
2013-08-28 16:14:40 +02:00
Huw Davies
18edb16ace
gdi32/tests: Add an option to match metrics exactly.
2013-08-28 16:14:38 +02:00
Huw Davies
820c14cafc
gdi32/tests: Separate out the metrics checking code.
2013-08-28 16:14:38 +02:00
Huw Davies
2f76829c84
gdi32/tests: Split write_ttf_file() into a resource loader and tmp file writer.
2013-08-28 16:14:37 +02:00
Huw Davies
cf9cb6c118
gdi32: Ignore max_extent if nfit is NULL.
2013-07-22 17:16:04 +02:00
Aric Stewart
37d216cc56
gdi32/tests: Add a test case for vertical fonts enumeration order.
2013-06-20 22:14:35 +02:00
Dmitry Timoshkov
705a0f0238
gdi32: Scale default GUI fonts to match screen resolution changes.
2013-06-17 19:30:49 +02:00
Dmitry Timoshkov
6834a44dc4
gdi32/tests: Add a test for default font height scaling with screen resolution changes.
2013-06-17 19:30:49 +02:00
Dmitry Timoshkov
288f3be439
gdi32/tests: Skip the bitmap font max width test on not 96 dpi resolutions.
2013-06-17 19:30:48 +02:00
Aric Stewart
ceb81eee20
gdi32: Turn off tategaki if the unicode code point is outside of the rotated ranges.
2013-06-05 20:30:58 +02:00
Aric Stewart
3108f3cf3d
gdi32/tests: Do not try to test OS/2 win metrics on non-windows fonts.
2013-05-29 18:12:54 +02:00
Aric Stewart
546c587036
gdi32: GetGlyphIndices does substitute glyph.
2013-05-20 12:06:25 +02:00
Aric Stewart
adfa3c0c57
gdi32/tests: Update the vertical font to be a proper windows vertical font.
2013-05-20 12:06:21 +02:00
Akihiro Sagawa
8f8363ede6
gdi32: Ignore the lfHeight value when it exceeds the limit.
2013-05-08 14:29:06 +02:00
Sam Edwards
21dbe1c949
gdi32: Clip font glyphs to fit within text metrics.
2013-05-02 12:32:53 +02:00
Akihiro Sagawa
f50e649578
gdi32/tests: Fix tests for fixed-pitch full-width character advance. It's double of tmAveCharWidth.
...
For instance, 19 ppem "VL Gothic" on Windows, the advance value is 10
for half-width characters, but 18 for full-width characters. In this
case, tmAveCharWidth is 9. Thus using tmAveCharWidth is reasonable.
2013-04-04 19:39:00 +02:00
Alexandre Julliard
591a31ba67
gdi32: Increment the face refcount when loading the same font file multiple times.
2013-03-04 11:36:04 +01:00
Byeongsik Jeon
1c846e70f0
gdi32: Fix the GdiGetCodePage() support ANSI_CHARSET font associated charset.
2013-02-27 19:23:44 +01:00
Akihiro Sagawa
9aa8300f99
gdi32: Ensure a fixed-pitch full-width character has double advance of a half-width character.
2013-02-07 15:53:48 +01:00
Alexandre Julliard
8681774a4f
gdi32: Support for hidden flag of CreateScalableFontResource.
2013-01-15 14:30:35 +01:00
Alexandre Julliard
46532e8d8a
gdi32: Add support for .fot files in RemoveFontResource.
2013-01-15 14:30:35 +01:00
Alexandre Julliard
4fc8bf18f3
gdi32: Implement RemoveFontResource.
2013-01-15 14:30:22 +01:00
Alexandre Julliard
1c2f23cf2f
gdi32: Add helper functions for GetTextExtentExPoint and fix handling of text justification.
2012-12-18 19:21:44 +01:00