|
ReactOS 0.4.17-dev-970-gcf0f1a6
|
#include <assert.h>#include <stdio.h>#include <limits.h>#include <math.h>#include "initguid.h"#include "windows.h"#include "winternl.h"#include "dwrite_3.h"#include "usp10.h"#include "wine/test.h"
Go to the source code of this file.
Classes | |
| struct | ot_gdef_classdef_format1 |
| struct | ot_gdef_class_range |
| struct | ot_gdef_classdef_format2 |
| struct | script_analysis |
| struct | call_entry |
| struct | testcontext |
| struct | call_sequence |
| struct | testanalysissource |
| struct | sa_test |
| struct | linebreaks_test |
| struct | textcomplexity_test |
| struct | dwrite_fonttable |
| struct | spacing_test |
| struct | orientation_transf_test |
| struct | bidi_test |
Macros | |
| #define | COBJMACROS |
| #define | LRE 0x202a |
| #define | RLE 0x202b |
| #define | PDF 0x202c |
| #define | LRO 0x202d |
| #define | RLO 0x202e |
| #define | LRI 0x2066 |
| #define | RLI 0x2067 |
| #define | FSI 0x2068 |
| #define | PDI 0x2069 |
| #define | MS_GDEF_TAG DWRITE_MAKE_OPENTYPE_TAG('G','D','E','F') |
| #define | GET_BE_WORD(x) RtlUshortByteSwap(x) |
| #define | GET_BE_DWORD(x) RtlUlongByteSwap(x) |
| #define | GET_LE_WORD(x) (x) |
| #define | GET_LE_DWORD(x) (x) |
| #define | NUM_CALL_SEQUENCES 1 |
| #define | ANALYZER_ID 0 |
| #define | ok_sequence(seq, index, exp, contx, todo) ok_sequence_(seq, index, (exp), (contx), (todo), __FILE__, __LINE__) |
| #define | BREAKPOINT_COUNT 20 |
| #define | BIDI_LEVELS_COUNT 10 |
| #define | DELETE_FONTFILE(filename) _delete_testfontfile(filename, __LINE__) |
| #define | P_S { 0 } |
| #define | P_Z { 0, 0, 0, 1, 0 } |
| #define | P_D { 0, 0, 1, 0, 0 } |
| #define | P_D_Z { 0, 0, 1, 1, 0 } |
Enumerations | |
| enum | analysis_kind { ScriptAnalysis , LastKind } |
| enum | ot_gdef_class { GDEF_CLASS_UNCLASSIFIED = 0 , GDEF_CLASS_BASE = 1 , GDEF_CLASS_LIGATURE = 2 , GDEF_CLASS_MARK = 3 , GDEF_CLASS_COMPONENT = 4 , GDEF_CLASS_MAX = GDEF_CLASS_COMPONENT , GDEF_CLASS_UNCLASSIFIED = 0 , GDEF_CLASS_BASE = 1 , GDEF_CLASS_LIGATURE = 2 , GDEF_CLASS_MARK = 3 , GDEF_CLASS_COMPONENT = 4 , GDEF_CLASS_MAX = GDEF_CLASS_COMPONENT } |
| enum | script_id { Script_Unknown = 0 , Script_Arabic = 3 , Script_Latin = 49 } |
| #define ANALYZER_ID 0 |
Definition at line 141 of file analyzer.c.
| #define BIDI_LEVELS_COUNT 10 |
Definition at line 345 of file analyzer.c.
| #define BREAKPOINT_COUNT 20 |
Definition at line 329 of file analyzer.c.
| #define COBJMACROS |
Definition at line 21 of file analyzer.c.
| #define DELETE_FONTFILE | ( | filename | ) | _delete_testfontfile(filename, __LINE__) |
Definition at line 551 of file analyzer.c.
| #define FSI 0x2068 |
Definition at line 59 of file analyzer.c.
| #define GET_BE_DWORD | ( | x | ) | RtlUlongByteSwap(x) |
Definition at line 71 of file analyzer.c.
| #define GET_BE_WORD | ( | x | ) | RtlUshortByteSwap(x) |
Definition at line 70 of file analyzer.c.
Definition at line 73 of file analyzer.c.
Definition at line 72 of file analyzer.c.
| #define LRE 0x202a |
Definition at line 52 of file analyzer.c.
| #define LRI 0x2066 |
Definition at line 57 of file analyzer.c.
| #define LRO 0x202d |
Definition at line 55 of file analyzer.c.
Definition at line 62 of file analyzer.c.
| #define NUM_CALL_SEQUENCES 1 |
Definition at line 140 of file analyzer.c.
| #define ok_sequence | ( | seq, | |
| index, | |||
| exp, | |||
| contx, | |||
| todo | |||
| ) | ok_sequence_(seq, index, (exp), (contx), (todo), __FILE__, __LINE__) |
Definition at line 284 of file analyzer.c.
| #define P_D { 0, 0, 1, 0, 0 } |
| #define P_D_Z { 0, 0, 1, 1, 0 } |
| #define P_S { 0 } |
| #define P_Z { 0, 0, 0, 1, 0 } |
| #define PDF 0x202c |
Definition at line 54 of file analyzer.c.
| #define PDI 0x2069 |
Definition at line 60 of file analyzer.c.
| #define RLE 0x202b |
Definition at line 53 of file analyzer.c.
| #define RLI 0x2067 |
Definition at line 58 of file analyzer.c.
| #define RLO 0x202e |
Definition at line 56 of file analyzer.c.
| Enumerator | |
|---|---|
| ScriptAnalysis | |
| LastKind | |
Definition at line 98 of file analyzer.c.
Definition at line 1459 of file analyzer.c.
| Enumerator | |
|---|---|
| Script_Unknown | |
| Script_Arabic | |
| Script_Latin | |
Definition at line 2852 of file analyzer.c.
Definition at line 552 of file analyzer.c.
|
static |
Definition at line 145 of file analyzer.c.
Referenced by analysissink_SetScriptAnalysis(), init_expected_sa(), and ok_sequence_().
|
static |
Definition at line 299 of file analyzer.c.
|
static |
Definition at line 287 of file analyzer.c.
|
static |
Definition at line 304 of file analyzer.c.
|
static |
Definition at line 348 of file analyzer.c.
|
static |
Definition at line 332 of file analyzer.c.
|
static |
Definition at line 363 of file analyzer.c.
|
static |
Definition at line 309 of file analyzer.c.
|
static |
Definition at line 322 of file analyzer.c.
|
static |
Definition at line 402 of file analyzer.c.
|
static |
Definition at line 468 of file analyzer.c.
|
static |
Definition at line 476 of file analyzer.c.
|
static |
Definition at line 461 of file analyzer.c.
|
static |
Definition at line 435 of file analyzer.c.
|
static |
Definition at line 454 of file analyzer.c.
|
static |
Definition at line 395 of file analyzer.c.
|
static |
Definition at line 408 of file analyzer.c.
|
static |
Definition at line 2759 of file analyzer.c.
Referenced by test_AnalyzeBidi().
|
static |
Definition at line 1191 of file analyzer.c.
Referenced by test_AnalyzeLineBreakpoints().
|
static |
Definition at line 496 of file analyzer.c.
Referenced by dwritefactory_CreateFontFace(), get_fontface_from_font(), test_ComputeGlyphOrigins(), test_CreateAlphaTexture(), test_CreateBitmapRenderTarget(), test_CreateGlyphRunAnalysis(), test_font_resource(), test_GetAlphaBlendParams(), test_GetBaseline(), test_GetGdiCompatibleGlyphPlacements(), test_GetGlyphImageFormats(), test_GetGlyphRunOutline(), test_GetGlyphs(), test_GetPaletteEntries(), test_GetRecommendedRenderingMode(), test_GetTextComplexity(), test_GetTypographicFeatures(), test_GetVerticalGlyphVariants(), test_glyph_justification_property(), test_HasKerningPairs(), test_HasVerticalGlyphVariants(), test_inmemory_file_loader(), and test_TranslateColorGlyphRun().
|
static |
Definition at line 558 of file analyzer.c.
Referenced by test_GetGlyphPlacements().
Definition at line 526 of file analyzer.c.
Referenced by test_GetGlyphPlacements().
Definition at line 38 of file analyzer.c.
Referenced by get_script_analysis(), test_AnalyzeBidi(), test_AnalyzeLineBreakpoints(), test_AnalyzeScript(), test_ApplyCharacterSpacing(), test_GetBaseline(), test_GetGdiCompatibleGlyphPlacements(), test_GetGlyphOrientationTransform(), test_GetGlyphPlacements(), test_GetGlyphs(), test_GetScriptProperties(), test_GetTextComplexity(), test_GetTypographicFeatures(), and test_glyph_justification_property().
|
inlinestatic |
Definition at line 2371 of file analyzer.c.
Referenced by test_GetGlyphOrientationTransform().
Definition at line 2560 of file analyzer.c.
Referenced by test_GetGdiCompatibleGlyphPlacements().
|
inlinestatic |
Definition at line 166 of file analyzer.c.
Definition at line 1490 of file analyzer.c.
Referenced by get_glyph_class().
|
static |
Definition at line 103 of file analyzer.c.
Referenced by ok_sequence_(), and test_uint().
|
static |
Definition at line 1549 of file analyzer.c.
Referenced by test_GetGlyphs().
|
static |
Definition at line 1442 of file analyzer.c.
Referenced by test_GetGlyphs().
|
static |
Definition at line 1430 of file analyzer.c.
Referenced by test_GetGlyphs().
Definition at line 1503 of file analyzer.c.
Referenced by test_glyph_props().
|
static |
Definition at line 1085 of file analyzer.c.
Referenced by test_GetGlyphPlacements(), test_GetGlyphs(), and test_GetTypographicFeatures().
|
inlinestatic |
Definition at line 430 of file analyzer.c.
Referenced by analysissource_GetParagraphReadingDirection(), and analysissource_GetTextAtPosition().
|
static |
Definition at line 1062 of file analyzer.c.
Referenced by test_AnalyzeScript().
|
static |
Definition at line 422 of file analyzer.c.
Referenced by get_script_analysis(), test_AnalyzeBidi(), test_AnalyzeLineBreakpoints(), and test_AnalyzeScript().
|
static |
Definition at line 195 of file analyzer.c.
| START_TEST | ( | analyzer | ) |
Definition at line 2961 of file analyzer.c.
|
static |
Definition at line 1484 of file analyzer.c.
Referenced by get_glyph_class(), and test_glyph_props().
|
static |
Definition at line 1476 of file analyzer.c.
Referenced by get_glyph_class(), and table_read_be_word().
Definition at line 2814 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1220 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1104 of file analyzer.c.
Referenced by START_TEST().
Definition at line 2198 of file analyzer.c.
Referenced by START_TEST().
Definition at line 2496 of file analyzer.c.
Referenced by START_TEST().
Definition at line 2573 of file analyzer.c.
Referenced by START_TEST().
Definition at line 2379 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1907 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1662 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1262 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1320 of file analyzer.c.
Referenced by START_TEST().
Definition at line 1855 of file analyzer.c.
Referenced by START_TEST().
Definition at line 2859 of file analyzer.c.
Referenced by START_TEST().
|
static |
Definition at line 1566 of file analyzer.c.
Referenced by test_GetGlyphs().
Definition at line 1383 of file analyzer.c.
Referenced by START_TEST().
|
static |
Definition at line 183 of file analyzer.c.
Referenced by ok_sequence_().
|
static |
Definition at line 392 of file analyzer.c.
Referenced by test_AnalyzeBidi(), test_AnalyzeLineBreakpoints(), and test_AnalyzeScript().
|
static |
Definition at line 393 of file analyzer.c.
Referenced by get_script_analysis().
|
static |
Definition at line 372 of file analyzer.c.
|
static |
Definition at line 382 of file analyzer.c.
|
static |
Definition at line 494 of file analyzer.c.
Referenced by get_script_analysis(), test_AnalyzeBidi(), test_AnalyzeLineBreakpoints(), and test_AnalyzeScript().
|
static |
Definition at line 483 of file analyzer.c.
Definition at line 2654 of file analyzer.c.
Referenced by test_AnalyzeBidi().
|
static |
Definition at line 143 of file analyzer.c.
Referenced by START_TEST(), and test_AnalyzeScript().
|
static |
Definition at line 36 of file analyzer.c.
|
static |
Definition at line 330 of file analyzer.c.
Referenced by analysissink_SetLineBreakpoints(), compare_breakpoints(), and test_AnalyzeLineBreakpoints().
|
static |
Definition at line 346 of file analyzer.c.
Referenced by analysissink_SetBidiLevel(), and test_AnalyzeBidi().
|
static |
Definition at line 347 of file analyzer.c.
Referenced by analysissink_SetBidiLevel(), and test_AnalyzeBidi().
|
static |
Definition at line 321 of file analyzer.c.
Referenced by analysissink_SetScriptAnalysis2(), and get_script_analysis().
|
static |
Definition at line 1138 of file analyzer.c.
Referenced by test_AnalyzeLineBreakpoints().
|
static |
Definition at line 2360 of file analyzer.c.
Referenced by test_GetGlyphOrientationTransform().
Definition at line 582 of file analyzer.c.
Referenced by test_AnalyzeScript().
|
static |
Definition at line 142 of file analyzer.c.
Referenced by analysissink_SetScriptAnalysis(), START_TEST(), and test_AnalyzeScript().
|
static |
Definition at line 2054 of file analyzer.c.
Referenced by test_ApplyCharacterSpacing().
|
static |
Definition at line 1297 of file analyzer.c.
Referenced by test_GetTextComplexity().