- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Makzan
- 129字
- 2025-04-04 20:55:44
Embedding web fonts into our game
Over the years, we have been using limited fonts to design web pages. We could not use whatever fonts we wanted because the browser loaded the font from the visitor's local machine, and we cannot control or ensure that visitors have our desired fonts.
Although we can embed web fonts to Internet Explorer 5 with a limited type format, we have to wait until browser vendors support embedding the most common TrueType font format.
Imagine that we can control the mood of the game by embedding different styles of web fonts. We can then design the games with our desired fonts and have more control over the appeal of the game. Let's try to embed a web font into our memory matching game.