Tetra v0.6.1 Release Notes

Release Date: 2021-03-15 // about 3 years ago
  • ➕ Added

    • Blend modes can now be set when rendering (including variants for pre-multiplied alpha). (@tesselode in #244)
    • Scissor rectangles can now be set when rendering, via graphics::set_scissor and graphics::reset_scissor.
    • Rectangle::combine has been added, which can be used to get a rectangle that contains two other rectangles.
    • Fonts can now have their filter mode set, instead of always using nearest neighbor filtering. (@tesselode in #246)
      • Fonts now also respect the default filter mode when they are created.
    • Text now supports word-wrapping, via the Text::wrapped constructor or the Text::set_max_width method.
    • More events have been added for window state changes, such as minimizing and maximizing. (@sumibi-yakitori in #248
    • window::set_visible and window::is_visible can be used to get and set whether or not the window is currently hidden to the user.

    🔄 Changed

    • ⚡️ Updated hashbrown to 0.11.
    • ⚡️ Updated glow to 0.8.

    🛠 Fixed

    • Text::get_bounds no longer returns incorrect results when a tall glyph is added after a short glyph. (@tesselode in #241)
    • Kerning is now taken into account when rasterizing characters, rather than just for positioning.