Revert the backport of a fix causing regressions in textPath (7d1c0165) · Commits · René de Hesselle / inkscape · GitLab
Martin Owens
·
2025-12-19
·
via inkscape:windows_ci_14x commits
| Original line number |
Diff line number |
Diff line |
|
@@ -729,15 +729,6 @@ void Layout::fitToPathAlign(SVGLength const &startOffset, Path const &path) |
|
|
}
|
|
|
|
|
|
double start_offset = offset + span.x_start + _characters[char_index].x;
|
|
|
Geom::PathVector pathv = path.MakePathVector();
|
|
|
if (pathv.empty()) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (pathv[0].closed()) {
|
|
|
start_offset = const_cast<Path&>(path).Length() + start_offset;
|
|
|
}
|
|
|
|
|
|
double cluster_width = 0.0;
|
|
|
size_t const current_cluster_glyph_index = _characters[char_index].in_glyph;
|
|
|
for (size_t glyph_index = current_cluster_glyph_index ; glyph_index < next_cluster_glyph_index ; glyph_index++)
|
|
|
| Original line number |
Diff line number |
Diff line |
|
@@ -504,8 +504,10 @@ void sp_textpath_to_text(SPObject *tp) |
|
|
}
|
|
|
int unused = 0;
|
|
|
Path::cut_position *cut_pos = path->CurvilignToPosition(1, &offset, unused);
|
|
|
if (cut_pos) {
|
|
|
Geom::Point tangent;
|
|
|
path->PointAndTangentAt(cut_pos[0].piece, cut_pos[0].t, midpoint, tangent);
|
|
|
}
|
|
|
} else {
|
|
|
std::cerr << "sp_textpath_to_text: no path" << std::endl;
|
|
|
}
|
|
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。