Commit Graph

184 Commits

Author SHA1 Message Date
Nikolay Sivov 4afb30c544 dwrite/tests: Fixed some leaks (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:08 +09:00
Nikolay Sivov 9441b26dc5 dwrite: Fail earlier in TranslateColorGlyphRun() for fonts without color info.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:07 +09:00
Nikolay Sivov ad88407c93 dwrite/tests: Add missing return value test (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:03 +09:00
Nikolay Sivov ce6f6f7421 dwrite: Use dpiX/dpiY argument in GetRecommendedRenderingMode().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:03 +09:00
Nikolay Sivov 5e1c0315a1 dwrite/tests: Some tests for GetRecommendedRenderingMode() with different ppdip values.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-27 21:45:19 +09:00
Nikolay Sivov 2fdee67dd2 dwrite: Scale glyph run analysis advances and offsets with ppdip factor.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:37 +09:00
Nikolay Sivov a23b395e87 dwrite: Use given ppdip factor in GetAlphaTextureBounds().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 19:56:26 +09:00
Nikolay Sivov 37d10af966 dwrite/tests: Some tests for TranslateColorGlyphRun(). 2015-09-10 18:10:36 +09:00
Nikolay Sivov 8747fa2b9f dwrite/tests: Fix some test failures on Win10. 2015-09-04 18:18:31 +09:00
Nikolay Sivov fe848b26c7 dwrite: Make CreateFontFace() fail with DWRITE_E_FILEFORMAT for supported types in case of type mismatch. 2015-09-04 18:18:29 +09:00
Nikolay Sivov b9f05239d2 dwrite: Return advances using freetype cache system. 2015-08-24 18:41:34 +09:00
Nikolay Sivov 204d46c674 dwrite: Implement outline mode for DrawGlyphRun(). 2015-08-17 14:52:20 +09:00
Nikolay Sivov 22a65466b3 dwrite/tests: Some tests for target hdc mode/transform. 2015-08-13 15:04:16 +09:00
Nikolay Sivov f5f025f1dd dwrite: Use better font matching algorithm based on weight/stretch/style triples. 2015-08-12 22:53:04 +09:00
Nikolay Sivov fd35a1af6a dwrite: Implement GetPaletteEntries(). 2015-08-07 14:17:58 +09:00
Nikolay Sivov 4df29eb02f dwrite/tests: Basic test for GetPaletteEntries(). 2015-08-07 14:17:56 +09:00
Nikolay Sivov ab7c65ae43 dwrite: Implement IsSymbolFont(). 2015-08-07 00:05:04 +09:00
Nikolay Sivov 7540fa5a1a dwrite: Properly initialize LOGFONT returned from ConvertFontToLOGFONT(). 2015-08-07 00:05:01 +09:00
Nikolay Sivov 720c430594 dwrite: Advances and offsets are optional for IDWriteGlyphRunAnalysis. 2015-08-04 12:21:58 +02:00
Nikolay Sivov 6d1f47902b dwrite: Translate rendered bitmap bounds to given origin. 2015-07-31 12:07:23 +02:00
Nikolay Sivov 5137aaa9c9 dwrite: Implement parameter validation for CreateAlphaTexture(). 2015-07-29 21:44:01 +02:00
Nikolay Sivov b50416aa5f dwrite: Implement GetAlphaTextureBounds(). 2015-07-29 21:44:01 +02:00
Nikolay Sivov 2c6eca8682 dwrite: Implement GetAlphaBlendParams(). 2015-07-29 20:57:04 +02:00
Nikolay Sivov e877cfbcfa dwrite: Implement GetRecommendedRenderingMode(). 2015-07-28 13:41:45 +02:00
Nikolay Sivov aac3a069e4 dwrite/tests: Some tests for GetRecommendedRenderingMode(). 2015-07-28 13:41:45 +02:00
Nikolay Sivov 5178c8b111 dwrite: Update cached bitmap size on Resize() as well. 2015-07-22 15:16:05 +02:00
Nikolay Sivov a718a9a5ca dwrite/tests: Some tests for bounds returned by GetAlphaTextureBounds(). 2015-07-20 20:56:04 +02:00
Nikolay Sivov 5231715d31 dwrite: Improve parameter validation in GetGdiCompatibleGlyphAdvances(), add some tests. 2015-07-20 20:56:04 +02:00
Nikolay Sivov 2655ac5f93 dwrite: Aliased texture could only be requested for aliased rendering mode. 2015-07-17 19:28:04 +09:00
Nikolay Sivov e6d5c03fde dwrite: Handle negative emsize in GetGdiCompatibleMetrics(). 2015-07-13 14:45:13 +09:00
Nikolay Sivov 849bb99b76 dwrite: Implement GetGdiCompatibleMetrics(). 2015-07-08 19:12:12 +09:00
Nikolay Sivov 9375b06c3a dwrite/tests: Extend GetGdiCompatibleMetrics() test to test DWRITE_FONT_METRICS1 as well. 2015-07-07 16:52:21 +09:00
Nikolay Sivov 50bf5fca34 dwrite: Implement GetPanose(). 2015-07-07 16:52:21 +09:00
Huw Davies bbf5b249ca dwrite/tests: Add tests for GetGdiCompatibleMetrics. 2015-07-06 17:09:48 +09:00
Nikolay Sivov 69d5e351f9 dwrite: Call SetFillMode() once per run. 2015-06-23 15:08:11 +09:00
Nikolay Sivov eca362bd76 dwrite: Fix problems with outline conversion and reporting. 2015-06-10 15:26:10 +09:00
Nikolay Sivov f4790714fe dwrite: Added IDWriteGlyphRunAnalysis stub. 2015-05-19 22:57:43 +09:00
Julius Schwartzenberg 20aee0673d dwrite: Font search is case insensitive. 2015-04-13 15:49:38 +09:00
Nikolay Sivov 7b664095aa dwrite: Update to IDWriteRenderingParams2. 2015-03-31 21:36:28 +09:00
Nikolay Sivov 9ec6fd85c4 dwrite: Return CreateStreamFromKey() failure code from Analyze(). 2015-03-30 19:10:31 +09:00
Nikolay Sivov 7e480d3c6d dwrite: Implement GetKerningPairAdjustments(). 2015-03-16 21:42:40 +09:00
Nikolay Sivov 2933e8666f dwrite: Fix invalid parameter handling in GetGlyphIndices(). 2015-03-16 21:42:39 +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 eb2a4ec5f4 dwrite/tests: Test default colors of render target memory HDC. 2015-02-23 15:26:03 +09:00
Nikolay Sivov 0067be66bb dwrite/tests: Fixed font instance leak. 2015-02-23 15:26:02 +09:00
Nikolay Sivov 5a318c3e8b dwrite: Set facename field of a LOGFONT in ConvertFontFaceToLOGFONT(). 2015-02-19 17:50:56 +09:00
Nikolay Sivov 5196be7706 dwrite: Fix error code returned by GetFontFromFontFace(). 2015-02-19 17:50:51 +09:00
Nikolay Sivov c949ff5d24 dwrite: Implement GetGlyphCount(). 2015-02-05 22:19:06 +09:00
Nikolay Sivov 34a5cd2086 dwrite/tests: Fix couple of leaks when creating test font instance. 2015-02-04 21:42:39 +09:00
Nikolay Sivov 8f9bca9103 dwrite: Implement GetCaretMetrics(). 2015-02-03 20:53:07 +09:00
Nikolay Sivov 00ea0b72b6 dwrite: Added stub EUDC font collection. 2014-12-17 13:05:18 +01:00
Nikolay Sivov 17a24679b4 dwrite: Initial GetGlyphRunOutline() implementation. 2014-12-15 13:41:16 +01:00
Nikolay Sivov 44bb2ba295 dwrite: Block creation of unsupported face types. 2014-12-11 16:41:14 +01:00
Nikolay Sivov 415e0b3f54 dwrite: Implement GetDesignGlyphAdvances(). 2014-12-09 18:57:04 +01:00
Nikolay Sivov 730b2f4c66 dwrite: Implement IsMonospacedFont(). 2014-12-09 18:57:01 +01:00
Nikolay Sivov 9978bfb6d7 dwrite: Partially implement GetDesignGlyphMetrics(). 2014-12-08 16:48:45 +01:00
Nikolay Sivov 517185fcf3 dwrite: Set font style to oblique when oblique simulation, was requested. 2014-12-08 16:41:17 +01:00
Francois Gouget ea932fbcc1 Assorted spelling fixes. 2014-12-05 20:47:45 +01:00
Nikolay Sivov 82e66b4b47 dwrite: Fix lineGap metric using 'hhea' table values. 2014-11-28 17:04:45 +01:00
Nikolay Sivov 298f08d602 dwrite/tests: Fix some test failures on older dwrite versions. 2014-11-27 11:11:21 +01:00
Nikolay Sivov 31496c600d dwrite: Use stream fragment context when reading font tables. 2014-11-27 11:11:16 +01:00
Nikolay Sivov 416527a6ad dwrite: Use file mapping for local file stream. 2014-11-26 17:35:13 +01:00
Nikolay Sivov b8db7f6a04 dwrite: Update to IDWriteBitmapRenderTarget1. 2014-11-25 16:35:02 +01:00
Nikolay Sivov 9db50228dd dwrite: Implement SetCurrentTransform() for bitmap render target. 2014-11-19 23:36:35 +09:00
Nikolay Sivov e6cd0f7d8c dwrite/tests: Some tests for ReadFileFragment(). 2014-11-19 00:38:58 +09:00
Nikolay Sivov f16960aeb8 dwrite: Implement GetLastWriteTime() for local stream. 2014-11-19 00:38:56 +09:00
Nikolay Sivov 8b769332e2 dwrite: Reuse local file stream instances. 2014-11-17 19:30:19 +09:00
Nikolay Sivov 53fb0cc711 dwrite: Implement compatible reference key for local files and remaining loader methods. 2014-11-17 19:30:17 +09:00
Nikolay Sivov a8ad62aa51 dwrite: Implement ConvertFontToLOGFONT(). 2014-11-07 20:57:04 +09:00
Nikolay Sivov a714f0fe75 dwrite: Added a basic test for TryGetFontTable(). 2014-11-07 20:57:02 +09:00
Nikolay Sivov 6ce8cc149e dwrite: Implement GetMetrics() for DWRITE_FONT_METRICS1. 2014-11-07 20:57:02 +09:00
Nikolay Sivov c8bc7ea849 dwrite: Implement GetMetrics() for fontface. 2014-11-06 15:01:29 +09:00
Nikolay Sivov 1e0b934139 dwrite: Don't cache fontface instance in font data. 2014-11-06 15:01:20 +09:00
Nikolay Sivov e2eb760ffc dwrite: Implement remaining methods of IDWriteLocalizedStrings. 2014-11-05 15:53:50 +09:00
Nikolay Sivov ad69c7bf6d dwrite: Implement GetFaceNames(). 2014-11-05 15:53:47 +09:00
Nikolay Sivov c0796ecb49 dwrite: Fix setting oblique simulation on font creation. 2014-11-05 15:53:40 +09:00
Nikolay Sivov 1ef30feba8 dwrite/tests: Some tests for custom font collections. 2014-11-04 22:49:27 +09:00
Nikolay Sivov afea35f56a dwrite: Store pixels per dip value for a render target. 2014-10-30 12:00:19 +09:00
Nikolay Sivov cae5d19338 dwrite: Implement system font collection as any other font collection. 2014-10-30 12:00:12 +09:00
Nikolay Sivov 6855740a5e dwrite: Reimplement ConvertFontFaceToLOGFONT(). 2014-10-29 20:47:28 +09:00
Nikolay Sivov 1d2993940a dwrite: Set oblique simulation in GetFirstMatchingFont() when appropriate. 2014-10-29 20:47:23 +09:00
Nikolay Sivov 901a65ae42 dwrite: Store simulations flags at font instance level. 2014-10-29 20:47:05 +09:00
Nikolay Sivov 5b10a69c3a dwrite: Block attempts of registering local file loader. 2014-10-27 19:02:46 +09:00
Nikolay Sivov be69977cd5 dwrite/tests: Fix recently inroduced test failure. 2014-10-27 19:02:45 +09:00
Nikolay Sivov 35e9b6d85d dwrite: Pass raw NAME table pointer to table reading code. 2014-10-24 19:58:05 +09:00
Nikolay Sivov 42882f7f75 dwrite: Cache fontface instances at factory level. 2014-10-24 19:58:05 +09:00
Nikolay Sivov fefb947516 dwrite/tests: Fix some test failures. 2014-10-24 19:58:05 +09:00
Nikolay Sivov 561ac1d829 dwrite/tests: Some tests for local font file loader. 2014-10-23 19:30:53 +09:00
Nikolay Sivov 272964666a dwrite/tests: Create separate isolated factory for each test. 2014-10-23 19:30:50 +09:00
Nikolay Sivov 42e5a32cc3 dwrite: Some tests for reused fontface instances. 2014-10-22 21:02:11 +09:00
Nikolay Sivov 04a237fe18 dwrite: Implement GetInformationalStrings(). 2014-10-21 18:49:14 +09:00
Nikolay Sivov cd7c31fe08 dwrite: Implement CreateFontFaceFromHdc(). 2014-10-20 21:33:27 +09:00
Nikolay Sivov a088f7d381 dwrite: Implement CreateFontFromLOGFONT() on top of system font collection. 2014-10-20 21:32:47 +09:00
Nikolay Sivov ea11f85a94 dwrite: Store factory pointer gdiinterop was created from. 2014-10-20 21:32:44 +09:00
Nikolay Sivov bb23664ee9 dwrite: Some tests for IDWriteFontColletion methods. 2014-10-17 14:40:56 +09:00
Nikolay Sivov 4c0ec6700c dwrite: Implement GetUnicodeRanges(). 2014-10-16 13:00:16 +09:00
Nikolay Sivov 9b46e19aa4 dwrite: Implement HasCharacter(). 2014-10-16 13:00:07 +09:00
Nikolay Sivov 8f34bee25a dwrite: Added one more test for system font collection. 2014-10-16 13:00:03 +09:00
Nikolay Sivov d8a66e634c dwrite: Refuse to create IDWriteFontFace with invalid collection index. 2014-10-15 21:31:51 +09:00
Nikolay Sivov 1006987712 dwrite: Create single shared factory. 2014-10-14 17:42:15 +09:00