Code

a better truncation detection, suggested by Richard Hughes
[inkscape.git] / src / libnrtype / Layout-TNG-Output.cpp
index 2b4b80e7c4cfc01f5f30b0d72997c956a7100016..d6b68ab40585b4549affc04766282f1a056a2f83 100644 (file)
@@ -513,8 +513,10 @@ void Layout::fitToPathAlign(SVGLength const &startOffset, Path const &path)
                 _glyphs[glyph_index].y = midpoint[1] - _lines.front().baseline_y + tangent[1] * tangent_shift + tangent[0] * normal_shift;
                 _glyphs[glyph_index].rotation += rotation;
             }
+            _input_truncated = false;
         } else {  // outside the bounds of the path: hide the glyphs
             _characters[char_index].in_glyph = -1;
+            _input_truncated = true;
         }
         g_free(midpoint_otp);