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
b9230452
Commit
b9230452
authored
Feb 01, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Use shaping properties structure in tests data.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36bb9d90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
analyzer.c
dlls/dwrite/tests/analyzer.c
+16
-19
No files found.
dlls/dwrite/tests/analyzer.c
View file @
b9230452
...
...
@@ -1710,7 +1710,7 @@ struct spacing_test {
FLOAT
modified_advances
[
3
];
FLOAT
modified_offsets
[
3
];
BOOL
single_cluster
;
BOOL
is_ZWS
[
3
];
DWRITE_SHAPING_GLYPH_PROPERTIES
props
[
3
];
};
static
const
struct
spacing_test
spacing_tests
[]
=
{
...
...
@@ -1745,20 +1745,20 @@ static const struct spacing_test spacing_tests[] = {
{
1
.
0
,
-
10
.
0
,
5
.
0
,
{
2
.
0
,
1
.
0
,
10
.
0
},
{
2
.
0
,
3
.
0
,
4
.
0
},
{
3
.
0
,
1
.
0
,
2
.
0
},
{
3
.
0
,
3
.
0
,
4
.
0
},
TRUE
},
{
-
10
.
0
,
-
10
.
0
,
5
.
0
,
{
11
.
0
,
1
.
0
,
11
.
0
},
{
2
.
0
,
3
.
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
3
.
0
},
{
10
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
FALSE
,
{
{
0
,
0
,
0
,
1
,
0
},
{
0
,
0
,
0
,
1
,
0
}
}
},
{
1
.
0
,
-
10
.
0
,
5
.
0
,
{
10
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
{
6
.
0
,
11
.
0
},
{
3
.
0
,
3
.
0
},
FALSE
,
{
{
0
},
{
0
,
0
,
0
,
1
,
0
}
}
},
{
-
10
.
0
,
1
.
0
,
5
.
0
,
{
10
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
{
10
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
FALSE
,
{
{
0
,
0
,
0
,
1
,
0
},
{
0
,
0
,
0
,
1
,
0
}
}
},
{
0
.
0
,
-
10
.
0
,
5
.
0
,
{
10
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
{
5
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
FALSE
,
{
{
0
},
{
0
,
0
,
0
,
1
,
0
}
}
},
/* 40 */
{
1
.
0
,
-
10
.
0
,
-
5
.
0
,
{
10
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
{
0
.
0
,
0
.
0
},
{
2
.
0
,
3
.
0
},
FALSE
,
{
{
0
,
0
,
0
,
1
,
0
},
{
0
}
}
},
{
-
10
.
0
,
1
.
0
,
5
.
0
,
{
8
.
0
,
11
.
0
},
{
2
.
0
,
3
.
0
},
{
6
.
0
,
11
.
0
},
{
-
1
.
0
,
3
.
0
},
FALSE
,
{
{
0
},
{
0
,
0
,
0
,
1
,
0
}
}
},
};
static
void
test_ApplyCharacterSpacing
(
void
)
...
...
@@ -1807,10 +1807,7 @@ static void test_ApplyCharacterSpacing(void)
}
advances
[
0
]
=
advances
[
1
]
=
123
.
45
;
memset
(
props
,
0
,
sizeof
(
props
));
props
[
0
].
isZeroWidthSpace
=
ptr
->
is_ZWS
[
0
];
props
[
1
].
isZeroWidthSpace
=
ptr
->
is_ZWS
[
1
];
props
[
2
].
isZeroWidthSpace
=
ptr
->
is_ZWS
[
2
];
memcpy
(
props
,
ptr
->
props
,
sizeof
(
props
));
hr
=
IDWriteTextAnalyzer1_ApplyCharacterSpacing
(
analyzer1
,
ptr
->
leading
,
...
...
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