Commit Graph

65 Commits

Author SHA1 Message Date
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 899c622934 dwrite: Fix 8bpp bitmap copy.
Spotted by Matteo.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-07 09:07:03 +02:00
Nikolay Sivov 55aedbffa6 dwrite: Handle 8bpp gray bitmaps for bitmap target.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-05 17:47:31 +02:00
Nikolay Sivov eb212c1939 dwrite: Simplify GetFontSignature().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-20 09:20:54 +09:00
Nikolay Sivov 448e9ce644 dwrite: Use newer enum version to avoid type mismatch (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:31 +02:00
Nikolay Sivov cef8a52dea dwrite: Explicitly check rendering parameters pointer passed to DrawGlyphRun().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-17 22:24:05 +02:00
Nikolay Sivov 1e5b9d369b dwrite: Use antialias mode set for bitmap render target.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-17 22:24:01 +02: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 0344c19692 dwrite: Make CreateFontFaceFromHdc() properly fail on unsupported font format.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 20:02:54 +02:00
Nikolay Sivov be5a4656bd dwrite: Improve font objects refcounting.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 14:59:21 +02:00
Nikolay Sivov c22b2192e5 dwrite: Improve ConvertFontFaceToLOGFONT using same logic IDWriteFont uses.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-07 14:50:29 +01:00
Nikolay Sivov 17586e3082 dwrite: Improve face name returned by ConvertFontToLOGFONT().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 11:46:35 +01:00
Nikolay Sivov da11bee6c7 dwrite: Improve lfWeight values returned by ConvertFontToLOGFONT().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 11:46:31 +01:00
Nikolay Sivov a7fd13c244 dwrite: Fix lfItalic flag as returned by ConvertFontToLOGFONT().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 11:46:28 +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 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 2b96276183 dwrite: Use common structure to pass stream/facetype/index data around.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:51 +09:00
Nikolay Sivov 5dc5bb7580 dwrite: Implement GetFontSignature().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:51 +09:00
Nikolay Sivov dcfd21cfb2 dwrite: Make IDWriteGdiInterop1 a part of a factory.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:28 +09:00
Michael Stefaniuc 41729840e4 dwrite: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:28 +09:00
Nikolay Sivov 8a6c1d99c3 dwrite: Implement newer version of CreateFontFromLOGFONT().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-22 22:33:38 +09:00
Nikolay Sivov f9e257418e dwrite: Update to IDWriteGdiInterop1.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 21:06:10 +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
Nikolay Sivov 15485f538d dwrite: Improve error handling in ConvertFontToLOGFONT() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-08 20:13:41 +09:00
Nikolay Sivov 261563f28e dwrite: Handle bitmap allocation error when rendering to bitmap target.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 16:32:52 +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 edea5fc342 dwrite: Fix analysis leak on error path.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 10:53:55 +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 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 f52ef006cd dwrite: Use proper pixel format when accessing dib memory directly. 2015-08-24 18:41:35 +09:00
Nikolay Sivov 3ffe6ab0bb dwrite: Handle failure when getting texture bounds (Coverity). 2015-08-24 08:23:06 +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 fb013d7acd dwrite: Fix family name extraction order. 2015-08-13 15:04:12 +09:00
Nikolay Sivov 7540fa5a1a dwrite: Properly initialize LOGFONT returned from ConvertFontToLOGFONT(). 2015-08-07 00:05:01 +09:00
Nikolay Sivov 44c301c584 dwrite: Implement DrawGlyphRun(). 2015-07-31 12:07:28 +02:00
Nikolay Sivov 5178c8b111 dwrite: Update cached bitmap size on Resize() as well. 2015-07-22 15:16:05 +02:00
Nikolay Sivov a66ba8957e dwrite: Bitmap render target uses top-down DIB. 2015-07-22 15:15:58 +02:00
Nikolay Sivov 50bf5fca34 dwrite: Implement GetPanose(). 2015-07-07 16:52:21 +09:00
Nikolay Sivov 5a318c3e8b dwrite: Set facename field of a LOGFONT in ConvertFontFaceToLOGFONT(). 2015-02-19 17:50:56 +09:00
Nikolay Sivov 05fd95e5e4 dwrite: Store additional properties for gdi-compatible layouts. 2015-01-09 11:50:20 +01:00
Nikolay Sivov de741ffe52 dwrite: Update to IDWriteFactory2. 2014-12-09 18:57:06 +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 a8ad62aa51 dwrite: Implement ConvertFontToLOGFONT(). 2014-11-07 20:57:04 +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 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