From efc921ad18d192ce0ab3d450de79a9dcb6ee55cf Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 18 Feb 2015 12:18:40 -0800 Subject: [PATCH] Specs: write up what we've discussed about fonts, just so that it's written down somewhere (this is just a sketch for now) Review URL: https://codereview.chromium.org/933373002 --- specs/fonts.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 specs/fonts.md diff --git a/specs/fonts.md b/specs/fonts.md new file mode 100644 index 00000000000..935814f112c --- /dev/null +++ b/specs/fonts.md @@ -0,0 +1,17 @@ +Fonts +===== + +Mojo has a font service, which takes a URL and hands back glyphs. + +Sky has an API that takes a URL, a name, and hands back a promise +which, when resolved, indicates that Sky has now associated that font +name with the relevant glyphs (by calling the Mojo service). + +The text part of Sky's drawing API accepts a list of font names, and +uses those to draw the relevant glyphs, falling back through the +provided fonts, then all the loaded fonts, until a glyph is found. + +By default, three fonts are loaded, with the names 'serif', +'sans-serif', and 'monospace'. They have good Unicode coverage. + +TODO(ianh): Actually define these APIs and so on.