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
df605c0a
Commit
df605c0a
authored
Mar 21, 2007
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "gdi32: Disable the freetype mmap sharing on Mac OS.".
This reverts
ae9f68de
commit. Because of commit
4e686043
which extracts the constituent fonts from Mac suitcase fonts, we can use mmap on font files on the Mac.
parent
f76d076f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
freetype.c
dlls/gdi32/freetype.c
+6
-6
No files found.
dlls/gdi32/freetype.c
View file @
df605c0a
...
...
@@ -2205,7 +2205,6 @@ static LONG calc_ppem_for_height(FT_Face ft_face, LONG height)
static
struct
font_mapping
*
map_font
(
const
char
*
name
)
{
#ifndef __APPLE__
/* Mac OS fonts use resource forks, we can't simply mmap them */
struct
font_mapping
*
mapping
;
struct
stat
st
;
int
fd
;
...
...
@@ -2242,7 +2241,6 @@ static struct font_mapping *map_font( const char *name )
error:
close
(
fd
);
#endif
return
NULL
;
}
...
...
@@ -2265,11 +2263,13 @@ static FT_Face OpenFontFile(GdiFont *font, char *file, FT_Long face_index, LONG
TRACE
(
"%s, %ld, %d x %d
\n
"
,
debugstr_a
(
file
),
face_index
,
width
,
height
);
if
((
font
->
mapping
=
map_font
(
file
)))
err
=
pFT_New_Memory_Face
(
library
,
font
->
mapping
->
data
,
font
->
mapping
->
size
,
face_index
,
&
ft_face
);
else
err
=
pFT_New_Face
(
library
,
file
,
face_index
,
&
ft_face
);
if
(
!
(
font
->
mapping
=
map_font
(
file
)))
{
WARN
(
"failed to map %s
\n
"
,
debugstr_a
(
file
));
return
0
;
}
err
=
pFT_New_Memory_Face
(
library
,
font
->
mapping
->
data
,
font
->
mapping
->
size
,
face_index
,
&
ft_face
);
if
(
err
)
{
ERR
(
"FT_New_Face rets %d
\n
"
,
err
);
return
0
;
...
...
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