Vio-Pad 1.0
A small word processor for Violyx, by Merecete.

Write letters, invitations and short reports the way they will look on paper: three typefaces
(System, Sans and Serif), nine sizes from 8 to 40 pt, bold, italic, underlined and struck out,
eight colours; paragraphs left, centred, right or justified; tabs. The text stands on white
pages with margins and page numbers and is broken into pages as it would be printed.

The typefaces
  System   the Violyx system font, as sharp as everything else on the screen. In 10 pt each
           letter is one text cell; Violyx cannot draw bold, italic or lines in a text cell, so
           such letters are marked with a light background (they are kept, and the export shows
           them). At 20 and 40 pt the system font is drawn bigger and shows everything.
  Sans     DejaVu Sans, smooth letters in all nine sizes, good for headings.
  Serif    DejaVu Serif, the same with serifs.

Install
  Copy viopad.vpk to Violyx and press Enter on it in Files, or type: install viopad.vpk
  Vio-Pad opens in a window of 76 x 20 characters; F5 gives it the whole screen.

Keys
  Typing           letters, umlauts, Enter for a new paragraph, Tab
  Moving           arrows, Home/End, Page Up/Down, Ctrl+arrows by words, Ctrl+Home/End
  Selecting        Shift with the keys above, Ctrl+A all
  F8               the format panel: typeface, size, colour, bold ... with the arrows and Enter,
                   Esc closes it. Also in the menu (F10): Vio-Pad > Format
  Ctrl+B / I / U / D     bold, italic, underlined, struck out
  Ctrl+Plus / Minus      bigger / smaller letters (also F12 / F11)
  Ctrl+L / E / R / J     left, centred, right, justified
  Ctrl+Space             remove the formatting of the letters
  Ctrl+C / X / V         copy, cut, paste (kept until the next start too)
  Ctrl+Z / Y             undo, redo
  Ctrl+F                 find
  Ctrl+N / O / S         new, open, save; Ctrl+Shift+S save as
  F1                     all keys
  Esc                    closes Vio-Pad, and asks first when the document is not saved
  Formatting works on the selection; without a selection on what is typed next.

Files
  Documents are saved as .vpd. Without a path a name goes to /home (brief -> /home/brief.vpd).
  Open takes .vpd documents and text files (CP437 as Write saves them, or UTF-8).
  Export (menu): as a web page (.html, with all formatting, opens in every browser) or as text.
  Anything not saved is kept every 20 seconds and offered again at the next start, also when
  Violyx was switched off.

Build
  Copy viopad.c, viopad-font.h and viopad-icon.png into the examples folder of the Violyx SDK
  (sdk/ in the Violyx source) and run there:

  make APP=examples/viopad NAME=viopad TITLE=Vio-Pad VPKFLAGS='--cols 76 --rows 20 --version 1.0 --author Merecete --icon "╒╤╤╤╕ |│≡≡≡│/|╘═══╛ " --icon-png examples/viopad-icon.png'

  viopad-font.h is made by genfont.py (Python 3 with Pillow) from the DejaVu fonts and the
  Spleen font of the Violyx source:
  python3 genfont.py /usr/share/fonts/truetype/dejavu ../third_party/spleen/spleen-8x16-ibm-437.bdf

Licence
  Vio-Pad: BSD 3-Clause License, see LICENSE. Copyright (c) 2026, Merecete.
  The letters: DejaVu Sans and Serif (Bitstream Vera and Arev licences) and
  Spleen 8x16 (BSD-2-Clause), see LICENSE-FONTS.
