- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Makzan
- 129字
- 2021-07-16 14:10:01
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.
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Microsoft Application Virtualization Cookbook
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- QGIS:Becoming a GIS Power User
- Python語(yǔ)言實(shí)用教程
- 創(chuàng)意UI:Photoshop玩轉(zhuǎn)APP設(shè)計(jì)
- OpenMP核心技術(shù)指南
- Scala編程實(shí)戰(zhàn)
- 網(wǎng)絡(luò)數(shù)據(jù)采集技術(shù):Java網(wǎng)絡(luò)爬蟲實(shí)戰(zhàn)
- Android系統(tǒng)下Java編程詳解
- Unity 5.X從入門到精通
- C#程序開發(fā)參考手冊(cè)
- 面向物聯(lián)網(wǎng)的Android應(yīng)用開發(fā)與實(shí)踐
- Roslyn Cookbook
- 微信小程序開發(fā)圖解案例教程:附精講視頻(第3版)