Commit Graph

145 Commits

Author SHA1 Message Date
Nikolay Sivov 17e9560e36 dwrite: Use array for script tags.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-25 23:09:08 +01:00
Nikolay Sivov 41cba1dcd5 dwrite: Update line breaking logic with Unicode 11.0.0 changes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-06 21:04:04 +01:00
Nikolay Sivov d4eeb162bb tools: Update to Unicode 11.0.0.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-03 12:01:40 +02:00
Piotr Caban 71b3ba57f7 dwrite: Fix features dumping in analyzer_dump_user_features.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Nikolay Sivov<nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-12 11:03:28 +02:00
Nikolay Sivov d31651b705 dwrite: Use ARRAY_SIZE() macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 09:24:48 +01:00
Huw Davies cd746afd0d dwrite: Use the correct array index.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-02 13:23:34 +02:00
Jacek Caban 850b67f28f dwrite: Properly free mappings in fontfallbackbuilder_Release.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-02 10:14:13 +02:00
Nikolay Sivov 8dc81ed2a4 dwrite: Implement AddMapping().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-22 15:13:17 +02:00
Nikolay Sivov e1a41faf76 dwrite: Add warning message for unsupported interfaces.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-22 15:13:10 +02:00
Nikolay Sivov c3252c3774 dwrite: Added custom IDWriteFontFallback stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 14:04:42 +02:00
Nikolay Sivov 3acbf50068 dwrite: Added IDWriteFontFallbackBuilder stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-20 20:04:27 +02:00
Nikolay Sivov 072a9b00cf dwrite: Split initial cluster computation by stage.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 08:41:19 +09:00
Nikolay Sivov f4b7e4b5ed dwrite: Added ability to specify multiple families per fallback range.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 19:13:30 +02:00
Nikolay Sivov d1199995bf dwrite: Trace user-provided OpenType feature set.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:31 +02:00
Nikolay Sivov 842e2e5314 dwrite: Fix locale data buffer length passed to GetLocaleInfoEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-15 11:45:21 +02:00
Nikolay Sivov 5f7848595f dwrite: Initial support for number substitution.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 07:00:00 -05:00
Nikolay Sivov a7aca059f2 dwrite: Update to IDWriteFactory5.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-07 16:20:50 -05: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 b280c3bf2e dwrite: Improve line breaking logic.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:44 +01:00
Nikolay Sivov 4c7e136013 dwrite: Update script list with latest additions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-06 17:40:05 +01:00
Nikolay Sivov 988cf549fc dwrite: Update to IDWriteFactory4.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 16:59:33 +02:00
Nikolay Sivov fe2aa15516 dwrite: Added missing script tags.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-25 19:36:08 +09:00
Nikolay Sivov b6bb4c1b92 dwrite: Partially implement GetSystemFontCollection().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 11:52:58 +09:00
Nikolay Sivov cedd95e2a8 dwrite: Fix recently added script properties.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:22:05 +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 c38be91061 dwrite: Improve script mapping generation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 17:41:00 +09:00
Nikolay Sivov bbb9bbdbdb dwrite: Update line breaking algorithm according to Unicode 9.0.0 specification.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 12:02:09 +09:00
Nikolay Sivov 58e0972c5c Update data tables to Unicode 9.0.0.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 22:09:28 +09:00
Nikolay Sivov 0e913c4abc dwrite: Trace script name in shaping methods.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09: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
Louis Lenders 938cd952ad dwrite: Print a FIXME only once in dwritetextanalyzer_AnalyzeNumberSubstitution.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 21:36:13 +09:00
Nikolay Sivov d04a54857c dwrite: Update to IDWriteFactory3.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-28 21:51:14 +09:00
Alexandre Julliard 0bbeaae678 make_unicode: Mark most data tables as hidden.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 00:25:01 +09:00
Nikolay Sivov 7dd90faaa3 dwrite: Fix Unknown/Common/Inherited script categories handling.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:08:00 +09:00
Nikolay Sivov 6992f86591 dwrite: Make SetBidiLevel() calls relative to initial text source position.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:06:57 +09:00
Nikolay Sivov 5ec7a860bf dwrite: Always use system font collection to create fallback fonts.
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 1a92176b67 dwrite: Add fallback data for some of Japanese ranges.
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 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 7fc7f2f074 dwrite: Use current layout fallback when creating run font faces.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:41:23 +09:00
Nikolay Sivov 5d17404287 dwrite: Initial implementation of MapCharacters().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:41:20 +09:00
Nikolay Sivov af206b1b2d dwrite: Implement stub for system IDWriteFontFallback.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:41:13 +09:00
Nikolay Sivov e94264e6bd dwrite: Improve SetScriptAnalysis()/SetBidiLevel() tracing.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-02 14:39:17 +09:00
Nikolay Sivov feca77fb0c dwrite: Set isNewline cluster flag.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:17 +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 10b843bb22 dwrite: Update line breaking logic with Unicode 8.0.0 modifications.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-25 16:11:31 +09:00
Nikolay Sivov 68c45de6ae dwrite: Fix off by one issue in line breaking rule LB21a.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-25 16:11:27 +09:00
Nikolay Sivov d4438dae93 dwrite: Fix comment typos.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-18 14:19:09 +09:00
Nikolay Sivov 74f00fa17d dwrite: Consistently use explicit float literals.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-11 23:05:46 +09:00
Nikolay Sivov c4b894db63 dwrite: Remove a couple of dead assignments (Clang).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-12 11:29:09 +09:00
Nikolay Sivov e8c1cf4402 Update data tables to Unicode 8.0.0. 2015-10-02 15:37:05 +09:00
Nikolay Sivov 720c430594 dwrite: Advances and offsets are optional for IDWriteGlyphRunAnalysis. 2015-08-04 12:21:58 +02:00
Nikolay Sivov 42ed6ddd30 dwrite: Fix vector transformation in GetGlyphOrientationTransform(). 2015-07-16 19:22:39 +09:00
Nikolay Sivov 2132a060ea dwrite: Round advances returned from GetGdiCompatibleGlyphPlacements(). 2015-07-16 19:22:37 +09:00
Nikolay Sivov cf5d9848d8 dwrite: Check GetGdiCompatibleMetrics() return value (Coverity). 2015-07-13 14:45:08 +09:00
Nikolay Sivov 112d20e89c dwrite: Forward GetGdiCompatibleGlyphPlacements() to corresponding font methods. 2015-06-01 14:48:08 +09:00
Nikolay Sivov a921941a17 dwrite: Implement GetGlyphOrientationTransform(). 2015-05-29 15:00:03 +09:00
Nikolay Sivov 14158a71db dwrite: Implement ApplyCharacterSpacing(). 2015-04-27 15:10:29 +09:00
Nikolay Sivov a457b5e069 dwrite: Trace text strings up to specified length. 2015-04-23 20:43:20 +09:00
Nikolay Sivov 0c27e5cd66 dwrite: Fix script position reported with SetScriptAnalysis(). 2015-04-21 23:45:00 +09:00
Nikolay Sivov e0403efc21 dwrite: Added a helper to get source text pointer. 2015-04-21 23:44:59 +09:00
Nikolay Sivov 551f0a157f dwrite: Return S_OK from AnalyzeNumberSubstitution(). 2015-04-07 15:10:38 +09:00
Nikolay Sivov 980c65f126 dwrite: Use vertical variants in GetGlyphs() when appropriate. 2015-02-18 23:22:19 +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
Marcus Meissner 2bfb3ef624 dwrite: Initialize a variable (Coverity). 2014-12-01 11:00:17 +01:00
Nikolay Sivov 53209e7017 dwrite: Remove OpenType language id from cache. 2014-11-10 19:25:41 +09:00
Nikolay Sivov 16aa4f1faa dwrite: Fix compiler warning regarding unsigned type of enum member. 2014-11-05 15:53:44 +09:00
Nikolay Sivov d02d35a7b1 dwrite: Create IDWriteFontFace2 instance for IDWriteFont. 2014-10-17 14:40:48 +09:00
Nikolay Sivov 37a02acc6a dwrite: Use E_NOT_SUFFICIENT_BUFFER definition. 2014-10-08 10:19:00 +02:00
Nikolay Sivov c9bb307c35 dwrite: Store OpenType language tag in shaping cache. 2014-10-07 20:22:01 +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 fdd8454ef8 dwrite: Implement AnalyzeBidi(). 2014-10-01 12:01:05 +02:00
Francois Gouget 0dd5cb1cef Assorted spelling fixes. 2014-09-29 10:36:36 +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 d58f519c08 dwrite: Update to IDWriteTextAnalyzer2. 2014-09-25 13:44:47 +02:00
Nikolay Sivov e36025a2a8 dwrite: Implement itemization by script id using Unicode.org data. 2014-09-24 11:10:39 +02:00
Nikolay Sivov 2c6cc0be46 dwrite: Use proper type for return value. 2014-09-22 19:08:43 +02:00
Nikolay Sivov f60350808d dwrite: Implement AnalyzeLineBreakpoints() using Unicode breaking algorithm. 2014-09-05 14:41:47 +02:00
Nikolay Sivov 1c23bf04c7 dwrite: Added some layout tests, simplify debug output for text ranges. 2014-07-30 11:27:14 -05:00
Nikolay Sivov b5184df5df dwrite: Recognize more Unicode ranges in script analyzer. 2014-06-16 09:31:45 +02:00
Andrew Talbot fd00c806bf dwrite: Avoid signed-unsigned integer comparisons. 2013-03-11 10:43:01 +01: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
Nikolay Sivov 8222d4cd3c dwrite: Support more script ranges, up to Mongolian. 2012-11-02 19:47:16 +01:00
Nikolay Sivov 4d2164c936 dwrite: Support nine more script ranges up to code point 0x0bff. 2012-11-01 10:51:04 +01:00
Nikolay Sivov 368bc8aa50 dwrite: Support for Armenian, Hebrew and complete Arabic ranges. 2012-10-31 18:08:10 +01:00
Nikolay Sivov bbc0137f8a dwrite: Support for Greek and Cyrillic ranges. 2012-10-30 10:48:09 +01:00
Nikolay Sivov df2c73a195 dwrite: Support itemization up to codepoint 0x2ff (Latin range). 2012-10-29 14:43:34 +01:00
Nikolay Sivov 89fcb11539 dwrite: Implement initial script itemization for AnalyzeScript(). 2012-10-29 14:43:29 +01:00
Nikolay Sivov 45c7798c36 dwrite: Added a stub for IDWriteTextAnalyzer. 2012-10-29 14:43:22 +01:00