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
85a71387
Commit
85a71387
authored
Feb 09, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Load fonts from default Mac external font paths.
parent
39f748f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
freetype.c
dlls/gdi32/freetype.c
+16
-1
No files found.
dlls/gdi32/freetype.c
View file @
85a71387
...
...
@@ -3120,6 +3120,7 @@ static void init_font_list(void)
DWORD
valuelen
,
datalen
,
i
=
0
,
type
,
dlen
,
vlen
;
WCHAR
windowsdir
[
MAX_PATH
];
char
*
unixname
;
const
char
*
home
;
const
char
*
data_dir
;
delete_external_font_keys
();
...
...
@@ -3225,7 +3226,6 @@ static void init_font_list(void)
ptr
=
valueA
;
while
(
ptr
)
{
const
char
*
home
;
LPSTR
next
=
strchr
(
ptr
,
':'
);
if
(
next
)
*
next
++
=
0
;
if
(
ptr
[
0
]
==
'~'
&&
ptr
[
1
]
==
'/'
&&
(
home
=
getenv
(
"HOME"
))
&&
...
...
@@ -3246,6 +3246,21 @@ static void init_font_list(void)
}
RegCloseKey
(
hkey
);
}
#ifdef __APPLE__
/* Mac default font locations. */
ReadFontDir
(
"/Library/Fonts"
,
TRUE
);
ReadFontDir
(
"/Network/Library/Fonts"
,
TRUE
);
ReadFontDir
(
"/System/Library/Fonts"
,
TRUE
);
if
((
home
=
getenv
(
"HOME"
)))
{
unixname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
home
)
+
15
);
strcpy
(
unixname
,
home
);
strcat
(
unixname
,
"/Library/Fonts"
);
ReadFontDir
(
unixname
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
unixname
);
}
#endif
}
static
BOOL
move_to_front
(
const
WCHAR
*
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