TAbdiukov / txtShear

Fast engine to skew (or shear) text by a desired angle, emulating handwriting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IDEAS: txtShear list options

TAbdiukov opened this issue · comments

The following options to consider

  • dir/w style output
  • Listing with newlines (like dir/b)

Conclusion: (previously) decided against it, as currently txtShear list outputs using a simple syntax.

Since pipe character is not allowed by Windows, a font name with a "|" character would generally be unlikely. Therefore, the following output syntax is used,

font1|font2|font3|...|font{n-1}|fontn}|

Which optimally addresses both concerns,

  • The output is even more optimal than dir/w, space-wise, as pipe character takes only one character in width (in contrast to to \t)
  • "Listing with newlines" (dir/b) risks having some output being cut off by a limited buffer, which is well mitigated by syntax used. If "Listing with newlines" is absolutely required, then it is possible to simply find&replace all | characters with \r\n. \r\n will also be present after the last entry

Resolved

updated