Skip to content

Releases: libsdl-org/SDL_ttf

2.22.0

21 Jan 15:08
Compare
Choose a tag to compare

In addition to bug fixes, here are the major changes in this release:

  • Updated to FreeType version 2.13.2 and HarfBuzz version 8.1.1

2.21.2

15 Jan 23:12
Compare
Choose a tag to compare
2.21.2 Pre-release
Pre-release

This is a release candidate for 2.22.0.

In addition to bug fixes, here are the major changes in this release:

Updated to FreeType version 2.13.2 and HarfBuzz version 8.1.1

2.21.1

15 Jan 19:11
Compare
Choose a tag to compare
2.21.1 Pre-release
Pre-release

This is a release candidate for 2.22.0.

In addition to bug fixes, here are the major changes in this release:

  • Updated to FreeType version 2.13.0 and HarfBuzz version 8.1.1

2.20.2

07 Feb 01:29
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

  • Fixed building from source without running autogen.sh

2.20.1

19 Aug 17:51
Compare
Choose a tag to compare

This is a quick update to fix building with homebrew on macOS

2.20.0

07 Jul 13:26
Compare
Choose a tag to compare

In addition to new CMake support by @madebr and many bug fixes, here are the highlights since the last release:

  • API documentation is now available on the wiki: https://wiki.libsdl.org/SDL_ttf
  • Added TTF_GetFontWrappedAlign() and TTF_SetFontWrappedAlign() to set alignment on wrapped text
  • Added functions to render using FreeType LCD algorithm:
    TTF_RenderText_LCD()
    TTF_RenderUTF8_LCD()
    TTF_RenderUNICODE_LCD()
    TTF_RenderText_LCD_Wrapped()
    TTF_RenderUTF8_LCD_Wrapped()
    TTF_RenderUNICODE_LCD_Wrapped()
    TTF_RenderGlyph_LCD()
    TTF_RenderGlyph32_LCD()
  • Added TTF_SetFontDirection() and TTF_SetFontScriptName() for additional control over fonts using HarfBuzz
  • Updated to FreeType version 2.12.1 and HarfBuzz version 2.9.1, fixing CVE-2018-25032
  • Fixed crash when loading fonts at certain sizes on Windows
  • Fix memory corruption loading malformed TTF files (CVE-2022-27470)

2.19.3

29 Jun 02:11
Compare
Choose a tag to compare
2.19.3 Pre-release
Pre-release

This is hopefully the final release candidate for 2.20.0.

The header documentation has been updated and is available at https://wiki.libsdl.org/SDL_ttf

2.19.2

17 Jun 06:02
Compare
Choose a tag to compare
2.19.2 Pre-release
Pre-release

This is a release candidate for 2.20.0.

In addition to new CMake support by @madebr and many bug fixes, here are the highlights since the last release:

  • Added TTF_GetFontWrappedAlign() and TTF_SetFontWrappedAlign() to set alignment on wrapped text
  • Added functions to render using FreeType LCD algorithm:
    TTF_RenderText_LCD()
    TTF_RenderUTF8_LCD()
    TTF_RenderUNICODE_LCD()
    TTF_RenderText_LCD_Wrapped()
    TTF_RenderUTF8_LCD_Wrapped()
    TTF_RenderUNICODE_LCD_Wrapped()
    TTF_RenderGlyph_LCD()
    TTF_RenderGlyph32_LCD()
  • Added TTF_SetFontDirection() and TTF_SetFontScriptName() for additional control over fonts using HarfBuzz
  • Updated to FreeType version 2.12.1 and HarfBuzz version 2.9.1, fixing CVE-2018-25032
  • Fixed crash when loading fonts at certain sizes on Windows
  • Fix memory corruption loading malformed TTF files (CVE-2022-27470)

2.19.1

25 May 18:35
Compare
Choose a tag to compare
2.19.1 Pre-release
Pre-release

Early testing pre-release for 2.20.0, not for general use

2.0.18

11 Jan 19:35
3e702ed
Compare
Choose a tag to compare

Changes in this release:

  • Added TTF_GetFreeTypeVersion() and TTF_GetHarfBuzzVersion()
  • Added support for Signed Distance Field rendering with TTF_SetFontSDF() and TTF_GetFontSDF()
  • Added optional DPI-scaling of fonts, with the following new functions:
    TTF_OpenFontDPI()
    TTF_OpenFontIndexDPI()
    TTF_OpenFontDPIRW()
    TTF_OpenFontIndexDPIRW()
    TTF_SetFontSizeDPI()
  • Added 32-bit character support with:
    TTF_GlyphIsProvided32()
    TTF_GlyphMetrics32()
    TTF_RenderGlyph32_Solid()
    TTF_RenderGlyph32_Shaded()
    TTF_RenderGlyph32_Blended()
    TTF_GetFontKerningSizeGlyphs32()
  • Added functions to set direction and script when using Harfbuzz:
    TTF_SetDirection()
    TTF_SetScript()
  • Added extended API for text measurement:
    TTF_MeasureText()
    TTF_MeasureUTF8()
    TTF_MeasureUNICODE()
  • Added TTF_SetFontSize() to set font size dynamically
  • Added 'Shaded' and 'Solid' text wrapped functions:
    TTF_RenderText_Solid_Wrapped()
    TTF_RenderUTF8_Solid_Wrapped()
    TTF_RenderUNICODE_Solid_Wrapped()
    TTF_RenderText_Shaded_Wrapped()
    TTF_RenderUTF8_Shaded_Wrapped()
    TTF_RenderUNICODE_Shaded_Wrapped()
  • Added TTF_HINTING_LIGHT_SUBPIXEL for better results at small text sizes at a performance cost