Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm not sure what you mean by this. Are you asking where you can add True Type Fonts?

If you wish to use other fonts with the TTF tutorial, you can drop the TTF file into the "font" directory of the tutorial, update initFonts() in text.c to tell the code to load that TTF instead of the demo font, and then also update the "Hello World" text in initDemo() of demo.c

You will then be able to render the glyphs you desire. Ensure that the TTF file that you use supports whichever glyphs you desire; for example, Google has a TTF that support traditional Chinese:

https://fonts.google.com/noto/specimen/Noto+Sans+TC

Otherwise, the tutorials themselves are only available in English, I'm afraid.

Deleted 14 days ago

Sorry for the vague question asked.

The Chinese bitmap font is used in the sdl2Shooter project, but it does not display properly. Is there something wrong with this bitmap font. Bitmap fonts are generated on this site, and it seems that the order is out of order. Bitmap Font Generator Online - SnowB Bitmap Font

I asked about online AI, the problem is that fnt bitmap data is needed, and now it can display Chinese normally.

Good to hear that you were able to solve your problem.

When it comes to text, these tutorials use the ASCII character set. Supporting other symbols outside of that set is quite an advanced topic, as it can get very difficult.