Home
last modified time | relevance | path

Searched refs:shaper (Results 1 - 25 of 29) sorted by relevance

12

/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-shaper.hh41 #include "hb-shaper-list.hh"
63 #include "hb-shaper-list.hh"
72 #define HB_SHAPER_DATA_TYPE(shaper, object) hb_##shaper##_##object##_data_t
73 #define HB_SHAPER_DATA_CREATE_FUNC(shaper, object) _hb_##shaper##_shaper_##object##_data_create
74 #define HB_SHAPER_DATA_DESTROY_FUNC(shaper, object) _hb_##shaper##_shaper_##object##_data_destroy
76 #define HB_SHAPER_DATA_INSTANTIATE_SHAPERS(shaper, object) \
78 struct HB_SHAPER_DATA_TYPE (shaper, objec
[all...]
H A Dhb-shape-plan.cc29 #include "hb-shaper.hh"
94 * Choose shaper. in init()
97 #define HB_SHAPER_PLAN(shaper) \ in init()
99 if (face->data.shaper) \ in init()
101 this->shaper_func = _hb_##shaper##_shape; \ in init()
102 this->shaper_name = #shaper; \ in init()
112 #define HB_SHAPER_IMPLEMENT(shaper) \ in init()
113 else if (0 == strcmp (*shaper_list, #shaper)) \ in init()
114 HB_SHAPER_PLAN (shaper); in init()
115 #include "hb-shaper in init()
[all...]
H A Dhb-ot-shape.cc34 #error "Cannot compile 'ot' shaper with HB_NO_OT_LAYOUT."
37 #include "hb-shaper-impl.hh"
86 shaper = hb_ot_shape_complex_categorize (this); in hb_ot_shape_planner_t()
88 script_zero_marks = shaper->zero_width_marks != HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE; in hb_ot_shape_planner_t()
89 script_fallback_mark_positioning = shaper->fallback_position; in hb_ot_shape_planner_t()
92 if (apply_morx && shaper != &_hb_ot_complex_shaper_default) in hb_ot_shape_planner_t()
93 shaper = &_hb_ot_complex_shaper_dumber; in hb_ot_shape_planner_t()
101 plan.shaper = shaper; in compile()
130 bool disable_gpos = plan.shaper in compile()
[all...]
H A Dhb-ot-shape-normalize.cc44 * Each shaper specifies whether it prefers decomposed (NFD) or composed (NFC).
74 * Indic shaper may want to disallow recomposing of two matras.
299 hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference; in _hb_ot_shape_normalize()
316 plan->shaper->decompose ? plan->shaper->decompose : decompose_unicode, in _hb_ot_shape_normalize()
317 plan->shaper->compose ? plan->shaper->compose : compose_unicode in _hb_ot_shape_normalize()
404 if (plan->shaper->reorder_marks) in _hb_ot_shape_normalize()
405 plan->shaper->reorder_marks (plan, buffer, i, end); in _hb_ot_shape_normalize()
H A Dhb-face.hh34 #include "hb-shaper.hh"
43 #define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INSTANTIATE_SHAPERS(shaper, face);
44 #include "hb-shaper-list.hh"
59 hb_shaper_object_dataset_t<hb_face_t> data;/* Various shaper data. */
H A Dhb-ot-shape.hh64 const struct hb_ot_complex_shaper_t *shaper; member
161 const struct hb_ot_complex_shaper_t *shaper; member
H A Dhb-ot-shape-normalize.hh48 HB_INTERNAL void _hb_ot_shape_normalize (const hb_ot_shape_plan_t *shaper,
H A Dhb-font.hh35 #include "hb-shaper.hh"
99 #define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INSTANTIATE_SHAPERS(shaper, font);
100 #include "hb-shaper-list.hh"
129 hb_shaper_object_dataset_t<hb_font_t> data; /* Various shaper data. */
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/shaping/
H A DDataDrivenArabicShapingRegTest.java315 ArabicShaping shaper = null; in TestStandard()
318 shaper = new ArabicShaping(flags); in TestStandard()
319 actual = shaper.shape(source); in TestStandard()
333 err("Error: Shaper " + shaper + "\n throws exception '" + ex + "'\n for input '" + source); in TestStandard()
336 buf.append("Error: Shaper: " + shaper + "\n Input: " + source + "\n Actual: " + actual + in TestStandard()
411 ArabicShaping shaper = null; in TestPreflight()
418 shaper = new ArabicShaping(flags); in TestPreflight()
419 len = shaper.shape(src, 0, src.length, null, 0, 0); in TestPreflight()
426 err("Error: Shaper " + shaper + "\n throws exception '" + ex + "'\n for input '" + source); in TestPreflight()
428 err("Error: Shaper " + shaper in TestPreflight()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/shaping/
H A DDataDrivenArabicShapingRegTest.java312 ArabicShaping shaper = null; in TestStandard()
315 shaper = new ArabicShaping(flags); in TestStandard()
316 actual = shaper.shape(source); in TestStandard()
330 err("Error: Shaper " + shaper + "\n throws exception '" + ex + "'\n for input '" + source); in TestStandard()
333 buf.append("Error: Shaper: " + shaper + "\n Input: " + source + "\n Actual: " + actual + in TestStandard()
408 ArabicShaping shaper = null; in TestPreflight()
415 shaper = new ArabicShaping(flags); in TestPreflight()
416 len = shaper.shape(src, 0, src.length, null, 0, 0); in TestPreflight()
423 err("Error: Shaper " + shaper + "\n throws exception '" + ex + "'\n for input '" + source); in TestPreflight()
425 err("Error: Shaper " + shaper in TestPreflight()
[all...]
/third_party/skia/third_party/externals/harfbuzz/util/
H A Dshape-options.hh326 for (char **shaper = shapers; *shaper; shaper++)
330 if (strcmp (*shaper, *hb_shaper) == 0)
339 "Unknown or unsupported shaper: %s", *shaper);
356 for (const char **shaper = hb_shape_list_shapers (); *shaper; shaper++)
357 g_printf ("%s\n", *shaper);
[all...]
H A Dhb-ot-shape-closure.cc41 shaper.add_options (parser); in add_options()
71 shaper.shape_closure (text, text_len, font, buffer, glyphs); in consume_line()
109 shape_options_t shaper; member
/third_party/skia/tests/
H A DShaperTest.cpp64 auto shaper = SkShaper::Make(); in shaper_test() local
65 if (!shaper) { in shaper_test()
66 ERRORF(reporter, "Could not create shaper."); in shaper_test()
73 shaper->shape((const char*)data->data(), data->size(), font, true, kWidth, &rh); in shaper_test()
80 shaper->shape((const char*)data->data(), data->size(), in shaper_test()
H A DSkShaperJSONWriterTest.cpp127 std::unique_ptr<SkShaper> shaper = SkShaper::Make();
138 shaper->shape(s.c_str(), s.size(), font, true /* right to left */, 256, &shaperJSON);
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/shaping/
H A DArabicShapingSample.java161 ArabicShaping shaper = new ArabicShaping(options); in main()
162 System.out.println("shaper: " + shaper); in main()
177 result = shaper.shape(src, ss, sl, dest, ds, dl); in main()
181 shaper.shape(src, ss, sl); in main()
188 dest = shaper.shape(text).toCharArray(); in main()
/third_party/skia/tools/
H A Dusing_skia_and_harfbuzz.cpp144 void WriteLine(const SkShaper& shaper, const char *text, size_t textBytes) { in WriteLine() argument
146 shaper.shape(text, textBytes, font, true, in WriteLine()
214 std::unique_ptr<SkShaper> shaper = SkShaper::Make(); in main() local
215 assert(shaper); in main()
219 placement.WriteLine(*shaper, line.c_str(), line.size()); in main()
/third_party/skia/modules/skshaper/tests/
H A DShaperTest.cpp119 auto shaper = SkShaper::Make(); in shaper_test() local
120 if (!shaper) { in shaper_test()
121 ERRORF(reporter, "Could not create shaper."); in shaper_test()
128 shaper->shape((const char*)data->data(), data->size(), font, true, kWidth, &rh); in shaper_test()
141 shaper->shape((const char*)data->data(), data->size(), in shaper_test()
/third_party/skia/samplecode/
H A DSampleTextBox.cpp127 SkString name() override { return SkString("shaper"); }
130 std::unique_ptr<SkShaper> shaper) { in drawTest()
131 if (!shaper) return; in drawTest()
167 shaper->shape(str, len, *font, *bidi, *script, *language, 2000, &builder); in drawTest()
129 drawTest(SkCanvas* canvas, const char str[], SkScalar size, std::unique_ptr<SkShaper> shaper) drawTest() argument
/third_party/skia/modules/skshaper/src/
H A DSkShaper.cpp50 std::unique_ptr<SkShaper> shaper = SkShaper::MakeShaperDrivenWrapper(std::move(fontmgr)); in Make() local
51 if (shaper) { in Make()
52 return shaper; in Make()
55 if (auto shaper = SkShaper::MakeCoreText()) { in Make()
56 return shaper; in Make()
/third_party/skia/modules/skparagraph/tests/
H A DSkShaperJSONWriterTest.cpp127 std::unique_ptr<SkShaper> shaper = SkShaper::Make();
138 shaper->shape(s.c_str(), s.size(), font, true /* right to left */, 256, &shaperJSON);
/third_party/skia/modules/skplaintexteditor/src/
H A Dshape.cpp270 std::unique_ptr<SkShaper> shaper = SkShaper::Make(); in Shape() local
280 shaper->shape(utf8Text, textByteLen, font, true, width, &runHandler); in Shape()
/third_party/skia/modules/skparagraph/src/
H A DOneLineShaper.cpp660 // Set up the shaper and shape the next
661 auto shaper = SkShaper::MakeShapeDontWrapOrReorder(fParagraph->fUnicode->copy());
662 if (shaper == nullptr) {
668 [this, &shaper, defaultBidiLevel, limitlessWidth, &advanceX]
762 shaper->shape(unresolvedText.begin(), unresolvedText.size(),
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DBidiTransform.java369 ArabicShaping shaper = new ArabicShaping(options); in shapeArabic()
371 text = shaper.shape(text); in shapeArabic()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DBidiTransform.java359 ArabicShaping shaper = new ArabicShaping(options); in shapeArabic()
361 text = shaper.shape(text); in shapeArabic()
/third_party/skia/experimental/sktext/src/
H A DText.cpp278 auto shaper = SkShaper::MakeShapeDontWrapOrReorder();
279 if (shaper == nullptr) {
283 shaper->shape(

Completed in 15 milliseconds

12