Nikolay Sivov : dwrite: Return face count of 1 for CFF file type.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 17 09:57:49 CST 2015


Module: wine
Branch: master
Commit: 19eaed6a3833a7bff780ccc31800cad2ecfd48d4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=19eaed6a3833a7bff780ccc31800cad2ecfd48d4

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Nov 17 17:41:36 2015 +0300

dwrite: Return face count of 1 for CFF file type.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/opentype.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 82e0a9c..b48a769 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -748,6 +748,7 @@ HRESULT opentype_analyze_font(IDWriteFontFileStream *stream, UINT32* font_count,
     }
     else if (DWRITE_MAKE_OPENTYPE_TAG(tag[0], tag[1], tag[2], tag[3]) == MS_OTTO_TAG)
     {
+        *font_count = 1;
         *file_type = DWRITE_FONT_FILE_TYPE_CFF;
         face = DWRITE_FONT_FACE_TYPE_CFF;
     }




More information about the wine-cvs mailing list