From 015ab9df18efc1a8f3751669cc07fd005f78be1b Mon Sep 17 00:00:00 2001 From: Jay Rhoden Date: Mon, 24 Feb 2025 01:19:10 +0800 Subject: [PATCH] Amend comment to explain what LoadCodepoints is doing. (#4787) As a beginner, it was not clear to me what the purpose of the LoadCodepoints function is. I am trying to help past me. --- examples/text/text_codepoints_loading.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/text/text_codepoints_loading.c b/examples/text/text_codepoints_loading.c index a4cd5ca79..aa9f7bb76 100644 --- a/examples/text/text_codepoints_loading.c +++ b/examples/text/text_codepoints_loading.c @@ -38,7 +38,8 @@ int main(void) InitWindow(screenWidth, screenHeight, "raylib [text] example - codepoints loading"); - // Get codepoints from text + // Convert each utf-8 character into its + // corresponding codepoint in the font file. int codepointCount = 0; int *codepoints = LoadCodepoints(text, &codepointCount); @@ -155,4 +156,4 @@ static int *CodepointRemoveDuplicates(int *codepoints, int codepointCount, int * *codepointsResultCount = codepointsNoDupsCount; return codepointsNoDups; -} \ No newline at end of file +}