Fabian Maurer
2d6fdf7c8e
dwrite/tests: Prevent "misleading indentation" warnings.
...
Happens on gcc 12.2.0
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-02-02 18:08:39 +01:00
Nikolay Sivov
e5bfd522d2
dwrite/tests: Use existing to create factory instance.
2022-10-18 23:52:30 +02:00
Nikolay Sivov
c8592b97e3
dwrite: Set initial justification value for default shaper.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-09 23:21:40 +02:00
Nikolay Sivov
a23b1dbf39
dwrite/tests: Add some tests for glyph justification values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-08 18:42:12 +02:00
Nikolay Sivov
d8584a16ed
dwrite: Handle higher planes when setting DWRITE_SCRIPT_SHAPES_NO_VISUAL.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-06 21:40:39 +02:00
Nikolay Sivov
eddf252aff
dwrite: Fix spans length reported by AnalyzeScript() for characters above BMP.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-02 22:10:21 +02:00
Nikolay Sivov
5d9f0be001
dwrite: Handle variation selectors 17-256 in MapCharacters().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-01 17:42:49 +02:00
Nikolay Sivov
55439cc3ef
dwrite: Skip variation selectors in MapCharacters().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 21:52:25 +02:00
Nikolay Sivov
5b46a8a065
dwrite/fallback: Add mappings for some CJK ranges.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-09 15:53:32 +02:00
Nikolay Sivov
2879930172
dwrite/tests: Add a helper to create analyzer instance.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-09 15:53:32 +02:00
Nikolay Sivov
2dd903885b
dwrite: Fix stretch value validation in CreateTextFormat().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:09:02 +02:00
Nikolay Sivov
d8fa0ff148
dwrite: Add some mappings for Tahoma in the system fallback.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:10 +02:00
Nikolay Sivov
26e717c565
dwrite: Remove old system fallback logic.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:10 +02:00
Nikolay Sivov
d37eb0f144
dwrite: Implement MapCharacters() for custom fallback.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:09 +02:00
Nikolay Sivov
fcbb0f6c61
dwrite: Duplicate mapping data when creating fallback object.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:09 +02:00
Nikolay Sivov
cecf7d55a9
dwrite: Implement CreateTextFormat() for IDWriteFactory6.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-26 13:26:56 +02:00
Nikolay Sivov
fe86eeceeb
dwrite: Implement newer GetSystemFontCollection() variants.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 14:59:51 +02:00
Nikolay Sivov
38d2d2f350
dwrite: Initial implementation of CreateFontCollectionFromFontSet().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 14:59:46 +02:00
Nikolay Sivov
58ea0d81e5
dwrite/tests: Use table access helpers for CBLC tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 14:59:19 +02:00
Nikolay Sivov
76a4039e27
dwrite/tests: Add a test for unset axis for references created with IDWriteFactory3.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 14:59:14 +02:00
Nikolay Sivov
76fa97cddd
dwrite/tests: Fix context text.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:57:46 +02:00
Nikolay Sivov
77c06dfb29
dwrite/tests: Use safe table access helpers for GetFontSignature().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:57:42 +02:00
Dmitry Timoshkov
a90d976bb4
dwrite/tests: Add some fallback tests for Segoe UI Symbol.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-05 10:49:22 +02:00
Eric Pouech
b70375e60b
dwrite/tests: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-25 19:02:18 +01:00
Eric Pouech
097191926a
dwrite/tests: Don't outdent todo_wine*.
...
This prevents -Wmisleading-indentation warnings (Mingw GCC11).
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-22 11:25:48 +01:00
Nikolay Sivov
b7d24e2299
dwrite/tests: Remove remaining kernel32 heap calls.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-28 21:10:21 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Fabian Maurer
ddb315bfd2
dwrite/tests: Avoid "misleading indentation" warnings.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:51 +01:00
Nikolay Sivov
47f5a50260
dwrite/tests: Use a better invalid value to make a test pass reliably.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 14:46:50 +01:00
Nikolay Sivov
cb0b746f9a
dwrite: Partially implement newer TranslateColorGlyphRun() variant.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 14:46:47 +01:00
Nikolay Sivov
88bc8f948e
dwrite: Implement GetMatchingFontsByLOGFONT().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 18:15:02 +01:00
Nikolay Sivov
6dbaba7cb3
dwrite/tests: Use CRT memory allocation functions.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-19 16:27:03 +01:00
Nikolay Sivov
8ca898ed36
dwrite/tests: Add a linebreaking test regarding LB30 rule changes in Unicode 13.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-15 19:34:22 +02:00
Nikolay Sivov
eba92fd3a7
dwrite/tests: Use winetest context for some tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 18:42:27 +02:00
Nikolay Sivov
f47751a992
gdi32: Update font realization structure definition.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-03 11:01:41 +02:00
Nikolay Sivov
ada2543e68
dwrite/tests: Add some tests for HitTestTextRange().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-19 17:05:02 +02:00
Nikolay Sivov
defb7d9c76
dwrite/tests: Add glyph origin tests for sideways mode.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:41:40 +02:00
Nikolay Sivov
ff983fe75f
dwrite/tests: Add some tests for CreateFontCollectionFromFontSet().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-29 10:07:12 +02:00
Nikolay Sivov
a56112c330
dwrite: Implement IDWriteFontSet1::CreateFontResource().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 10:51:50 +01:00
Nikolay Sivov
6fea399a84
dwrite/tests: Extend tests for synthesized axis values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 10:51:47 +01:00
Nikolay Sivov
fc1f50c515
dwrite/tests: Test font set properties that should be always available.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:28:27 +01:00
Nikolay Sivov
3fb3b87210
dwrite/tests: Reduce number of skipped test messages to one per test.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:28:26 +01:00
Nikolay Sivov
9c5f2853ec
dwrite/tests: Remove tests failing on Win10 20H2.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:28:26 +01:00
Nikolay Sivov
e729b26026
dwrite/tests: Add a test for matching in system font set.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-11 13:13:35 +01:00
Nikolay Sivov
318ebc89dc
dwrite: Implement GetSystemFontSet().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-11 13:13:35 +01:00
Nikolay Sivov
0ce34328bd
dwrite: Partially implement GetPropertyValues().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 11:09:27 +01:00
Nikolay Sivov
a8e29f0ed7
dwrite/tests: Handle missing English font names.
...
Same as 0e4172a0c2
but for another test file.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-09 12:01:47 +01:00
Giovanni Mascellani
23d6ac27db
dwrite/tests: Remove overzealous test.
...
While this test happens to always be true on Windows, this is just a
property of the fallback fonts installed on the system, not a property
of the code. Since we cannot control the fonts installed on users'
computers, it makes no sense to do this test.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-05 17:55:44 +01:00
Nikolay Sivov
3049c94753
dwrite: Implement GetFontSet() for families.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-04 21:43:26 +01:00
Nikolay Sivov
f40c2a19e2
dwrite: Return font set for matched font list.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-04 21:43:26 +01:00