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
ac2096d6
Commit
ac2096d6
authored
May 23, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix for the font directory resource written by fnt2fon.
parent
cc4ed132
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
fnt2fon.c
tools/fnt2fon.c
+6
-3
No files found.
tools/fnt2fon.c
View file @
ac2096d6
...
...
@@ -114,7 +114,8 @@ int main(int argc, char **argv)
*
cp
=
'\0'
;
fprintf
(
stderr
,
"%s %d pts %dx%d dpi
\n
"
,
name
,
pt
,
dpi
[
0
],
dpi
[
1
]);
fclose
(
fp
);
fontdir_len
+=
0x74
+
strlen
(
name
)
+
1
;
/* FIXME does the fontdir entry for version 3 fonts differ from 2? */
/* fontdir entries for version 3 fonts are the same as for version 2 */
fontdir_len
+=
0x74
+
strlen
(
name
)
+
1
;
if
(
i
==
0
)
{
sprintf
(
non_resident_name
,
"FONTRES 100,%d,%d : %s %d"
,
dpi
[
0
],
dpi
[
1
],
name
,
pt
);
strcpy
(
resident_name
,
name
);
...
...
@@ -234,10 +235,11 @@ int main(int argc, char **argv)
fwrite
(
&
res
,
sizeof
(
res
),
1
,
ofp
);
fread
(
buf
,
0x72
,
1
,
fp
);
fwrite
(
buf
,
0x72
,
1
,
ofp
);
fnt_header
=
(
struct
_fnt_header
*
)
buf
;
fseek
(
fp
,
fnt_header
->
fi
.
dfFace
,
SEEK_SET
);
fnt_header
->
fi
.
dfBitsOffset
=
0
;
fwrite
(
buf
,
0x72
,
1
,
ofp
);
cp
=
name
;
while
((
c
=
fgetc
(
fp
))
!=
0
&&
c
!=
EOF
)
...
...
@@ -246,7 +248,8 @@ int main(int argc, char **argv)
fwrite
(
name
,
strlen
(
name
)
+
1
,
1
,
ofp
);
fclose
(
fp
);
}
pad
=
fontdir_len
&
0xf
;
pad
=
ftell
(
ofp
)
&
0xf
;
if
(
pad
!=
0
)
pad
=
0x10
-
pad
;
for
(
i
=
0
;
i
<
pad
;
i
++
)
...
...
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