From 4e6638923b0de8403fdcabd1297486771e21b48f Mon Sep 17 00:00:00 2001 From: GValiente Date: Wed, 27 Nov 2024 07:06:15 +0100 Subject: [PATCH] butano: sprite_text_generator uses one sprite per character if the space between characters is too big --- butano/include/documentation/bn_documentation_g_changelog.h | 2 +- butano/src/bn_sprite_text_generator.cpp | 2 +- docs/changelog.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/butano/include/documentation/bn_documentation_g_changelog.h b/butano/include/documentation/bn_documentation_g_changelog.h index ca3a1845..174a7ead 100644 --- a/butano/include/documentation/bn_documentation_g_changelog.h +++ b/butano/include/documentation/bn_documentation_g_changelog.h @@ -14,7 +14,7 @@ * * @section changelog_18_5_0 18.5.0 (next release) * - * * bn::sprite_text_generator rendering with negative space between characters fixed. + * * bn::sprite_text_generator uses one sprite per character if the space between characters is too big. * * @ref faq_memory_arm_iwram question added to the @ref faq page. * * diff --git a/butano/src/bn_sprite_text_generator.cpp b/butano/src/bn_sprite_text_generator.cpp index 44cd62d1..7529c8aa 100644 --- a/butano/src/bn_sprite_text_generator.cpp +++ b/butano/src/bn_sprite_text_generator.cpp @@ -1341,7 +1341,7 @@ void sprite_text_generator::_init() } else { - if(space_between_characters < 0 || space_between_characters >= width) + if(space_between_characters >= width) { _font_one_sprite_per_character = true; } diff --git a/docs/changelog.html b/docs/changelog.html index b06e008a..a1fc3e2d 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -216,7 +216,7 @@

Contents

  • 0.1.0
  • -

    18.5.0 (next release)

    18.4.0

    18.3.0

    18.2.1

    18.2.0

    18.1.0

    18.0.1

    Tools no longer crash on Windows with more than 60 logical CPU cores.

    18.0.0

    17.9.0

    17.8.1

    17.8.0

    17.7.0

    17.6.0

    17.5.0

    17.4.0

    17.3.0

    17.2.0

    17.1.1

    bn::unique_ptr move fixed.

    17.1.0

    17.0.0

    16.6.0

    16.5.0

    16.4.0

    16.3.0

    16.2.0

    16.1.0

    16.0.0

    15.9.0

    15.8.2

    15.8.1

    bn::vector::assign fixed.

    15.8.0

    15.7.1

    Python 2 support restored.

    15.7.0

    15.6.0

    15.5.0

    15.4.1

    bn::core::reset race condition fixed.

    15.4.0

    15.3.2

    BG blocks commit fixed.

    15.3.1

    Slow game pak detection fixed (again).

    15.3.0

    15.2.0

    15.1.0

    15.0.0

    14.1.0

    14.0.0

    13.18.0

    13.17.0

    13.16.1

    bn::ibitset AND operator fixed.

    13.16.0

    13.15.0

    13.14.0

    13.13.0

    13.12.1

    Tonclib linking error fixed.

    13.12.0

    13.11.0

    13.10.1

    memset undefined references with link-time optimization fixed.

    13.10.0

    13.9.0

    13.8.1

    bn::any management with types that can't be copied, moved or swapped fixed.

    13.8.0

    13.7.0

    13.6.0

    13.5.0

    13.4.0

    13.3.1

    bn::erase and bn::erase_if fixed.

    13.3.0

    13.2.0

    13.1.1

    Recovery of deleted background maps fixed.

    13.1.0

    13.0.0

    12.5.0

    BN_CFG_ASSERT_SHOW_DIAGNOSTIC added.

    12.4.0

    12.3.0

    12.2.0

    12.1.0

    12.0.0

    11.0.1

    bn::string::starts_with and bn::string_view::starts_with fixed.

    11.0.0

    Huffman images compression support (make sure to update devkitARM before using it).

    10.7.0

    10.6.1

    bn::bitset AND, OR and XOR operators fixed.

    10.6.0

    10.5.0

    10.4.0

    10.3.0

    10.2.0

    10.1.0

    10.0.0

    9.5.0

    9.4.1

    BMP files colors count calculation fixed (again).

    9.4.0

    9.3.0

    9.2.0

    9.1.1

    bn::calculate_sin_lut_value sine and cosine symmetry with 135 and 315 degrees fixed.

    9.1.0

    9.0.0

    8.10.0

    8.9.0

    8.8.0

    8.7.0

    8.6.0

    8.5.0

    8.4.0

    8.3.0

    8.2.0

    8.1.0

    8.0.0

    7.8.0

    7.7.0

    7.6.0

    7.5.1

    Audio and HDMA issues when updating at less than 60FPS fixed.

    7.5.0

    7.4.0

    7.3.0

    7.2.0

    7.1.1

    bn::vector, bn::unordered_map and bn::unordered_set move constructors and assignment operators fixed.

    7.1.0

    7.0.1

    bn::format build fix.

    7.0.0

    6.18.0

    6.17.1

    6.17.0

    6.16.0

    6.15.0

    6.14.0

    6.13.1

    6.13.0

    6.12.0

    6.11.0

    6.10.0

    6.9.0

    6.8.0

    6.7.0

    6.6.2

    Automatic sprite double size detection fixed.

    6.6.1

    BG blocks manager use after move fixed.

    6.6.0

    6.5.0

    6.4.0

    6.3.0

    6.2.0

    6.1.0

    6.0.0

    5.3.1

    bn::atan2 and bn::degrees_atan2 fixed.

    5.3.0

    5.2.0

    5.1.0

    5.0.0

    4.4.0

    4.3.0

    4.2.0

    4.1.0

    4.0.0

    3.3.0

    3.2.1

    bn::optional build fix.

    3.2.0

    bn::optional is now constexpr.

    3.1.0

    3.0.0

    Thanks to the awesome gba-link-connection, multiplayer support has been implemented! See bn::link and the link example for more.

    2.0.0

    1.0.0

    0.4.0

    0.3.0

    0.2.0

    0.1.0

    First release.

    +

    18.5.0 (next release)

    18.4.0

    18.3.0

    18.2.1

    18.2.0

    18.1.0

    18.0.1

    Tools no longer crash on Windows with more than 60 logical CPU cores.

    18.0.0

    17.9.0

    17.8.1

    17.8.0

    17.7.0

    17.6.0

    17.5.0

    17.4.0

    17.3.0

    17.2.0

    17.1.1

    bn::unique_ptr move fixed.

    17.1.0

    17.0.0

    16.6.0

    16.5.0

    16.4.0

    16.3.0

    16.2.0

    16.1.0

    16.0.0

    15.9.0

    15.8.2

    15.8.1

    bn::vector::assign fixed.

    15.8.0

    15.7.1

    Python 2 support restored.

    15.7.0

    15.6.0

    15.5.0

    15.4.1

    bn::core::reset race condition fixed.

    15.4.0

    15.3.2

    BG blocks commit fixed.

    15.3.1

    Slow game pak detection fixed (again).

    15.3.0

    15.2.0

    15.1.0

    15.0.0

    14.1.0

    14.0.0

    13.18.0

    13.17.0

    13.16.1

    bn::ibitset AND operator fixed.

    13.16.0

    13.15.0

    13.14.0

    13.13.0

    13.12.1

    Tonclib linking error fixed.

    13.12.0

    13.11.0

    13.10.1

    memset undefined references with link-time optimization fixed.

    13.10.0

    13.9.0

    13.8.1

    bn::any management with types that can't be copied, moved or swapped fixed.

    13.8.0

    13.7.0

    13.6.0

    13.5.0

    13.4.0

    13.3.1

    bn::erase and bn::erase_if fixed.

    13.3.0

    13.2.0

    13.1.1

    Recovery of deleted background maps fixed.

    13.1.0

    13.0.0

    12.5.0

    BN_CFG_ASSERT_SHOW_DIAGNOSTIC added.

    12.4.0

    12.3.0

    12.2.0

    12.1.0

    12.0.0

    11.0.1

    bn::string::starts_with and bn::string_view::starts_with fixed.

    11.0.0

    Huffman images compression support (make sure to update devkitARM before using it).

    10.7.0

    10.6.1

    bn::bitset AND, OR and XOR operators fixed.

    10.6.0

    10.5.0

    10.4.0

    10.3.0

    10.2.0

    10.1.0

    10.0.0

    9.5.0

    9.4.1

    BMP files colors count calculation fixed (again).

    9.4.0

    9.3.0

    9.2.0

    9.1.1

    bn::calculate_sin_lut_value sine and cosine symmetry with 135 and 315 degrees fixed.

    9.1.0

    9.0.0

    8.10.0

    8.9.0

    8.8.0

    8.7.0

    8.6.0

    8.5.0

    8.4.0

    8.3.0

    8.2.0

    8.1.0

    8.0.0

    7.8.0

    7.7.0

    7.6.0

    7.5.1

    Audio and HDMA issues when updating at less than 60FPS fixed.

    7.5.0

    7.4.0

    7.3.0

    7.2.0

    7.1.1

    bn::vector, bn::unordered_map and bn::unordered_set move constructors and assignment operators fixed.

    7.1.0

    7.0.1

    bn::format build fix.

    7.0.0

    6.18.0

    6.17.1

    6.17.0

    6.16.0

    6.15.0

    6.14.0

    6.13.1

    6.13.0

    6.12.0

    6.11.0

    6.10.0

    6.9.0

    6.8.0

    6.7.0

    6.6.2

    Automatic sprite double size detection fixed.

    6.6.1

    BG blocks manager use after move fixed.

    6.6.0

    6.5.0

    6.4.0

    6.3.0

    6.2.0

    6.1.0

    6.0.0

    5.3.1

    bn::atan2 and bn::degrees_atan2 fixed.

    5.3.0

    5.2.0

    5.1.0

    5.0.0

    4.4.0

    4.3.0

    4.2.0

    4.1.0

    4.0.0

    3.3.0

    3.2.1

    bn::optional build fix.

    3.2.0

    bn::optional is now constexpr.

    3.1.0

    3.0.0

    Thanks to the awesome gba-link-connection, multiplayer support has been implemented! See bn::link and the link example for more.

    2.0.0

    1.0.0

    0.4.0

    0.3.0

    0.2.0

    0.1.0

    First release.