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
f879cb9e
Commit
f879cb9e
authored
Apr 03, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed font enumeration.
parent
afd519be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
font.c
objects/font.c
+12
-5
No files found.
objects/font.c
View file @
f879cb9e
...
...
@@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(font);
WINE_DECLARE_DEBUG_CHANNEL
(
gdi
);
#define ENUM_UNICODE 0x00000001
#define ENUM_CALLED 0x00000002
typedef
struct
{
...
...
@@ -52,8 +53,7 @@ typedef struct
LPLOGFONTW
lpLogFontParam
;
FONTENUMPROCEXW
lpEnumFunc
;
LPARAM
lpData
;
DWORD
dwFlags
;
DWORD
dwFlags
;
}
fontEnum32
;
/*
...
...
@@ -670,6 +670,7 @@ static INT FONT_EnumInstance( LPENUMLOGFONTEXW plf, LPNEWTEXTMETRICEXW ptm,
{
/* convert font metrics */
pfe
->
dwFlags
|=
ENUM_CALLED
;
if
(
pfe
->
dwFlags
&
ENUM_UNICODE
)
{
return
pfe
->
lpEnumFunc
(
plf
,
ptm
,
fType
,
pfe
->
lpData
);
...
...
@@ -737,13 +738,15 @@ static INT FONT_EnumFontFamiliesEx( HDC hDC, LPLOGFONTW plf,
LPARAM
lParam
,
DWORD
dwUnicode
)
{
BOOL
(
*
enum_func
)(
HDC
,
LPLOGFONTW
,
DEVICEFONTENUMPROC
,
LPARAM
);
INT
ret
=
1
;
INT
ret
=
1
,
ret2
;
DC
*
dc
=
DC_GetDCPtr
(
hDC
);
fontEnum32
fe32
;
BOOL
enum_gdi_fonts
;
if
(
!
dc
)
return
0
;
TRACE
(
"lfFaceName = %s lfCharset = %d
\n
"
,
debugstr_w
(
plf
->
lfFaceName
),
plf
->
lfCharSet
);
fe32
.
lpLogFontParam
=
plf
;
fe32
.
lpEnumFunc
=
efproc
;
fe32
.
lpData
=
lParam
;
...
...
@@ -757,8 +760,12 @@ static INT FONT_EnumFontFamiliesEx( HDC hDC, LPLOGFONTW plf,
if
(
enum_gdi_fonts
)
ret
=
WineEngEnumFonts
(
plf
,
FONT_EnumInstance
,
(
LPARAM
)
&
fe32
);
if
(
ret
&&
enum_func
)
ret
=
enum_func
(
hDC
,
plf
,
FONT_EnumInstance
,
(
LPARAM
)
&
fe32
);
fe32
.
dwFlags
&=
~
ENUM_CALLED
;
if
(
ret
&&
enum_func
)
{
ret2
=
enum_func
(
hDC
,
plf
,
FONT_EnumInstance
,
(
LPARAM
)
&
fe32
);
if
(
fe32
.
dwFlags
&
ENUM_CALLED
)
/* update ret iff a font gets enumed */
ret
=
ret2
;
}
return
ret
;
}
...
...
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