Nikolay Sivov
addd8e69ff
dwrite: Fix cache entry use-after-free (Valgrind).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 18:55:25 +02:00
Nikolay Sivov
d06443d659
dwrite: Print missing table message as a trace.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 18:55:21 +02:00
Nikolay Sivov
e1f191e343
dwrite: Improve rendering parameters validation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-17 22:23:50 +02:00
Nikolay Sivov
18fe44c7af
dwrite: Avoid repeated method calls during run rendering.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-11 18:25:36 +02:00
Nikolay Sivov
7524db8937
dwrite: Grab font data reference when adding replacement.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-30 11:14:44 +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
Piotr Caban
4d02f2fed6
dwrite: Fix EUDC font collection use after free issue.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 19:00:25 +02:00
Piotr Caban
e98cdc3215
dwrite: Don't crash on uninitialized cached and factory fields in dwritefontface_Release.
...
The function may be called with the fields uninitialized from
create_fontface when init_font_data fails.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 19:00:25 +02:00
Nikolay Sivov
b0f50e7e5b
dwrite: Partially implement GetGlyphImageFormats().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 13:58:13 +02:00
Nikolay Sivov
9bf9a9590a
dwrite: Added a helper to avoid extra traces from one method calling another.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 18:58:46 +02:00
Nikolay Sivov
5b07cfc13e
dwrite: Handle allocation failure when duplicating reference key.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 18:58:46 +02:00
Nikolay Sivov
533d3b904e
dwrite: Trace QueryInterface fontface calls on failure (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 20:02:53 +02:00
Michael Stefaniuc
5a4cb67db9
dwrite: Use SetRectEmpty() instead of memset().
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:03:14 +02:00
Nikolay Sivov
d5d863597d
dwrite: Fix file object leak.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 14:59:25 +02:00
Nikolay Sivov
f5b6563bec
dwrite: Pass index directly to font and family creation helpers.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 14:59:24 +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
b66f187e24
dwrite: Use scaled font size in glyph run analysis.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-04 14:54:46 +02:00
Nikolay Sivov
da697572dc
dwrite: Use transformed glyph origins in glyph run analysis.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-04 14:54:44 +02:00
Nikolay Sivov
cc25929d3a
dwrite: Added missing max bitmap size initialization.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 12:00:04 +02:00
Nikolay Sivov
89d074a3fc
dwrite: Allocate glyph buffer once per run rendering pass.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:32 +02:00
Nikolay Sivov
a46b81a478
dwrite: Simplify requested texture type validation in IDWriteGlyphRunAnalysis.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:32 +02:00
Nikolay Sivov
82509d7c15
dwrite: Handle allocation failure for main run bitmap.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-23 15:14:46 +01:00
Nikolay Sivov
c3b108e54b
dwrite: Fix a typo to actually return kerning pair adjustments.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-15 22:06:38 +01:00
Nikolay Sivov
1188579cb5
dwrite: Use version neutral variable name.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-15 22:06:36 +01:00
Nikolay Sivov
7d18bbe860
dwrite: Added support for bold simulation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-15 22:06:34 +01:00
Nikolay Sivov
c32a19f198
dwrite: Implement another variant of CreateGlyphRunAnalysis().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:43:03 +01:00
Nikolay Sivov
93829e4b2b
dwrite: Fix a typo in assertion condition (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-12 19:14:19 +01: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
93ac04d608
dwrite: Skip entries prefixed with '@' in system font file enumerator.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-02 11:43:14 +01:00
Nikolay Sivov
89565b5e1e
dwrite: Make it clear that wine_dbgstr_longlong() output is in hex.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-16 13:20:17 -06:00
Nikolay Sivov
9103ee4c66
dwrite: Set fontface pointer and font size for returned color glyph run.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-06 17:39:41 +01:00
Nikolay Sivov
9bf1114d71
dwrite: Update to IDWriteFontFace4.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-30 17:07:38 +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
1c7a1f8f27
dwrite: Fail stream creation on file mapping failure.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 23:23:38 +09:00
Sebastian Lackner
1540a19359
dwrite: Fix font stretch name conversion table.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-15 12:55:25 +09:00
Nikolay Sivov
ff6f31de76
dwrite: Add missing return value check (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 09:07:32 -05:00
Nikolay Sivov
3fa7ff671c
dwrite: Ignore fonts with dot-prefixed names.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 19:56:40 +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
bf211623fd
dwrite: Implement another CreateFontFace() variant.
...
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
e30607fdb0
dwrite: Implement HasVerticalGlyphVariants().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:22:04 +09:00
Nikolay Sivov
90bcff0eae
dwrite: Return some of font properties from IDWriteFontFace3 methods.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:22:04 +09:00
Nikolay Sivov
69caad4469
dwrite: Implement IDWriteFontFace3::GetRecommendedRenderingMode().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-07 12:32:21 +09:00
Nikolay Sivov
c43a3d48af
dwrite: Fix font data array leak on list release (Valgrind).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:10:24 +09:00
Nikolay Sivov
c5259f72e3
dwrite: Implement IDWriteFontFamily1::GetFontFaceReference().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-06 11:45:25 +09:00
Nikolay Sivov
e82cf8aa70
dwrite: Implement IDWriteFontList1::GetFontFaceReference().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-06 11:45:25 +09:00
Nikolay Sivov
51154acb6a
dwrite: Implement IDWriteFontList1::GetFont().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-06 11:45:25 +09:00
Nikolay Sivov
890312ccfd
dwrite: Validate simulation flags and fail face/reference creation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:40:29 +09:00