| OLD | NEW |
| (Empty) | |
| 1 Fonts |
| 2 ===== |
| 3 |
| 4 Mojo has a font service, which takes a URL and hands back glyphs. |
| 5 |
| 6 Sky has an API that takes a URL, a name, and hands back a promise |
| 7 which, when resolved, indicates that Sky has now associated that font |
| 8 name with the relevant glyphs (by calling the Mojo service). |
| 9 |
| 10 The text part of Sky's drawing API accepts a list of font names, and |
| 11 uses those to draw the relevant glyphs, falling back through the |
| 12 provided fonts, then all the loaded fonts, until a glyph is found. |
| 13 |
| 14 By default, three fonts are loaded, with the names 'serif', |
| 15 'sans-serif', and 'monospace'. They have good Unicode coverage. |
| 16 |
| 17 TODO(ianh): Actually define these APIs and so on. |
| OLD | NEW |