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
5df702af
Commit
5df702af
authored
Jun 17, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Initial test for GetBaseline().
parent
0b84556f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
analyzer.c
dlls/dwrite/tests/analyzer.c
+60
-0
No files found.
dlls/dwrite/tests/analyzer.c
View file @
5df702af
...
...
@@ -1819,6 +1819,65 @@ static void test_GetGlyphOrientationTransform(void)
IDWriteTextAnalyzer2_Release
(
analyzer2
);
}
static
void
test_GetBaseline
(
void
)
{
DWRITE_SCRIPT_ANALYSIS
sa
=
{
0
};
IDWriteTextAnalyzer1
*
analyzer1
;
IDWriteTextAnalyzer
*
analyzer
;
IDWriteFontFace
*
fontface
;
INT32
baseline
;
BOOL
exists
;
HRESULT
hr
;
hr
=
IDWriteFactory_CreateTextAnalyzer
(
factory
,
&
analyzer
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDWriteTextAnalyzer_QueryInterface
(
analyzer
,
&
IID_IDWriteTextAnalyzer1
,
(
void
**
)
&
analyzer1
);
IDWriteTextAnalyzer_Release
(
analyzer
);
if
(
hr
!=
S_OK
)
{
win_skip
(
"GetBaseline() is not supported.
\n
"
);
return
;
}
fontface
=
create_fontface
();
/* Tahoma doesn't have BASE table, it doesn't work even with simulation enabled */
exists
=
TRUE
;
baseline
=
456
;
hr
=
IDWriteTextAnalyzer1_GetBaseline
(
analyzer1
,
fontface
,
DWRITE_BASELINE_DEFAULT
,
FALSE
,
TRUE
,
sa
,
NULL
,
&
baseline
,
&
exists
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
baseline
==
0
,
"got %d
\n
"
,
baseline
);
ok
(
exists
==
FALSE
,
"got %d
\n
"
,
exists
);
}
exists
=
TRUE
;
baseline
=
456
;
hr
=
IDWriteTextAnalyzer1_GetBaseline
(
analyzer1
,
fontface
,
DWRITE_BASELINE_ROMAN
,
FALSE
,
TRUE
,
sa
,
NULL
,
&
baseline
,
&
exists
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
baseline
==
0
,
"got %d
\n
"
,
baseline
);
ok
(
exists
==
FALSE
,
"got %d
\n
"
,
exists
);
}
IDWriteFontFace_Release
(
fontface
);
IDWriteTextAnalyzer1_Release
(
analyzer1
);
}
START_TEST
(
analyzer
)
{
HRESULT
hr
;
...
...
@@ -1844,6 +1903,7 @@ START_TEST(analyzer)
test_GetGlyphPlacements
();
test_ApplyCharacterSpacing
();
test_GetGlyphOrientationTransform
();
test_GetBaseline
();
IDWriteFactory_Release
(
factory
);
}
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