Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3316f904
Commit
3316f904
authored
Dec 04, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
f6de3806
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
opentype.c
dlls/dwrite/opentype.c
+6
-0
font.c
dlls/dwrite/tests/font.c
+6
-0
No files found.
dlls/dwrite/opentype.c
View file @
3316f904
...
...
@@ -1923,8 +1923,14 @@ HRESULT opentype_get_font_signature(struct file_stream_desc *stream_desc, FONTSI
fontsig
->
fsUsb
[
2
]
=
GET_BE_DWORD
(
tt_os2
->
ulUnicodeRange3
);
fontsig
->
fsUsb
[
3
]
=
GET_BE_DWORD
(
tt_os2
->
ulUnicodeRange4
);
if
(
GET_BE_WORD
(
tt_os2
->
version
)
==
0
)
{
fontsig
->
fsCsb
[
0
]
=
0
;
fontsig
->
fsCsb
[
1
]
=
0
;
}
else
{
fontsig
->
fsCsb
[
0
]
=
GET_BE_DWORD
(
tt_os2
->
ulCodePageRange1
);
fontsig
->
fsCsb
[
1
]
=
GET_BE_DWORD
(
tt_os2
->
ulCodePageRange2
);
}
IDWriteFontFileStream_ReleaseFileFragment
(
stream_desc
->
stream
,
os2_context
);
}
...
...
dlls/dwrite/tests/font.c
View file @
3316f904
...
...
@@ -6267,8 +6267,14 @@ static void get_expected_fontsig(IDWriteFont *font, FONTSIGNATURE *fontsig)
fontsig
->
fsUsb
[
2
]
=
GET_BE_DWORD
(
tt_os2
->
ulUnicodeRange3
);
fontsig
->
fsUsb
[
3
]
=
GET_BE_DWORD
(
tt_os2
->
ulUnicodeRange4
);
if
(
GET_BE_WORD
(
tt_os2
->
version
)
==
0
)
{
fontsig
->
fsCsb
[
0
]
=
0
;
fontsig
->
fsCsb
[
1
]
=
0
;
}
else
{
fontsig
->
fsCsb
[
0
]
=
GET_BE_DWORD
(
tt_os2
->
ulCodePageRange1
);
fontsig
->
fsCsb
[
1
]
=
GET_BE_DWORD
(
tt_os2
->
ulCodePageRange2
);
}
IDWriteFontFace_ReleaseFontTable
(
fontface
,
os2_context
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment