Skip to content

v0.0.20

Pre-release
Pre-release

Choose a tag to compare

@gulien gulien released this 25 Nov 07:41
· 10 commits to main since this release

Important

This is still very much a work in progress, so expect breaking changes.

Features

  • WithFieldFonts offers fonts to Writer.SetFormField and Writer.SetFormFieldValues. A value outside WinAnsiEncoding is drawn into the field's widgets with the first program the source offers that covers it, as WithFlattenFonts does for Writer.FlattenForm.

Fixes

  • Writer.SetFormField draws the new value into the widgets of a text field or a combo box. Each widget, the kids of a field included, gets an appearance that shows the value on one line, in the font and colour its /DA names, or the field's when the widget states none. Before, a viewer that ignores /NeedAppearances, and Writer.FlattenForm, showed the value the stored appearance drew. A value no font draws leaves the widgets without an appearance and logs a warning. Password fields and list boxes keep their appearances.
  • Writer.FlattenForm reads a widget's field from the edits queued before it. Flattened in the same write as Writer.SetFormField, the kid widgets of a field read the field without its new value and were dropped.