Nikolay Sivov
af54ed51b0
dwrite: Fix compilation failure regarding nameless unions.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 09:23:50 -05:00
Piotr Caban
0925006822
dwrite: Don't fail in opentype_get_font_strings_from_id if any of font strings got decoded.
...
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
7cb57e2ee8
dwrite: Extract supported image formats from 'sbix' table.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 08:45:57 +02:00
Nikolay Sivov
1b1488fda7
dwrite: Look for 'SVG ' table too when checking supported formats.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-24 10:02:30 +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
669d033ee1
dwrite: Use OpenType 1.8 'hhea' table structure.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 11:26:27 +01:00
Nikolay Sivov
08a729fc15
dwrite: Use OpenType 1.8 'head' table structure.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 11:26:24 +01:00
Nikolay Sivov
6e356742e3
dwrite: Improve strikethrough and underline thickness extraction logic.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-20 13:02:05 +01:00
Nikolay Sivov
bf23b8a529
dwrite: Use system default locale when filling LOGFONT.lfFaceName.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-07 14:50:19 +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
3316f90418
dwrite: Return zeroed fsCsb for OS/2 table of version 0.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 11:46:26 +01:00
Nikolay Sivov
1e8a706bc3
dwrite: Update file type and face type enums.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-06 17:39:39 +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
52bbc64a67
dwrite: Handle zero specified weight as normal.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-15 12:55:27 +09:00
Nikolay Sivov
ff57b1febb
dwrite: Sanitize specified stretch value, valid range is [1, 9].
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-15 12:55:22 +09:00
Nikolay Sivov
c4d08275d0
dwrite: Check all 'vert' lookups, not just the first one.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-07 11:17:59 +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
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
f0dd5a012d
dwrite: Only use fsSelection to switch to sTypo* metrics, remove table version check.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 21:43:03 +09:00
Nikolay Sivov
137030bf77
dwrite: Always return non-zero metrics for strikethrough/underline thickness.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 11:36:40 +09:00
Nikolay Sivov
7cac7bb99f
dwrite: Always initialize context and font table pointers.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-01 18:34:26 +09:00
Nikolay Sivov
c7305c07af
dwrite: Suppress noisy message when parsing name records.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:41:32 +09:00
Charles Davis
dcca411ac3
dwrite: Fix typos, and fix definition of Mac LangCodes for Welsh and up.
...
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:07:30 +09:00
Nikolay Sivov
38a99b2f25
dwrite: Add support for PFM files in Analyze().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:17:24 +09:00
Nikolay Sivov
8a4db9fd90
dwrite: Implement color glyph run decomposition.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-08 20:13:33 +09:00
Nikolay Sivov
ec3c7d9d3a
dwrite: Accept platform 0 name records if there's nothing, else.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-08 20:12:48 +09:00
Nikolay Sivov
032e088c7d
dwrite: Recognize Type1 .pfb files in Analyze().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-05 13:53:48 +09:00
Nikolay Sivov
076b35362a
dwrite: Rework Analyze() to make it easier to extend.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-05 13:53:43 +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
19eaed6a38
dwrite: Return face count of 1 for CFF file type.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 00:29:49 +09:00
Nikolay Sivov
5cb954aa6a
dwrite: Handle fonts with broken usWinDescent values.
2015-10-01 16:29:44 +09:00
Francois Gouget
f87491d5cd
dwrite: Make opentype_get_font_strings_from_id() static.
2015-08-29 14:27:43 +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
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
Nikolay Sivov
4b4674bea8
dwrite: Use OS/2 table data to set font style, make it preferable.
2015-08-12 22:52:57 +09:00
Nikolay Sivov
fd35a1af6a
dwrite: Implement GetPaletteEntries().
2015-08-07 14:17:58 +09:00
Nikolay Sivov
5734c2ed98
dwrite: Implement GetPaletteEntryCount().
2015-08-07 14:17:53 +09:00
Nikolay Sivov
20571725f3
dwrite: Implement GetColorPaletteCount().
2015-08-07 14:17:51 +09:00
Nikolay Sivov
e877cfbcfa
dwrite: Implement GetRecommendedRenderingMode().
2015-07-28 13:41:45 +02:00
Sebastian Lackner
402caa632b
dwrite: Avoid dereferencing NULL pointer for fonts without VDMX.
2015-07-13 14:44:49 +09:00
Nikolay Sivov
849bb99b76
dwrite: Implement GetGdiCompatibleMetrics().
2015-07-08 19:12:12 +09:00
Nikolay Sivov
50bf5fca34
dwrite: Implement GetPanose().
2015-07-07 16:52:21 +09:00
Nikolay Sivov
6ff14a9213
dwrite: Use FreeType CMAP cache system instead of parsing tables manually.
2015-02-23 15:26:02 +09:00
Nikolay Sivov
8f9bca9103
dwrite: Implement GetCaretMetrics().
2015-02-03 20:53:07 +09:00
Nikolay Sivov
40d9a2b6d2
dwrite: Make sure we don't have duplicates in locale/value pairs for font names.
2015-01-26 12:06:20 +01:00