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
0a01f37e
Commit
0a01f37e
authored
Apr 28, 2006
by
Huw Davies
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: FcPatternGet( FC_FILE ) only returns the basename as of fontconfig 2.3.92 .
FcPatternGetString( FC_FILE ) returns the whole path. Go figure.
parent
2c7270e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
freetype.c
dlls/gdi/freetype.c
+3
-6
No files found.
dlls/gdi/freetype.c
View file @
0a01f37e
...
...
@@ -150,7 +150,7 @@ MAKE_FUNCPTR(FcObjectSetCreate);
MAKE_FUNCPTR
(
FcObjectSetDestroy
);
MAKE_FUNCPTR
(
FcPatternCreate
);
MAKE_FUNCPTR
(
FcPatternDestroy
);
MAKE_FUNCPTR
(
FcPatternGet
);
MAKE_FUNCPTR
(
FcPatternGet
String
);
#ifndef SONAME_LIBFONTCONFIG
#define SONAME_LIBFONTCONFIG "libfontconfig.so"
#endif
...
...
@@ -1173,7 +1173,6 @@ static void load_fontconfig_fonts(void)
FcPattern
*
pat
;
FcObjectSet
*
os
;
FcFontSet
*
fontset
;
FcValue
v
;
int
i
,
len
;
const
char
*
file
,
*
ext
;
...
...
@@ -1193,7 +1192,7 @@ LOAD_FUNCPTR(FcObjectSetCreate);
LOAD_FUNCPTR
(
FcObjectSetDestroy
);
LOAD_FUNCPTR
(
FcPatternCreate
);
LOAD_FUNCPTR
(
FcPatternDestroy
);
LOAD_FUNCPTR
(
FcPatternGet
);
LOAD_FUNCPTR
(
FcPatternGet
String
);
#undef LOAD_FUNCPTR
if
(
!
pFcInit
())
return
;
...
...
@@ -1205,10 +1204,8 @@ LOAD_FUNCPTR(FcPatternGet);
fontset
=
pFcFontList
(
config
,
pat
,
os
);
if
(
!
fontset
)
return
;
for
(
i
=
0
;
i
<
fontset
->
nfont
;
i
++
)
{
if
(
pFcPatternGet
(
fontset
->
fonts
[
i
],
FC_FILE
,
0
,
&
v
)
!=
FcResultMatch
)
if
(
pFcPatternGet
String
(
fontset
->
fonts
[
i
],
FC_FILE
,
0
,
(
FcChar8
**
)
&
file
)
!=
FcResultMatch
)
continue
;
if
(
v
.
type
!=
FcTypeString
)
continue
;
file
=
(
LPCSTR
)
v
.
u
.
s
;
TRACE
(
"fontconfig: %s
\n
"
,
file
);
/* We're just interested in OT/TT fonts for now, so this hack just
...
...
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