Skip to content

Commit 015ab9d

Browse files
authored
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.
1 parent 99d2119 commit 015ab9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/text/text_codepoints_loading.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ int main(void)
3838

3939
InitWindow(screenWidth, screenHeight, "raylib [text] example - codepoints loading");
4040

41-
// Get codepoints from text
41+
// Convert each utf-8 character into its
42+
// corresponding codepoint in the font file.
4243
int codepointCount = 0;
4344
int *codepoints = LoadCodepoints(text, &codepointCount);
4445

@@ -155,4 +156,4 @@ static int *CodepointRemoveDuplicates(int *codepoints, int codepointCount, int *
155156

156157
*codepointsResultCount = codepointsNoDupsCount;
157158
return codepointsNoDups;
158-
}
159+
}

0 commit comments

Comments
 (0)