From 661e537241990bbfb326f275e00a8ecec58fed92 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 23 Jan 2025 14:20:38 -0800
Subject: [PATCH] Updated README-migration.md with API changes
Fixes https://github.com/libsdl-org/SDL_ttf/issues/468
---
docs/README-migration.md | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/docs/README-migration.md b/docs/README-migration.md
index bb609986..be2903a9 100644
--- a/docs/README-migration.md
+++ b/docs/README-migration.md
@@ -48,11 +48,10 @@ The following functions have been renamed:
* TTF_FontLineSkip() => TTF_GetFontLineSkip()
* TTF_GetFontWrappedAlign() => TTF_GetFontWrapAlignment()
* TTF_GlyphIsProvided() => TTF_FontHasGlyph()
-* TTF_GlyphIsProvided32() => TTF_GlyphIsProvided()
+* TTF_GlyphIsProvided32() => TTF_FontHasGlyph()
* TTF_GlyphMetrics() => TTF_GetGlyphMetrics()
-* TTF_GlyphMetrics32() => TTF_GlyphMetrics()
+* TTF_GlyphMetrics32() => TTF_GetGlyphMetrics()
* TTF_IsFontScalable() => TTF_FontIsScalable()
-* TTF_MeasureUTF8() => TTF_MeasureText()
* TTF_RenderGlyph32_Blended() => TTF_RenderGlyph_Blended()
* TTF_RenderGlyph32_LCD() => TTF_RenderGlyph_LCD()
* TTF_RenderGlyph32_Shaded() => TTF_RenderGlyph_Shaded()
@@ -75,7 +74,9 @@ The following functions have been removed:
* TTF_FontFaces() - can be retrieved from the font FT_Face, available in TTF_PROP_FONT_FACE_POINTER
* TTF_GetFontKerningSizeGlyphs() - replaced with TTF_GetGlyphKerning()
* TTF_GetFontKerningSizeGlyphs32() - replaced with TTF_GetGlyphKerning()
-* TTF_MeasureUNICODE()
+* TTF_MeasureText() - replaced with TTF_MeasureString()
+* TTF_MeasureUNICODE() - replaced with TTF_MeasureString()
+* TTF_MeasureUTF8() - replaced with TTF_MeasureString()
* TTF_OpenFontDPI() - replaced with TTF_OpenFontWithProperties()
* TTF_OpenFontDPIIO() - replaced with TTF_OpenFontWithProperties()
* TTF_OpenFontIndex() - replaced with TTF_OpenFontWithProperties()