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
7329144c
Commit
7329144c
authored
Dec 19, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Dec 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Improve the fontconfig filtering hack so that Mac suitcase fonts get through.
parent
3d412007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
freetype.c
dlls/gdi32/freetype.c
+15
-3
No files found.
dlls/gdi32/freetype.c
View file @
7329144c
...
...
@@ -155,6 +155,7 @@ MAKE_FUNCPTR(FcObjectSetCreate);
MAKE_FUNCPTR
(
FcObjectSetDestroy
);
MAKE_FUNCPTR
(
FcPatternCreate
);
MAKE_FUNCPTR
(
FcPatternDestroy
);
MAKE_FUNCPTR
(
FcPatternGetBool
);
MAKE_FUNCPTR
(
FcPatternGetString
);
#ifndef SONAME_LIBFONTCONFIG
#define SONAME_LIBFONTCONFIG "libfontconfig.so"
...
...
@@ -1221,6 +1222,7 @@ LOAD_FUNCPTR(FcObjectSetCreate);
LOAD_FUNCPTR
(
FcObjectSetDestroy
);
LOAD_FUNCPTR
(
FcPatternCreate
);
LOAD_FUNCPTR
(
FcPatternDestroy
);
LOAD_FUNCPTR
(
FcPatternGetBool
);
LOAD_FUNCPTR
(
FcPatternGetString
);
#undef LOAD_FUNCPTR
...
...
@@ -1230,20 +1232,30 @@ LOAD_FUNCPTR(FcPatternGetString);
pat
=
pFcPatternCreate
();
os
=
pFcObjectSetCreate
();
pFcObjectSetAdd
(
os
,
FC_FILE
);
pFcObjectSetAdd
(
os
,
FC_SCALABLE
);
fontset
=
pFcFontList
(
config
,
pat
,
os
);
if
(
!
fontset
)
return
;
for
(
i
=
0
;
i
<
fontset
->
nfont
;
i
++
)
{
FcBool
scalable
;
if
(
pFcPatternGetString
(
fontset
->
fonts
[
i
],
FC_FILE
,
0
,
(
FcChar8
**
)
&
file
)
!=
FcResultMatch
)
continue
;
TRACE
(
"fontconfig: %s
\n
"
,
file
);
/* We're just interested in OT/TT fonts for now, so this hack just
picks up the standard extensions to save time loading every other
font */
picks up the scalable fonts without extensions .pf[ab] to save time
loading every other font */
if
(
pFcPatternGetBool
(
fontset
->
fonts
[
i
],
FC_SCALABLE
,
0
,
&
scalable
)
==
FcResultMatch
&&
!
scalable
)
{
TRACE
(
"not scalable
\n
"
);
continue
;
}
len
=
strlen
(
file
);
if
(
len
<
4
)
continue
;
ext
=
&
file
[
len
-
3
];
if
(
!
strcasecmp
(
ext
,
"ttf"
)
||
!
strcasecmp
(
ext
,
"ttc"
)
||
!
strcasecmp
(
ext
,
"otf
"
))
if
(
strcasecmp
(
ext
,
"pfa"
)
&&
strcasecmp
(
ext
,
"pfb
"
))
AddFontFileToList
(
file
,
NULL
,
ADDFONT_EXTERNAL_FONT
);
}
pFcFontSetDestroy
(
fontset
);
...
...
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