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
ae9f68de
Commit
ae9f68de
authored
Dec 08, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Disable the freetype mmap sharing on Mac OS.
parent
ccae172e
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 @
ae9f68de
...
...
@@ -1887,6 +1887,7 @@ 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
;
...
...
@@ -1923,6 +1924,7 @@ static struct font_mapping *map_font( const char *name )
error:
close
(
fd
);
#endif
return
NULL
;
}
...
...
@@ -1945,13 +1947,11 @@ 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
)))
{
WARN
(
"failed to map %s
\n
"
,
debugstr_a
(
file
));
return
0
;
}
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
);
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