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
22f19708
Commit
22f19708
authored
Nov 26, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement family name access methods for IDWriteTextFormat.
parent
40300b24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
layout.c
dlls/dwrite/layout.c
+10
-4
No files found.
dlls/dwrite/layout.c
View file @
22f19708
...
...
@@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dwrite);
struct
dwrite_textformat_data
{
WCHAR
*
family_name
;
UINT32
family_len
;
WCHAR
*
locale
;
UINT32
locale_len
;
...
...
@@ -880,15 +881,19 @@ static HRESULT WINAPI dwritetextformat_GetFontCollection(IDWriteTextFormat *ifac
static
UINT32
WINAPI
dwritetextformat_GetFontFamilyNameLength
(
IDWriteTextFormat
*
iface
)
{
struct
dwrite_textformat
*
This
=
impl_from_IDWriteTextFormat
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
0
;
TRACE
(
"(%p)
\n
"
,
This
);
return
This
->
format
.
family_len
;
}
static
HRESULT
WINAPI
dwritetextformat_GetFontFamilyName
(
IDWriteTextFormat
*
iface
,
WCHAR
*
name
,
UINT32
size
)
{
struct
dwrite_textformat
*
This
=
impl_from_IDWriteTextFormat
(
iface
);
FIXME
(
"(%p)->(%p %u): stub
\n
"
,
This
,
name
,
size
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p %u)
\n
"
,
This
,
name
,
size
);
if
(
size
<=
This
->
format
.
family_len
)
return
E_NOT_SUFFICIENT_BUFFER
;
strcpyW
(
name
,
This
->
format
.
family_name
);
return
S_OK
;
}
static
DWRITE_FONT_WEIGHT
WINAPI
dwritetextformat_GetFontWeight
(
IDWriteTextFormat
*
iface
)
...
...
@@ -981,6 +986,7 @@ HRESULT create_textformat(const WCHAR *family_name, IDWriteFontCollection *colle
This
->
IDWriteTextFormat_iface
.
lpVtbl
=
&
dwritetextformatvtbl
;
This
->
ref
=
1
;
This
->
format
.
family_name
=
heap_strdupW
(
family_name
);
This
->
format
.
family_len
=
strlenW
(
family_name
);
This
->
format
.
locale
=
heap_strdupW
(
locale
);
This
->
format
.
locale_len
=
strlenW
(
locale
);
This
->
format
.
weight
=
weight
;
...
...
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