Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc
| Context not available. | |||||
| for (const int i : IndexRange(text_len)) { | for (const int i : IndexRange(text_len)) { | ||||
| CharTrans &ct = chartransdata[i]; | CharTrans &ct = chartransdata[i]; | ||||
| layout.positions.append(float2(ct.xof, ct.yof) * layout.final_font_size); | float2 pos(std::isnan(ct.xof) ? 0 : ct.xof, std::isnan(ct.yof) ? 0 : ct.yof); | ||||
| layout.positions.append(pos * layout.final_font_size); | |||||
| if ((info[i].flag & CU_CHINFO_OVERFLOW) && (cu.overflow == CU_OVERFLOW_TRUNCATE)) { | if ((info[i].flag & CU_CHINFO_OVERFLOW) && (cu.overflow == CU_OVERFLOW_TRUNCATE)) { | ||||
| const int offset = BLI_str_utf8_offset_from_index(layout.text.c_str(), i + 1); | const int offset = BLI_str_utf8_offset_from_index(layout.text.c_str(), i + 1); | ||||
| Context not available. | |||||