/foundation/graphic/graphic_2d/rosen/test/texgine/unittest/ |
D | text_merger_test.cpp | 141 cgs1_.PushBack({.chars = TextConverter::ToUTF16("m"), .glyphs = {{0x013B, 13.664}}}); in SetUpTestCase() 142 cgs1_.PushBack({.chars = TextConverter::ToUTF16("o"), .glyphs = {{0x0145, 9.456}}}); in SetUpTestCase() 143 cgs1_.PushBack({.chars = TextConverter::ToUTF16("s"), .glyphs = {{0x0166, 7.28}}}); in SetUpTestCase() 144 cgs1_.PushBack({.chars = TextConverter::ToUTF16("t"), .glyphs = {{0x016E, 5.88}}}); in SetUpTestCase() 145 cgs1_.PushBack({.chars = TextConverter::ToUTF16(" "), .glyphs = {{0x0002, 4.32}}}); in SetUpTestCase() 150 tsCgs1_ = GenTestSpan({.rtl = false, .cgs = cgs1_}); in SetUpTestCase() 152 tsSubCgs12_ = GenTestSpan({.rtl = false, .cgs = cgs1_.GetSub(1, 2)}); in SetUpTestCase() 154 seqT_ = {GenTestSpan({.rtl = false, .cgs = cgs1_.GetSub(0, 1)})}; in SetUpTestCase() 156 seqTT_ = { GenTestSpan({.rtl = false, .cgs = cgs1_.GetSub(0, 1)}), in SetUpTestCase() 157 GenTestSpan({.rtl = false, .cgs = cgs1_.GetSub(1, 2)}) }; in SetUpTestCase() [all …]
|
D | bidi_processer_test.cpp | 105 cgs1_.PushBack({.chars = TextConverter::ToUTF16("m"), .glyphs = {{0x013B, 13.664}}}); in SetUpTestCase() 106 cgs1_.PushBack({.chars = TextConverter::ToUTF16("o"), .glyphs = {{0x0145, 9.456}}}); in SetUpTestCase() 107 cgs1_.PushBack({.chars = TextConverter::ToUTF16("s"), .glyphs = {{0x0166, 7.28}}}); in SetUpTestCase() 108 cgs1_.PushBack({.chars = TextConverter::ToUTF16("t"), .glyphs = {{0x016E, 5.88}}}); in SetUpTestCase() 113 static inline CharGroups cgs1_ = CharGroups::CreateEmpty(); member in OHOS::Rosen::TextEngine::BidiProcesserTest 163 bp.DoBidiProcess(cgs1_, TextDirection::LTR); 180 bp.DoBidiProcess(cgs1_, TextDirection::LTR); 198 auto ret = bp.DoBidiProcess(cgs1_, TextDirection::LTR); 215 bp.DoBidiProcess(cgs1_, TextDirection::LTR); 232 bp.DoBidiProcess(cgs1_, TextDirection::LTR); [all …]
|
D | text_breaker_test.cpp | 83 …cgs1_.PushBack({.chars = TextConverter::ToUTF16("m"), .glyphs = {{0x013B, 13.664}}, .visibleWidth … in SetUpTestCase() 84 …cgs1_.PushBack({.chars = TextConverter::ToUTF16("o"), .glyphs = {{0x0145, 9.456}}, .visibleWidth =… in SetUpTestCase() 85 …cgs1_.PushBack({.chars = TextConverter::ToUTF16("s"), .glyphs = {{0x0166, 7.28}}, .visibleWidth = … in SetUpTestCase() 86 …cgs1_.PushBack({.chars = TextConverter::ToUTF16("t"), .glyphs = {{0x016E, 5.88}}, .visibleWidth = … in SetUpTestCase() 88 cgs2_ = cgs1_; in SetUpTestCase() 105 static inline CharGroups cgs1_ = CharGroups::CreateEmpty(); member in OHOS::Rosen::TextEngine::TextBreakerTest 229 breaker.BreakWord(cgs1_, tpstyle_, textStyle_, spans_); 261 breaker.BreakWord(cgs1_, tpstyle_, textStyle_, spans_); 350 PrepareWordBreak(1, cgs1_); 382 PrepareWordBreak(0, cgs1_, type); [all …]
|
D | text_shaper_test.cpp | 107 … cgs1_.PushBack({ .glyphs = { {1, 1, 0, 0.1, 0.1}, {2, 1, 0, 0.2, 0.2} }, .visibleWidth = 2 }); in SetUpTestCase() 112 static inline CharGroups cgs1_ = CharGroups::CreateEmpty(); member in OHOS::Rosen::TextEngine::TextShaperTest 144 auto span = GenerateTextSpan({.cgs_ = cgs1_}); 163 auto span = GenerateTextSpan({.cgs_ = cgs1_}); 198 auto span = GenerateTextSpan({.cgs_ = cgs1_}); 216 auto span = GenerateTextSpan({.cgs_ = cgs1_}); 250 shaper.GenerateTextBlob({}, cgs1_, spanWidth, glyphWidths); 341 cgs1_.Get(0).typeface = nullptr; 344 shaper.Shape(GenerateTextSpan({.cgs_ = cgs1_}), {}, FontProviders::Create())); 356 cgs1_.Get(0).typeface = std::make_unique<Typeface>(nullptr); [all …]
|