Decker 1.30


Decker 1.30 is a maintenance release with bugfixes, usability improvements, and minor API improvements.

Fixes (Web and Native)

  • Making a selection, using "Edit -> Tight Selection", and then copying an image now correctly uses the tightest possible bounding box for the selected region, rather than retaining the pre-tightened bounding box. This behavior makes the feature much more useful for grabbing a minimally-padded "sprite" image.
  • Corrected "leaky" rendering contexts leading to incorrectly justified Listener responses.

Fixes (Web)

  • Fixed an inconsistency in how "image.translate[]" dealt with non-integral offset values.
  • Corrected modifier keys "sticking" in some situations when Decker lost window focus.

New Features

  • As a complement to "font.textsize[]", which measures the bounds of text as displayed with a single font, there is now "canvas.textsize[rtext width]", which can perform a similar measurement for an arbitrary rich-text (rtext) table (including inline images, multiple fonts, etc.), optionally wrapping the text horizontally within a specified width. Exposing this API makes it much easier to build contraptions or modules which render rtext.


  • When copying cards or widgets to the clipboard, Decker will now additionally transport any custom fonts referenced by the relevant widgets, much like its behavior for transporting contraption prototypes, making it easier to share and import fonts. Note that Decker's analysis of which fonts are referenced relies on the ".font" attribute of widgets (including those within contraptions) and the "font" column of rich text tables; it cannot automatically detect scripts which reference a custom font.
  • A new example deck, "chip8.deck" demonstrating the use of Lil modules to create a reasonably efficient CHIP-8 interpreter within Decker. Anyone up for writing a GameBoy emulator next?



    Files

    Decker-1.30-mac.zip 2 MB
    Sep 29, 2023
    Decker-1.30-win.zip 1 MB
    Sep 29, 2023
    lilt-1.30.zip 429 kB
    Sep 29, 2023

    Get Decker

    Download NowName your own price

    Leave a comment

    Log in with itch.io to leave a comment.