SDL_ttf 2.0.18 released!

Thanks to all the people who contributed code and feedback, SDL_ttf 2.0.18 is now available!

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