Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Unified Diff: sky/specs/fonts.md

Issue 933373002: Specs: write up what we've discussed about fonts, just so that it's written down somewhere (this is… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/fonts.md
diff --git a/sky/specs/fonts.md b/sky/specs/fonts.md
new file mode 100644
index 0000000000000000000000000000000000000000..935814f112cd016bfce4294832e16fc423e8c5eb
--- /dev/null
+++ b/sky/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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698