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
a4caf051
Commit
a4caf051
authored
Mar 09, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Mar 09, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Black as a valid font weight.
Cope with afm files that do not contain {Family|Full}Name entries.
parent
a555ceb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
afm.c
graphics/psdrv/afm.c
+10
-0
No files found.
graphics/psdrv/afm.c
View file @
a4caf051
...
...
@@ -181,6 +181,8 @@ static AFM *PSDRV_AFMParse(char const *file)
afm
->
Weight
=
FW_BOLD
;
else
if
(
!
strncmp
(
"Light"
,
value
,
5
))
afm
->
Weight
=
FW_LIGHT
;
else
if
(
!
strncmp
(
"Black"
,
value
,
5
))
afm
->
Weight
=
FW_BLACK
;
else
{
FIXME
(
"Unkown AFM Weight '%s'
\n
"
,
value
);
afm
->
Weight
=
FW_NORMAL
;
...
...
@@ -252,12 +254,20 @@ static AFM *PSDRV_AFMParse(char const *file)
}
fclose
(
fp
);
if
(
afm
->
FontName
==
NULL
)
WARN
(
"%s contains no FontName.
\n
"
,
file
);
if
(
afm
->
FullName
==
NULL
)
afm
->
FullName
=
HEAP_strdupA
(
PSDRV_Heap
,
0
,
afm
->
FontName
);
if
(
afm
->
FamilyName
==
NULL
)
afm
->
FamilyName
=
HEAP_strdupA
(
PSDRV_Heap
,
0
,
afm
->
FontName
);
if
(
afm
->
Ascender
==
0
.
0
)
afm
->
Ascender
=
afm
->
FontBBox
.
ury
;
if
(
afm
->
Descender
==
0
.
0
)
afm
->
Descender
=
afm
->
FontBBox
.
lly
;
if
(
afm
->
FullAscender
==
0
.
0
)
afm
->
FullAscender
=
afm
->
Ascender
;
if
(
afm
->
Weight
==
0
)
afm
->
Weight
=
FW_NORMAL
;
return
afm
;
}
...
...
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