Commit Graph

485 Commits

Author SHA1 Message Date
Nikolay Sivov 08a3e4f29f dwrite: Respect transform when calculating glyph advances for run analysis.
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 9389bcdb51 dwrite: Set bitmap target ppdip factor from context dpi.
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 d36a16ea10 dwrite: Scale run origin by given ppdip run analysis was created with.
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 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 83d484834d dwrite: Return strictly 0/1 for BOOL return type (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:20:47 +09:00
Nikolay Sivov 4b6a7e78e9 dwrite: Avoid HRESULT codes for BOOL retval methods (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:20:44 +09:00
Nikolay Sivov 925dc6da8f dwrite: Ignore embedded bitmaps when asked for outline.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:46:50 +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
Nikolay Sivov f2b830ec76 dwrite: Properly implement CreateFontFaceFromHdc().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2015-10-06 22:19:53 +09:00
Nikolay Sivov e8c1cf4402 Update data tables to Unicode 8.0.0. 2015-10-02 15:37:05 +09:00
Nikolay Sivov 5cb954aa6a dwrite: Handle fonts with broken usWinDescent values. 2015-10-01 16:29:44 +09:00
Nikolay Sivov 20e6181304 dwrite: Print font table tag in string form in traces. 2015-09-15 22:51:03 +09:00
Nikolay Sivov 37d10af966 dwrite/tests: Some tests for TranslateColorGlyphRun(). 2015-09-10 18:10:36 +09:00
Nikolay Sivov b55e599a4d dwrite: Implement GetFontCollection() for matching list. 2015-09-08 21:59:15 +09:00
Nikolay Sivov 9c19898217 dwrite: Implement GetFont() for matching list. 2015-09-08 21:59:15 +09:00
Nikolay Sivov 42a99a8de5 dwrite: Track face styles added to a family. 2015-09-08 21:59:15 +09:00
Nikolay Sivov 6dd9cdca4b dwrite: Return stub IDWriteFontList from GetMatchingFonts(). 2015-09-08 21:59:15 +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 b4ce95c1ab dwrite: Make sure same files are scanned once when building font collection. 2015-09-04 15:10:18 +09:00
Nikolay Sivov 30108c730e dwrite: Increase a number of allocated family slots for system collection. 2015-09-03 14:49:56 +09:00
Nikolay Sivov 7581b11d2b dwrite: Remove GetFaceNames() hack for simulated case. 2015-09-03 14:49:55 +09:00
Nikolay Sivov a10d75e597 dwrite: Add simulated oblique faces. 2015-09-03 14:49:53 +09:00
Nikolay Sivov e38d9bc68e dwrite: Add simulated bold faces for each family when appropriate. 2015-09-03 14:49:51 +09:00
Nikolay Sivov a22d5ed948 dwrite: Force reported English family/face names to resolved values. 2015-09-01 19:27:07 +09:00
Nikolay Sivov 9a6b0750c7 dwrite: Recognize semi light weight patterns. 2015-08-31 17:18:32 +09:00
Nikolay Sivov c0ab20caf9 dwrite: Implement family and face name resolution. 2015-08-31 17:18:31 +09:00
Francois Gouget f87491d5cd dwrite: Make opentype_get_font_strings_from_id() static. 2015-08-29 14:27:43 +09:00
Nikolay Sivov 26fbbdc48b dwrite: Implement grayscale rendering mode. 2015-08-27 21:43:46 +09:00
Nikolay Sivov 3f4a284f58 dwrite: Bitmap buffer is zeroed on allocation, no need to do it again. 2015-08-27 17:10:22 +09:00
Nikolay Sivov 2c4ba8a008 dwrite: Cleanup rendering interface with freetype. 2015-08-27 17:10:20 +09:00
Nikolay Sivov f52ef006cd dwrite: Use proper pixel format when accessing dib memory directly. 2015-08-24 18:41:35 +09:00
Nikolay Sivov b9f05239d2 dwrite: Return advances using freetype cache system. 2015-08-24 18:41:34 +09:00
Nikolay Sivov 4a1e6227ed dwrite: Handle QI failure (Coverity). 2015-08-24 08:23:09 +09:00
Nikolay Sivov 3ffe6ab0bb dwrite: Handle failure when getting texture bounds (Coverity). 2015-08-24 08:23:06 +09:00
Nikolay Sivov 4c12157c34 dwrite/tests: Fix analyzer test failures on Win10. 2015-08-21 14:33:33 +09:00
Nikolay Sivov 8dd0738b1c dwrite/tests: Fix layout test failure on Win10. 2015-08-21 14:33:31 +09:00
Nikolay Sivov 1f54400bbf dwrite: Protect from space-only strings when trimming away spaces. 2015-08-19 20:19:56 +09:00
Nikolay Sivov 6b98b9ac70 dwrite: Extract and resolve font weight from name string. 2015-08-19 20:19:56 +09:00
Nikolay Sivov 4a399b7677 dwrite: Implement font stretch resolution. 2015-08-19 20:19:56 +09:00
Nikolay Sivov 5185906006 dwrite: Implement font style resolution from name strings. 2015-08-18 14:30:37 +09:00
Nikolay Sivov 433b7c04c7 dwrite: Use aliased outline threshold for GDI target. 2015-08-17 14:52:22 +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 2ac68e91a4 dwrite: Improve face name extraction. 2015-08-13 15:04:14 +09:00
Nikolay Sivov fb013d7acd dwrite: Fix family name extraction order. 2015-08-13 15:04:12 +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 785c592ada dwrite: Improve the way font weight is set with both OS/2 and 'head' values. 2015-08-12 22:53:02 +09:00
Nikolay Sivov 123c7cde07 dwrite: Set font stretch from 'head' table as a fallback. 2015-08-12 22:53:00 +09:00