Commit Graph

58 Commits

Author SHA1 Message Date
Nikolay Sivov 594837824c dwrite/tests: Add some tests for setting glyph properties from GDEF.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-30 18:32:41 +01:00
Nikolay Sivov efb1aef93f dwrite/analyzer: Preserve inter-cluster spacing when apply spacing properties.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 10:25:16 +01:00
Michael Stefaniuc 7b5668a6e7 include: Make ARRAY_SIZE() available in wine/test.h.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 12:09:17 +02:00
Nikolay Sivov 63bdcf97a7 dwrite/tests: Use ARRAY_SIZE() macro in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 21:58:02 +02:00
Nikolay Sivov 39dbf09b3f dwrite/tests: Added a helper to initialize test text source.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 11:22:33 +02:00
Nikolay Sivov abfc973c85 dwrite: Fix explicit levels returned for LRE and RLE control characters.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:17:28 +02:00
Nikolay Sivov 98a8989908 dwrite/tests: Some bidi resolution tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:17:28 +02:00
Nikolay Sivov a42a9940cf dwrite: Classify direction control characters as complex.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:17:27 +02:00
Nikolay Sivov 9350e57322 dwrite/tests: More spacing tests with isDiacritic.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 10:33:50 +01:00
Nikolay Sivov b9230452ef dwrite/tests: Use shaping properties structure in tests data.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 10:33:47 +01:00
Nikolay Sivov 36cce60f8d dwrite/tests: Fix indentation warnings on GCC 6.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-09 23:56:11 +09:00
Nikolay Sivov 29abc7f172 dwrite: Keep original script for NO_VISUAL case.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 17:41:04 +09:00
Nikolay Sivov a940ab325a dwrite: Resolve BNs and embedding and override formatting characters to preceding level.
Mirrors commit 71cabaa4b9.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 00:53:51 +09:00
Nikolay Sivov 474033a4b8 dwrite/tests: Remove unused functions (Clang).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:36:20 +09:00
Nikolay Sivov cc610a0933 dwrite: Don't reset advances if original and modified advances are the same array.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 11:49:16 +09:00
Nikolay Sivov 7119c50940 dwrite/tests: Couple more tests for IDWriteNumberSubstitution creation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 11:49:12 +09:00
Nikolay Sivov 5753e22d21 dwrite: Implement InvalidateLayout().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-17 13:07:33 +09:00
Nikolay Sivov 297b3d080a dwrite: Force advances to zero for isZeroWidthSpace glyphs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:38 +09:00
Nikolay Sivov 20b5cdb1d4 dwrite/tests: Test that soft hyphen is not marked as a whitespace.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-02 14:39:22 +09:00
Nikolay Sivov 567f83a317 dwrite: Remove some redundant includes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-01 21:05:29 +09:00
Nikolay Sivov d171185062 dwrite: Reuse linebreaking isSoftHyphen flag for cluster metrics.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 22:40:34 +09:00
Nikolay Sivov 0b7f857845 dwrite: Zero width space U+200b is not a whitespace from analyzer/layout point of view.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 22:40:27 +09:00
Nikolay Sivov 4c12157c34 dwrite/tests: Fix analyzer test failures on Win10. 2015-08-21 14:33:33 +09:00
Nikolay Sivov 2132a060ea dwrite: Round advances returned from GetGdiCompatibleGlyphPlacements(). 2015-07-16 19:22:37 +09:00
Nikolay Sivov 5df702af9e dwrite/tests: Initial test for GetBaseline(). 2015-06-18 21:41:02 +09:00
Nikolay Sivov de2ae5e1b8 dwrite: Fix splitted range length, initial test for GetMetrics(). 2015-06-15 15:29:03 +09:00
Nikolay Sivov 89e1a5fb75 dwrite: Fix wrong run data reported to a renderer. 2015-06-01 14:48:21 +09:00
Nikolay Sivov a921941a17 dwrite: Implement GetGlyphOrientationTransform(). 2015-05-29 15:00:03 +09:00
Nikolay Sivov 39d71c52ef dwrite/tests: Some tests for control characters handling. 2015-05-27 19:35:00 +09:00
Nikolay Sivov 90ed96a766 dwrite: Fix splitting by bidi levels. 2015-05-22 18:04:45 +09:00
Nikolay Sivov 14158a71db dwrite: Implement ApplyCharacterSpacing(). 2015-04-27 15:10:29 +09:00
Nikolay Sivov 3cfbfeca2b dwrite/tests: Place test font file in temporary location, make sure it's deleted after the test. 2015-02-24 14:17:01 +09:00
Nikolay Sivov 6b0623fb2f dwrite: Initial implementation of GetTypographicFeatures(). 2015-01-26 12:06:18 +01:00
Nikolay Sivov 711b9f0414 dwrite: Initial implementation of GetGlyphPlacements(). 2015-01-22 13:42:34 +01:00
Nikolay Sivov 0258e5319b dwrite/tests: Basic test for GetTypographicFeatures(). 2015-01-21 15:29:17 +01:00
Nikolay Sivov 37a02acc6a dwrite: Use E_NOT_SUFFICIENT_BUFFER definition. 2014-10-08 10:19:00 +02:00
Nikolay Sivov cb8556c171 dwrite: Introduce cache to be used by shaping engines. 2014-10-07 20:22:00 +02:00
Nikolay Sivov 3704072911 dwrite: Mirror characters in case of RTL direction. 2014-10-06 17:36:26 +02:00
Nikolay Sivov 1843972e0e dwrite: Initial implementation of GetGlyphs(). 2014-10-06 17:36:01 +02:00
Nikolay Sivov 7c035744f6 dwrite: Implement CreateNumberSubstitution(). 2014-10-02 22:55:02 +02:00
Nikolay Sivov 7eac1f7156 dwrite: Implement GetTextComplexity(). 2014-09-26 14:00:06 +02:00
Nikolay Sivov 59bdda006b dwrite: Implement GetScriptProperties(). 2014-09-26 13:59:52 +02:00
Nikolay Sivov f60350808d dwrite: Implement AnalyzeLineBreakpoints() using Unicode breaking algorithm. 2014-09-05 14:41:47 +02:00
Nikolay Sivov 0dad47ea36 dwrite/tests: Initial tests for SetLineBreakpoints(). 2014-08-29 15:45:04 +02:00
Nikolay Sivov e6cb2dbaca dwrite/tests: Some tests for drawing sequence for a layout. 2014-08-05 16:37:45 +02:00
Nikolay Sivov b5184df5df dwrite: Recognize more Unicode ranges in script analyzer. 2014-06-16 09:31:45 +02:00
Huw Davies d3d4e3a9a9 dwrite/tests: U+1cc8 is not an assigned codepoint, use U+1cc7 instead. Fixes test on win 8. 2014-05-24 11:01:48 +09:00
Frédéric Delanoy 02f5ebd062 dwrite/tests: Use BOOL type where appropriate. 2013-10-25 13:36:00 +02:00
Nikolay Sivov 1cb663f5ce dwrite: Remove testing for exact script code value. 2013-02-18 15:06:23 +01:00
Nikolay Sivov aeb5950e6f dwrite: Support eight more script ranges. 2012-11-05 17:44:17 +01:00