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
2793d819
Commit
2793d819
authored
Oct 21, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement FindFamilyName() for system font collection.
parent
f0f17354
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
font.c
dlls/dwrite/font.c
+16
-2
font.c
dlls/dwrite/tests/font.c
+1
-2
No files found.
dlls/dwrite/font.c
View file @
2793d819
...
...
@@ -690,8 +690,22 @@ static HRESULT WINAPI dwritefontcollection_GetFontFamily(IDWriteFontCollection *
static
HRESULT
WINAPI
dwritefontcollection_FindFamilyName
(
IDWriteFontCollection
*
iface
,
const
WCHAR
*
name
,
UINT32
*
index
,
BOOL
*
exists
)
{
struct
dwrite_fontcollection
*
This
=
impl_from_IDWriteFontCollection
(
iface
);
FIXME
(
"(%p)->(%s %p %p): stub
\n
"
,
This
,
debugstr_w
(
name
),
index
,
exists
);
return
E_NOTIMPL
;
UINT32
i
;
TRACE
(
"(%p)->(%s %p %p)
\n
"
,
This
,
debugstr_w
(
name
),
index
,
exists
);
for
(
i
=
0
;
i
<
This
->
count
;
i
++
)
if
(
!
strcmpW
(
This
->
families
[
i
],
name
))
{
*
index
=
i
;
*
exists
=
TRUE
;
return
S_OK
;
}
*
index
=
(
UINT32
)
-
1
;
*
exists
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
dwritefontcollection_GetFontFromFontFace
(
IDWriteFontCollection
*
iface
,
IDWriteFontFace
*
face
,
IDWriteFont
**
font
)
...
...
dlls/dwrite/tests/font.c
View file @
2793d819
...
...
@@ -536,7 +536,6 @@ static void test_system_fontcollection(void)
i
=
IDWriteFontCollection_GetFontFamilyCount
(
collection
);
ok
(
i
,
"got %u
\n
"
,
i
);
todo_wine
{
ret
=
FALSE
;
i
=
(
UINT32
)
-
1
;
hr
=
IDWriteFontCollection_FindFamilyName
(
collection
,
tahomaW
,
&
i
,
&
ret
);
...
...
@@ -550,7 +549,7 @@ todo_wine {
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
ok
(
i
==
(
UINT32
)
-
1
,
"got %u
\n
"
,
i
);
}
IDWriteFontCollection_Release
(
collection
);
}
...
...
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