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
a1a54e7b
Commit
a1a54e7b
authored
Mar 17, 2006
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Mar 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Look for ttf fonts in the Wine font dir.
parent
89edaa7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
freetype.c
dlls/gdi/freetype.c
+11
-1
No files found.
dlls/gdi/freetype.c
View file @
a1a54e7b
...
...
@@ -1499,6 +1499,7 @@ BOOL WineEngInit(void)
WCHAR
windowsdir
[
MAX_PATH
];
char
*
unixname
;
HANDLE
font_mutex
;
const
char
*
data_dir
;
TRACE
(
"
\n
"
);
...
...
@@ -1578,7 +1579,7 @@ BOOL WineEngInit(void)
}
WaitForSingleObject
(
font_mutex
,
INFINITE
);
/* load the system fonts */
/* load the system
bitmap
fonts */
load_system_fonts
();
/* load in the fonts from %WINDOWSDIR%\\Fonts first of all */
...
...
@@ -1590,6 +1591,15 @@ BOOL WineEngInit(void)
HeapFree
(
GetProcessHeap
(),
0
,
unixname
);
}
/* load the system truetype fonts */
data_dir
=
wine_get_data_dir
();
if
(
data_dir
&&
(
unixname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
data_dir
)
+
sizeof
(
"/fonts/"
))))
{
strcpy
(
unixname
,
data_dir
);
strcat
(
unixname
,
"/fonts/"
);
ReadFontDir
(
unixname
,
FALSE
);
HeapFree
(
GetProcessHeap
(),
0
,
unixname
);
}
/* now look under HKLM\Software\Microsoft\Windows[ NT]\CurrentVersion\Fonts
for any fonts not installed in %WINDOWSDIR%\Fonts. They will have their
full path as the entry. Also look for any .fon fonts, since ReadFontDir
...
...
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