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
bdf90439
Commit
bdf90439
authored
Aug 18, 2005
by
Pavel Roskin
Committed by
Alexandre Julliard
Aug 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfnt2fnt exits with code 0 for several errors, which causes make to
ignore them. Use exit code 1 instead.
parent
b408c7ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sfnt2fnt.c
tools/sfnt2fnt.c
+7
-7
No files found.
tools/sfnt2fnt.c
View file @
bdf90439
...
...
@@ -132,11 +132,11 @@ static void fill_fontinfo(FT_Face face, int enc, FILE *fp, int dpi, unsigned cha
cptable
=
wine_cp_get_table
(
enc
);
if
(
!
cptable
)
{
fprintf
(
stderr
,
"Can't find codepage %d
\n
"
,
enc
);
exit
(
0
);
exit
(
1
);
}
if
(
cptable
->
info
.
char_size
!=
1
)
{
fprintf
(
stderr
,
"Can't cope with double byte codepages
\n
"
);
exit
(
0
);
exit
(
1
);
}
ppem
=
face
->
size
->
metrics
.
y_ppem
;
...
...
@@ -144,13 +144,13 @@ static void fill_fontinfo(FT_Face face, int enc, FILE *fp, int dpi, unsigned cha
if
(
FT_Load_Char
(
face
,
0xc5
,
FT_LOAD_DEFAULT
))
{
fprintf
(
stderr
,
"Can't find Aring
\n
"
);
exit
(
0
);
exit
(
1
);
}
ascent
=
face
->
glyph
->
metrics
.
height
>>
6
;
descent
=
ppem
-
ascent
;
if
(
FT_Load_Char
(
face
,
'M'
,
FT_LOAD_DEFAULT
))
{
fprintf
(
stderr
,
"Can't find M
\n
"
);
exit
(
0
);
exit
(
1
);
}
il
=
ascent
-
(
face
->
glyph
->
metrics
.
height
>>
6
);
...
...
@@ -341,19 +341,19 @@ int main(int argc, char **argv)
if
(
FT_Init_FreeType
(
&
lib
))
{
fprintf
(
stderr
,
"ft init failure
\n
"
);
exit
(
0
);
exit
(
1
);
}
if
(
FT_New_Face
(
lib
,
argv
[
1
],
0
,
&
face
))
{
fprintf
(
stderr
,
"Can't open face
\n
"
);
usage
(
argv
);
exit
(
0
);
exit
(
1
);
}
if
(
FT_Set_Pixel_Sizes
(
face
,
ppem
,
ppem
))
{
fprintf
(
stderr
,
"Can't set size
\n
"
);
usage
(
argv
);
exit
(
0
);
exit
(
1
);
}
strcpy
(
name
,
face
->
family_name
);
...
...
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