From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- share/extensions/tests/data/svg/hershey_input.svg | 1082 +++++++++++++++++++++ 1 file changed, 1082 insertions(+) create mode 100755 share/extensions/tests/data/svg/hershey_input.svg (limited to 'share/extensions/tests/data/svg/hershey_input.svg') diff --git a/share/extensions/tests/data/svg/hershey_input.svg b/share/extensions/tests/data/svg/hershey_input.svg new file mode 100755 index 0000000..e5ee87a --- /dev/null +++ b/share/extensions/tests/data/svg/hershey_input.svg @@ -0,0 +1,1082 @@ + + + + + + + + + image/svg+xml + + + + + + + test + This text has both a smaller bounding box, a smaller font size, and a large line spacing. The software must handle unusual cases like this.The real problem is that flowing into a text box (flowroot region) is SVG-renderer dependent-- even different web browsers may render flowed text differently. In this particular case, we're dealing with an Inkscape extension which does not have access to information about how the text was flowed before we got to it, so we essentially have to re-flow it from scratch. This data,is also text. However, it hasmany returnseachonitsownlinein order to makeit take up more verticalspace so that wecan see how it handlesweird edge caseslikethisone. +     We are testing an Inkscape extension called Hershey Text 3.0. The purpose of this extension is to take a block of flowed text, and replace it with stroke-based engraving fonts. We've got a number of different single-stroke fonts built in as well, that help to provide some options. However, we need to test that it handles a variety of different formats of text including different input fonts, alignment, flowed and regular text, variations of font size with a given span, returns, non-breaking spaces, transforms, nested groups and so forth. SVG allows text to be formatted in many different ways.This text is in Layer 1. Text, non-flowed,align left. However, it hasmany returnseachonitsownlinein order to makeit take up more verticalspace so that wecan see how it handlesweird edge caseslikethisone. + Text, non-flowed,align center However, it hasmany returnseachonitsownlinein order to makeit take up more verticalspace so that wecan see how it handlesweird edge caseslikethisone. + Text, non-flowed,align right. However, it hasmany returnseachonitsownlinein order to makeit take up more verticalspace so that wecan see how it handlesweird edge caseslikethisone. + Test: Flowed text, aligned left. Can we handle text that is aligned left, aligned right, centered, justified and so forth? Not all of these cases are necessarily useful for all applications (for example justified with stroke based fonts in the styles of handwriting), but that's not really for us to decide.Rather, we need to handle these cases because the text that is handed to us just might be in some unusual format.. This transformed text... is text with a gap... + Test: Flowed text, aligned center. Can we handle text that is aligned left, aligned right, centered, justified and so forth? Not all of these cases are necessarily useful for all applications (for example justified with stroke based fonts in the styles of handwriting), but that's not really for us to decide.Rather, we need to handle these cases because the text that is handed to us just might be in some unusual format.. Test: Flowed text, aligned right. Can we handle text that is aligned left, aligned right, centered, justified and so forth? Not all of these cases are necessarily useful for all applications (for example justified with stroke based fonts in the styles of handwriting), but that's not really for us to decide.Rather, we need to handle these cases because the text that is handed to us just might be in some unusual format.. Test: Flowed text, justified. Can we handle text that is aligned left, aligned right, centered, justified and so forth? Not all of these cases are necessarily useful for all applications (for example justified with stroke based fonts in the styles of handwriting), but that's not really for us to decide.Rather, we need to handle these cases because the text that is handed to us just might be in some unusual format.. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tests of font face mapping: + + + Tests of non-text objects: + + + This is a test of centered text, one long line of text flowed into a box, centered, and in a different font. flowStylesToCheck    Flowed text object with multiple returns before start and also       additional sections with more returnsThat was just one return, since the paragraph above this one.That was two returns, since the paragraph above this one.And that, that was three returns.Just for good measure, this paragraph had a return before the word "just" above. And, we're going to finish with a few returns as well. Bold Serif Text Dear Mike,Thanks for pointing out that we need to handle textthat is shaped like this as well.Have a great day! + Flowed text object with multiple sizes before the start and also       additional sections with more returns and non-breaking spaces, which need to be tested.Hershey Text v 3.0 for Inkscape This is an SVG document provided as an input for testing the Hershey Text extension.The purpose of this new extension is to take a block of flowed text, and replace it with stroke-based engraving fonts. It includes a small selection of such fonts, which need to be in the SVG format. Technically, it can work with any SVG font, even ones that are not stroke-based.This text is in the DOCUMENT ROOT. Scripty text Hand-written text Non-FlowedStylesToCheck + Multi-lineText createdWithout x and ybut with sodipodi:roleattributes instead. + Multi-lineText createdwith tspan elementsand x and ypositions + -- cgit v1.2.3