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
95a83bc9
Commit
95a83bc9
authored
Jan 25, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use helper to trace 4 byte tags.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
17e9560e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
analyzer.c
dlls/dwrite/analyzer.c
+7
-8
dwrite_private.h
dlls/dwrite/dwrite_private.h
+5
-0
font.c
dlls/dwrite/font.c
+0
-5
No files found.
dlls/dwrite/analyzer.c
View file @
95a83bc9
...
...
@@ -192,8 +192,7 @@ static const struct dwritescript_properties dwritescripts_properties[Script_Last
const
char
*
debugstr_sa_script
(
UINT16
script
)
{
return
script
<
Script_LastId
?
debugstr_an
((
char
*
)
&
dwritescripts_properties
[
script
].
props
.
isoScriptCode
,
4
)
:
"undefined"
;
return
script
<
Script_LastId
?
debugstr_tag
(
dwritescripts_properties
[
script
].
props
.
isoScriptCode
)
:
"undefined"
;
}
/* system font falback configuration */
...
...
@@ -1054,7 +1053,7 @@ done:
static
UINT32
get_opentype_language
(
const
WCHAR
*
locale
)
{
UINT32
language
=
DWRITE_
FONT_FEATURE_TAG_DEFAULT
;
UINT32
language
=
DWRITE_
MAKE_OPENTYPE_TAG
(
'd'
,
'f'
,
'l'
,
't'
)
;
if
(
locale
)
{
WCHAR
tag
[
5
];
...
...
@@ -1145,7 +1144,7 @@ static void analyzer_dump_user_features(DWRITE_TYPOGRAPHIC_FEATURES const **feat
for
(
i
=
0
,
start
=
0
;
i
<
feature_ranges
;
start
+=
feature_range_lengths
[
i
++
])
{
TRACE
(
"feature range [%u,%u)
\n
"
,
start
,
start
+
feature_range_lengths
[
i
]);
for
(
j
=
0
;
j
<
features
[
i
]
->
featureCount
;
j
++
)
TRACE
(
"feature %s, parameter %u
\n
"
,
debugstr_
an
((
char
*
)
&
features
[
i
]
->
features
[
j
].
nameTag
,
4
),
TRACE
(
"feature %s, parameter %u
\n
"
,
debugstr_
tag
(
features
[
i
]
->
features
[
j
].
nameTag
),
features
[
i
]
->
features
[
j
].
parameter
);
}
}
...
...
@@ -1836,11 +1835,11 @@ static HRESULT WINAPI dwritetextanalyzer2_GetTypographicFeatures(IDWriteTextAnal
};
static
HRESULT
WINAPI
dwritetextanalyzer2_CheckTypographicFeature
(
IDWriteTextAnalyzer2
*
iface
,
IDWriteFontFace
*
face
,
DWRITE_SCRIPT_ANALYSIS
sa
,
const
WCHAR
*
localeNam
e
,
DWRITE_FONT_FEATURE_TAG
feature
,
UINT32
glyph_count
,
const
UINT16
*
indice
s
,
UINT8
*
feature_applies
)
IDWriteFontFace
*
face
,
DWRITE_SCRIPT_ANALYSIS
sa
,
const
WCHAR
*
locale
,
DWRITE_FONT_FEATURE_TAG
featur
e
,
UINT32
glyph_count
,
const
UINT16
*
glyph
s
,
UINT8
*
feature_applies
)
{
FIXME
(
"(%p %u %s %
x %u %p %p): stub
\n
"
,
face
,
sa
.
script
,
debugstr_w
(
localeName
),
feature
,
glyph_count
,
indices
,
feature_applies
);
FIXME
(
"(%p %u %s %
s %u %p %p): stub
\n
"
,
face
,
sa
.
script
,
debugstr_w
(
locale
),
debugstr_tag
(
feature
),
glyph_count
,
glyphs
,
feature_applies
);
return
E_NOTIMPL
;
}
...
...
dlls/dwrite/dwrite_private.h
View file @
95a83bc9
...
...
@@ -76,6 +76,11 @@ static inline const char *debugstr_matrix(const DWRITE_MATRIX *m)
m
->
dx
,
m
->
dy
);
}
static
inline
const
char
*
debugstr_tag
(
DWORD
tag
)
{
return
debugstr_an
((
char
*
)
&
tag
,
4
);
}
const
char
*
debugstr_sa_script
(
UINT16
)
DECLSPEC_HIDDEN
;
static
inline
unsigned
short
get_table_entry
(
const
unsigned
short
*
table
,
WCHAR
ch
)
...
...
dlls/dwrite/font.c
View file @
95a83bc9
...
...
@@ -320,11 +320,6 @@ static inline struct dwrite_fontfacereference *impl_from_IDWriteFontFaceReferenc
return
CONTAINING_RECORD
(
iface
,
struct
dwrite_fontfacereference
,
IDWriteFontFaceReference_iface
);
}
static
inline
const
char
*
debugstr_tag
(
UINT32
tag
)
{
return
debugstr_an
((
char
*
)
&
tag
,
4
);
}
static
HRESULT
get_cached_glyph_metrics
(
struct
dwrite_fontface
*
fontface
,
UINT16
glyph
,
DWRITE_GLYPH_METRICS
*
metrics
)
{
static
const
DWRITE_GLYPH_METRICS
nil
;
...
...
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