Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
83ef9078
Commit
83ef9078
authored
Sep 21, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Support reading version information from OpenType/CFF fonts.
parent
ef62e41f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
font.c
dlls/msi/font.c
+5
-2
No files found.
dlls/msi/font.c
View file @
83ef9078
...
...
@@ -111,7 +111,8 @@ static WCHAR *load_ttf_name_id( const WCHAR *filename, DWORD id )
ttOffsetTable
.
uMajorVersion
=
SWAPWORD
(
ttOffsetTable
.
uMajorVersion
);
ttOffsetTable
.
uMinorVersion
=
SWAPWORD
(
ttOffsetTable
.
uMinorVersion
);
if
(
ttOffsetTable
.
uMajorVersion
!=
1
||
ttOffsetTable
.
uMinorVersion
!=
0
)
if
((
ttOffsetTable
.
uMajorVersion
!=
1
||
ttOffsetTable
.
uMinorVersion
!=
0
)
&&
(
ttOffsetTable
.
uMajorVersion
!=
0x4f54
||
ttOffsetTable
.
uMinorVersion
!=
0x544f
))
goto
end
;
for
(
i
=
0
;
i
<
ttOffsetTable
.
uNumOfTables
;
i
++
)
...
...
@@ -192,8 +193,10 @@ WCHAR *msi_font_version_from_file( const WCHAR *filename )
WCHAR
*
version
,
*
p
,
*
ret
=
NULL
;
int
len
;
if
((
p
=
version
=
load_ttf_name_id
(
filename
,
NAME_ID_VERSION
)))
if
((
version
=
load_ttf_name_id
(
filename
,
NAME_ID_VERSION
)))
{
if
((
p
=
strchrW
(
version
,
';'
)))
*
p
=
0
;
p
=
version
;
while
(
*
p
&&
!
isdigitW
(
*
p
))
p
++
;
len
=
strlenW
(
p
)
+
strlenW
(
dotzerodotzeroW
)
+
1
;
ret
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
);
...
...
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