|
@@ -38,7 +38,8 @@ int main(void)
|
|
|
|
|
|
InitWindow(screenWidth, screenHeight, "raylib [text] example - codepoints loading");
|
|
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 codepointCount = 0;
|
|
int *codepoints = LoadCodepoints(text, &codepointCount);
|
|
int *codepoints = LoadCodepoints(text, &codepointCount);
|
|
|
|
|
|
@@ -155,4 +156,4 @@ static int *CodepointRemoveDuplicates(int *codepoints, int codepointCount, int *
|
|
|
|
|
|
*codepointsResultCount = codepointsNoDupsCount;
|
|
*codepointsResultCount = codepointsNoDupsCount;
|
|
return codepointsNoDups;
|
|
return codepointsNoDups;
|
|
-}
|
|
|
|
|
|
+}
|