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
e5df622f
Commit
e5df622f
authored
Oct 12, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't load Wine's bitmap-only TrueType fonts.
parent
71013a96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
freetype.c
dlls/gdi32/freetype.c
+20
-2
No files found.
dlls/gdi32/freetype.c
View file @
e5df622f
...
...
@@ -1071,15 +1071,33 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
return
0
;
}
if
(
FT_IS_SFNT
(
ft_face
)
&&
(
!
pFT_Get_Sfnt_Table
(
ft_face
,
ft_sfnt_os2
)
||
if
(
FT_IS_SFNT
(
ft_face
))
{
if
(
!
(
pOS2
=
pFT_Get_Sfnt_Table
(
ft_face
,
ft_sfnt_os2
))
||
!
pFT_Get_Sfnt_Table
(
ft_face
,
ft_sfnt_hhea
)
||
!
(
pHeader
=
pFT_Get_Sfnt_Table
(
ft_face
,
ft_sfnt_head
))))
{
!
(
pHeader
=
pFT_Get_Sfnt_Table
(
ft_face
,
ft_sfnt_head
)))
{
TRACE
(
"Font %s/%p lacks either an OS2, HHEA or HEAD table.
\n
"
"Skipping this font.
\n
"
,
debugstr_a
(
file
),
font_data_ptr
);
pFT_Done_Face
(
ft_face
);
return
0
;
}
/* Wine uses ttfs as an intermediate step in building its bitmap fonts;
we don't want to load these. */
if
(
!
memcmp
(
pOS2
->
achVendID
,
"Wine"
,
sizeof
(
pOS2
->
achVendID
)))
{
FT_ULong
len
=
0
;
if
(
!
load_sfnt_table
(
ft_face
,
FT_MAKE_TAG
(
'E'
,
'B'
,
'S'
,
'C'
),
0
,
NULL
,
&
len
))
{
TRACE
(
"Skipping Wine bitmap-only TrueType font %s
\n
"
,
debugstr_a
(
file
));
pFT_Done_Face
(
ft_face
);
return
0
;
}
}
}
if
(
!
ft_face
->
family_name
||
!
ft_face
->
style_name
)
{
TRACE
(
"Font %s/%p lacks either a family or style name
\n
"
,
debugstr_a
(
file
),
font_data_ptr
);
pFT_Done_Face
(
ft_face
);
...
...
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