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
7581b11d
Commit
7581b11d
authored
Sep 03, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Remove GetFaceNames() hack for simulated case.
parent
a10d75e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
39 deletions
+1
-39
font.c
dlls/dwrite/font.c
+1
-39
No files found.
dlls/dwrite/font.c
View file @
7581b11d
...
...
@@ -1240,47 +1240,9 @@ static BOOL WINAPI dwritefont_IsSymbolFont(IDWriteFont2 *iface)
static
HRESULT
WINAPI
dwritefont_GetFaceNames
(
IDWriteFont2
*
iface
,
IDWriteLocalizedStrings
**
names
)
{
static
const
WCHAR
boldobliqueW
[]
=
{
'B'
,
'o'
,
'l'
,
'd'
,
' '
,
'O'
,
'b'
,
'l'
,
'i'
,
'q'
,
'u'
,
'e'
,
0
};
struct
dwrite_font
*
This
=
impl_from_IDWriteFont2
(
iface
);
IDWriteLocalizedStrings
*
strings
;
const
WCHAR
*
name
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
names
);
*
names
=
NULL
;
if
(
This
->
data
->
simulations
==
DWRITE_FONT_SIMULATIONS_NONE
)
return
clone_localizedstring
(
This
->
data
->
names
,
names
);
switch
(
This
->
data
->
simulations
)
{
case
DWRITE_FONT_SIMULATIONS_BOLD
|
DWRITE_FONT_SIMULATIONS_OBLIQUE
:
name
=
boldobliqueW
;
break
;
case
DWRITE_FONT_SIMULATIONS_BOLD
:
name
=
boldW
;
break
;
case
DWRITE_FONT_SIMULATIONS_OBLIQUE
:
name
=
obliqueW
;
break
;
default:
ERR
(
"unknown simulations %d
\n
"
,
This
->
data
->
simulations
);
return
E_FAIL
;
}
hr
=
create_localizedstrings
(
&
strings
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
add_localizedstring
(
strings
,
enusW
,
name
);
if
(
FAILED
(
hr
))
{
IDWriteLocalizedStrings_Release
(
strings
);
return
hr
;
}
*
names
=
strings
;
return
S_OK
;
return
clone_localizedstring
(
This
->
data
->
names
,
names
);
}
static
HRESULT
WINAPI
dwritefont_GetInformationalStrings
(
IDWriteFont2
*
iface
,
...
...
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