Bedstead({
arguments: args,
print: function(charstring) {
- document.getElementById("charstring").textContent = charstring;
document.getElementById("rendered")
.setAttribute("d", charstring
.replaceAll(/<!--(?:[^-]|-[^-])*-->/g, "")
</div>
</div>
<p><input id="c" type="text" size="39"/></p>
- <p><code id="charstring"></code></p>
+ <h2>Bedstead Editor</h2>
+ <p>This page allows you to design glyphs for
+ <a href=".">Bedstead</a>.
+ Click pixels in the grid on the left to turn them on and off.
+ The drawing on the right shows the rendered glyph, which will be
+ identical to the input until you start drawing diagonal lines.
+ The box below the grid shows the pixels encoded for adding to
+ <code>bedstead.c</code>.
+ You can also edit that box directly, or paste designs into it.</p>
<div class="smallprint">
<p>This editor contains code from Emscripten and musl libc under
the following licence:</p>