oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1{
2 "comment": "Which font families a deck's slides can be drawn in: internal/slides/render's FamiliesUsed (then UploadedUsed, as \"u:\" + css) and fixtures/font-families.mjs's familiesOfView must both give these answers (render/families_test.go, fixtures/font-families.test.mjs). stacks is the manifest the browser gets (render.ThemeStacks, CodeStack), checked against the Go side so the JS test reads the real ones. Written by hand, like Docs' font-stacks.json: a case changes with the rule, on both sides, in the same commit.",
3 "stacks": {
4 "themes": {
5 "paper": [
6 "Liberation Serif, Georgia, serif",
7 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"
8 ],
9 "ink": [
10 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif",
11 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"
12 ],
13 "sunset": [
14 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif",
15 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"
16 ],
17 "forest": [
18 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif",
19 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"
20 ],
21 "slate": [
22 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif",
23 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"
24 ],
25 "candy": [
26 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif",
27 "Liberation Sans, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"
28 ]
29 },
30 "defaultTheme": "paper",
31 "code": "Liberation Mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
32 },
33 "cases": [
34 {
35 "name": "an empty deck draws in nothing",
36 "view": {
37 "meta": {
38 "title": "",
39 "theme": "paper",
40 "accent": null,
41 "fonts": null,
42 "aspect": "16:9"
43 },
44 "slides": [],
45 "assets": {}
46 },
47 "families": []
48 },
49 {
50 "name": "paper: serif headings, sans body",
51 "view": {
52 "meta": {
53 "title": "T",
54 "theme": "paper",
55 "accent": null,
56 "fonts": null,
57 "aspect": "16:9"
58 },
59 "slides": [
60 {
61 "id": "s0",
62 "layout": "flow",
63 "template": "title-body",
64 "background": {
65 "kind": "theme",
66 "value": ""
67 },
68 "phone": "inherit",
69 "transition": "none",
70 "notes": [],
71 "blocks": []
72 }
73 ],
74 "assets": {}
75 },
76 "families": [
77 "sans",
78 "serif"
79 ]
80 },
81 {
82 "name": "ink: sans for both",
83 "view": {
84 "meta": {
85 "title": "T",
86 "theme": "ink",
87 "accent": null,
88 "fonts": null,
89 "aspect": "16:9"
90 },
91 "slides": [
92 {
93 "id": "s0",
94 "layout": "flow",
95 "template": "title-body",
96 "background": {
97 "kind": "theme",
98 "value": ""
99 },
100 "phone": "inherit",
101 "transition": "none",
102 "notes": [],
103 "blocks": []
104 }
105 ],
106 "assets": {}
107 },
108 "families": [
109 "sans"
110 ]
111 },
112 {
113 "name": "an unknown theme is paper",
114 "view": {
115 "meta": {
116 "title": "T",
117 "theme": "nosuchtheme",
118 "accent": null,
119 "fonts": null,
120 "aspect": "16:9"
121 },
122 "slides": [
123 {
124 "id": "s0",
125 "layout": "flow",
126 "template": "title-body",
127 "background": {
128 "kind": "theme",
129 "value": ""
130 },
131 "phone": "inherit",
132 "transition": "none",
133 "notes": [],
134 "blocks": []
135 }
136 ],
137 "assets": {}
138 },
139 "families": [
140 "sans",
141 "serif"
142 ]
143 },
144 {
145 "name": "a code block brings in mono",
146 "view": {
147 "meta": {
148 "title": "T",
149 "theme": "ink",
150 "accent": null,
151 "fonts": null,
152 "aspect": "16:9"
153 },
154 "slides": [
155 {
156 "id": "s0",
157 "layout": "flow",
158 "template": "title-body",
159 "background": {
160 "kind": "theme",
161 "value": ""
162 },
163 "phone": "inherit",
164 "transition": "none",
165 "notes": [],
166 "blocks": [
167 {
168 "id": "bcode",
169 "type": "code",
170 "props": {},
171 "region": "body",
172 "box": null,
173 "z": 0,
174 "phone": {
175 "hidden": false,
176 "order": null,
177 "size": null,
178 "box": null
179 },
180 "text": [
181 [
182 {
183 "t": "x = 1"
184 }
185 ]
186 ]
187 }
188 ]
189 }
190 ],
191 "assets": {}
192 },
193 "families": [
194 "sans",
195 "mono"
196 ]
197 },
198 {
199 "name": "an empty code block still does",
200 "view": {
201 "meta": {
202 "title": "T",
203 "theme": "ink",
204 "accent": null,
205 "fonts": null,
206 "aspect": "16:9"
207 },
208 "slides": [
209 {
210 "id": "s0",
211 "layout": "flow",
212 "template": "title-body",
213 "background": {
214 "kind": "theme",
215 "value": ""
216 },
217 "phone": "inherit",
218 "transition": "none",
219 "notes": [],
220 "blocks": [
221 {
222 "id": "bcode",
223 "type": "code",
224 "props": {},
225 "region": "body",
226 "box": null,
227 "z": 0,
228 "phone": {
229 "hidden": false,
230 "order": null,
231 "size": null,
232 "box": null
233 },
234 "text": []
235 }
236 ]
237 }
238 ],
239 "assets": {}
240 },
241 "families": [
242 "sans",
243 "mono"
244 ]
245 },
246 {
247 "name": "a code mark in a text block",
248 "view": {
249 "meta": {
250 "title": "T",
251 "theme": "ink",
252 "accent": null,
253 "fonts": null,
254 "aspect": "16:9"
255 },
256 "slides": [
257 {
258 "id": "s0",
259 "layout": "flow",
260 "template": "title-body",
261 "background": {
262 "kind": "theme",
263 "value": ""
264 },
265 "phone": "inherit",
266 "transition": "none",
267 "notes": [],
268 "blocks": [
269 {
270 "id": "btext",
271 "type": "text",
272 "props": {},
273 "region": "body",
274 "box": null,
275 "z": 0,
276 "phone": {
277 "hidden": false,
278 "order": null,
279 "size": null,
280 "box": null
281 },
282 "text": [
283 [
284 {
285 "t": "run "
286 },
287 {
288 "t": "go test",
289 "c": true
290 }
291 ]
292 ]
293 }
294 ]
295 }
296 ],
297 "assets": {}
298 },
299 "families": [
300 "sans",
301 "mono"
302 ]
303 },
304 {
305 "name": "a code mark in a heading",
306 "view": {
307 "meta": {
308 "title": "T",
309 "theme": "candy",
310 "accent": null,
311 "fonts": null,
312 "aspect": "16:9"
313 },
314 "slides": [
315 {
316 "id": "s0",
317 "layout": "flow",
318 "template": "title-body",
319 "background": {
320 "kind": "theme",
321 "value": ""
322 },
323 "phone": "inherit",
324 "transition": "none",
325 "notes": [],
326 "blocks": [
327 {
328 "id": "bheading",
329 "type": "heading",
330 "props": {
331 "level": 1
332 },
333 "region": "body",
334 "box": null,
335 "z": 0,
336 "phone": {
337 "hidden": false,
338 "order": null,
339 "size": null,
340 "box": null
341 },
342 "text": [
343 [
344 {
345 "t": "main()",
346 "c": true,
347 "b": true
348 }
349 ]
350 ]
351 }
352 ]
353 }
354 ],
355 "assets": {}
356 },
357 "families": [
358 "sans",
359 "mono"
360 ]
361 },
362 {
363 "name": "a code mark in a table cell",
364 "view": {
365 "meta": {
366 "title": "T",
367 "theme": "slate",
368 "accent": null,
369 "fonts": null,
370 "aspect": "16:9"
371 },
372 "slides": [
373 {
374 "id": "s0",
375 "layout": "flow",
376 "template": "title-body",
377 "background": {
378 "kind": "theme",
379 "value": ""
380 },
381 "phone": "inherit",
382 "transition": "none",
383 "notes": [],
384 "blocks": [
385 {
386 "id": "btable",
387 "type": "table",
388 "props": {
389 "cols": 2,
390 "cells": [
391 [
392 [
393 {
394 "t": "a"
395 }
396 ]
397 ],
398 [
399 [
400 {
401 "t": "b",
402 "c": true
403 }
404 ]
405 ]
406 ]
407 },
408 "region": "body",
409 "box": null,
410 "z": 0,
411 "phone": {
412 "hidden": false,
413 "order": null,
414 "size": null,
415 "box": null
416 },
417 "text": []
418 }
419 ]
420 }
421 ],
422 "assets": {}
423 },
424 "families": [
425 "sans",
426 "mono"
427 ]
428 },
429 {
430 "name": "a code mark in the notes is the chrome's",
431 "view": {
432 "meta": {
433 "title": "T",
434 "theme": "ink",
435 "accent": null,
436 "fonts": null,
437 "aspect": "16:9"
438 },
439 "slides": [
440 {
441 "id": "s0",
442 "layout": "flow",
443 "template": "title-body",
444 "background": {
445 "kind": "theme",
446 "value": ""
447 },
448 "phone": "inherit",
449 "transition": "none",
450 "notes": [
451 [
452 {
453 "t": "n",
454 "c": true
455 }
456 ]
457 ],
458 "blocks": []
459 }
460 ],
461 "assets": {}
462 },
463 "families": [
464 "sans"
465 ]
466 },
467 {
468 "name": "bold, italic, highlight and links stay in the family",
469 "view": {
470 "meta": {
471 "title": "T",
472 "theme": "ink",
473 "accent": null,
474 "fonts": null,
475 "aspect": "16:9"
476 },
477 "slides": [
478 {
479 "id": "s0",
480 "layout": "flow",
481 "template": "title-body",
482 "background": {
483 "kind": "theme",
484 "value": ""
485 },
486 "phone": "inherit",
487 "transition": "none",
488 "notes": [],
489 "blocks": [
490 {
491 "id": "btext",
492 "type": "text",
493 "props": {},
494 "region": "body",
495 "box": null,
496 "z": 0,
497 "phone": {
498 "hidden": false,
499 "order": null,
500 "size": null,
501 "box": null
502 },
503 "text": [
504 [
505 {
506 "t": "a",
507 "b": true
508 },
509 {
510 "t": "b",
511 "i": true
512 },
513 {
514 "t": "c",
515 "h": true
516 },
517 {
518 "t": "d",
519 "href": "https://example.com"
520 }
521 ]
522 ]
523 }
524 ]
525 }
526 ],
527 "assets": {}
528 },
529 "families": [
530 "sans"
531 ]
532 },
533 {
534 "name": "the inspector's system heading drops serif",
535 "view": {
536 "meta": {
537 "title": "T",
538 "theme": "paper",
539 "accent": null,
540 "fonts": {
541 "heading": "system-ui, sans-serif",
542 "body": ""
543 },
544 "aspect": "16:9"
545 },
546 "slides": [
547 {
548 "id": "s0",
549 "layout": "flow",
550 "template": "title-body",
551 "background": {
552 "kind": "theme",
553 "value": ""
554 },
555 "phone": "inherit",
556 "transition": "none",
557 "notes": [],
558 "blocks": []
559 }
560 ],
561 "assets": {}
562 },
563 "families": [
564 "sans"
565 ]
566 },
567 {
568 "name": "system faces for both draw in no web face",
569 "view": {
570 "meta": {
571 "title": "T",
572 "theme": "paper",
573 "accent": null,
574 "fonts": {
575 "heading": "Georgia, serif",
576 "body": "ui-monospace, monospace"
577 },
578 "aspect": "16:9"
579 },
580 "slides": [
581 {
582 "id": "s0",
583 "layout": "flow",
584 "template": "title-body",
585 "background": {
586 "kind": "theme",
587 "value": ""
588 },
589 "phone": "inherit",
590 "transition": "none",
591 "notes": [],
592 "blocks": []
593 }
594 ],
595 "assets": {}
596 },
597 "families": []
598 },
599 {
600 "name": "a body override naming mono",
601 "view": {
602 "meta": {
603 "title": "T",
604 "theme": "ink",
605 "accent": null,
606 "fonts": {
607 "heading": "",
608 "body": "Liberation Mono, monospace"
609 },
610 "aspect": "16:9"
611 },
612 "slides": [
613 {
614 "id": "s0",
615 "layout": "flow",
616 "template": "title-body",
617 "background": {
618 "kind": "theme",
619 "value": ""
620 },
621 "phone": "inherit",
622 "transition": "none",
623 "notes": [],
624 "blocks": []
625 }
626 ],
627 "assets": {}
628 },
629 "families": [
630 "sans",
631 "mono"
632 ]
633 },
634 {
635 "name": "a family anywhere in a stack counts",
636 "view": {
637 "meta": {
638 "title": "T",
639 "theme": "ink",
640 "accent": null,
641 "fonts": {
642 "heading": "Arial, 'Liberation Serif', serif",
643 "body": "Helvetica, LIBERATION SANS"
644 },
645 "aspect": "16:9"
646 },
647 "slides": [
648 {
649 "id": "s0",
650 "layout": "flow",
651 "template": "title-body",
652 "background": {
653 "kind": "theme",
654 "value": ""
655 },
656 "phone": "inherit",
657 "transition": "none",
658 "notes": [],
659 "blocks": []
660 }
661 ],
662 "assets": {}
663 },
664 "families": [
665 "sans",
666 "serif"
667 ]
668 },
669 {
670 "name": "an override that fails the allowlist is the theme's",
671 "view": {
672 "meta": {
673 "title": "T",
674 "theme": "ink",
675 "accent": null,
676 "fonts": {
677 "heading": "url(evil), serif",
678 "body": "Liberation Serif; color: red"
679 },
680 "aspect": "16:9"
681 },
682 "slides": [
683 {
684 "id": "s0",
685 "layout": "flow",
686 "template": "title-body",
687 "background": {
688 "kind": "theme",
689 "value": ""
690 },
691 "phone": "inherit",
692 "transition": "none",
693 "notes": [],
694 "blocks": []
695 }
696 ],
697 "assets": {}
698 },
699 "families": [
700 "sans"
701 ]
702 },
703 {
704 "name": "a too-long override is the theme's",
705 "view": {
706 "meta": {
707 "title": "T",
708 "theme": "ink",
709 "accent": null,
710 "fonts": {
711 "heading": "Liberation Serif, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
712 "body": ""
713 },
714 "aspect": "16:9"
715 },
716 "slides": [
717 {
718 "id": "s0",
719 "layout": "flow",
720 "template": "title-body",
721 "background": {
722 "kind": "theme",
723 "value": ""
724 },
725 "phone": "inherit",
726 "transition": "none",
727 "notes": [],
728 "blocks": []
729 }
730 ],
731 "assets": {}
732 },
733 "families": [
734 "sans"
735 ]
736 },
737 {
738 "name": "padded overrides are trimmed",
739 "view": {
740 "meta": {
741 "title": "T",
742 "theme": "ink",
743 "accent": null,
744 "fonts": {
745 "heading": " Liberation Serif ",
746 "body": ""
747 },
748 "aspect": "16:9"
749 },
750 "slides": [
751 {
752 "id": "s0",
753 "layout": "flow",
754 "template": "title-body",
755 "background": {
756 "kind": "theme",
757 "value": ""
758 },
759 "phone": "inherit",
760 "transition": "none",
761 "notes": [],
762 "blocks": []
763 }
764 ],
765 "assets": {}
766 },
767 "families": [
768 "sans",
769 "serif"
770 ]
771 },
772 {
773 "name": "a family named only on a later slide's code",
774 "view": {
775 "meta": {
776 "title": "T",
777 "theme": "ink",
778 "accent": null,
779 "fonts": null,
780 "aspect": "16:9"
781 },
782 "slides": [
783 {
784 "id": "s0",
785 "layout": "flow",
786 "template": "title-body",
787 "background": {
788 "kind": "theme",
789 "value": ""
790 },
791 "phone": "inherit",
792 "transition": "none",
793 "notes": [],
794 "blocks": []
795 },
796 {
797 "id": "s1",
798 "layout": "flow",
799 "template": "title-body",
800 "background": {
801 "kind": "theme",
802 "value": ""
803 },
804 "phone": "inherit",
805 "transition": "none",
806 "notes": [],
807 "blocks": []
808 },
809 {
810 "id": "s2",
811 "layout": "flow",
812 "template": "title-body",
813 "background": {
814 "kind": "theme",
815 "value": ""
816 },
817 "phone": "inherit",
818 "transition": "none",
819 "notes": [],
820 "blocks": [
821 {
822 "id": "bcode",
823 "type": "code",
824 "props": {},
825 "region": "body",
826 "box": null,
827 "z": 0,
828 "phone": {
829 "hidden": false,
830 "order": null,
831 "size": null,
832 "box": null
833 },
834 "text": [
835 [
836 {
837 "t": "y"
838 }
839 ]
840 ]
841 }
842 ]
843 }
844 ],
845 "assets": {}
846 },
847 "families": [
848 "sans",
849 "mono"
850 ]
851 },
852 {
853 "name": "an uploaded family in the heading only",
854 "view": {
855 "meta": {
856 "title": "T",
857 "theme": "paper",
858 "accent": null,
859 "fonts": {
860 "heading": "'Display Face', Liberation Serif, Georgia, serif",
861 "body": ""
862 },
863 "aspect": "16:9",
864 "fontFiles": [
865 {
866 "family": "Display Face (people see this)",
867 "css": "Display Face",
868 "faces": [
869 {
870 "ref": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
871 "format": "ttf",
872 "weight": [
873 400,
874 400
875 ],
876 "italic": false,
877 "pictures": true
878 },
879 {
880 "ref": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
881 "format": "ttf",
882 "weight": [
883 700,
884 700
885 ],
886 "italic": false,
887 "pictures": true
888 }
889 ]
890 }
891 ]
892 },
893 "slides": [
894 {
895 "id": "s0",
896 "layout": "flow",
897 "template": "title-body",
898 "background": {
899 "kind": "theme",
900 "value": ""
901 },
902 "phone": "inherit",
903 "transition": "none",
904 "notes": [],
905 "blocks": []
906 }
907 ],
908 "assets": {}
909 },
910 "families": [
911 "sans",
912 "serif",
913 "u:Display Face"
914 ]
915 },
916 {
917 "name": "an uploaded family in the body only",
918 "view": {
919 "meta": {
920 "title": "T",
921 "theme": "ink",
922 "accent": null,
923 "fonts": {
924 "heading": "",
925 "body": "'Reading Face', Liberation Sans, system-ui, sans-serif"
926 },
927 "aspect": "16:9",
928 "fontFiles": [
929 {
930 "family": "Reading Face (people see this)",
931 "css": "Reading Face",
932 "faces": [
933 {
934 "ref": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
935 "format": "woff2",
936 "weight": [
937 100,
938 900
939 ],
940 "italic": false,
941 "pictures": false
942 }
943 ]
944 }
945 ]
946 },
947 "slides": [
948 {
949 "id": "s0",
950 "layout": "flow",
951 "template": "title-body",
952 "background": {
953 "kind": "theme",
954 "value": ""
955 },
956 "phone": "inherit",
957 "transition": "none",
958 "notes": [],
959 "blocks": []
960 }
961 ],
962 "assets": {}
963 },
964 "families": [
965 "sans",
966 "u:Reading Face"
967 ]
968 },
969 {
970 "name": "an uploaded family listed but unused is not needed",
971 "view": {
972 "meta": {
973 "title": "T",
974 "theme": "ink",
975 "accent": null,
976 "fonts": null,
977 "aspect": "16:9",
978 "fontFiles": [
979 {
980 "family": "Unused Face (people see this)",
981 "css": "Unused Face",
982 "faces": [
983 {
984 "ref": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
985 "format": "ttf",
986 "weight": [
987 400,
988 400
989 ],
990 "italic": false,
991 "pictures": true
992 }
993 ]
994 }
995 ]
996 },
997 "slides": [
998 {
999 "id": "s0",
1000 "layout": "flow",
1001 "template": "title-body",
1002 "background": {
1003 "kind": "theme",
1004 "value": ""
1005 },
1006 "phone": "inherit",
1007 "transition": "none",
1008 "notes": [],
1009 "blocks": []
1010 }
1011 ],
1012 "assets": {}
1013 },
1014 "families": [
1015 "sans"
1016 ]
1017 },
1018 {
1019 "name": "an odd but clean name",
1020 "view": {
1021 "meta": {
1022 "title": "T",
1023 "theme": "ink",
1024 "accent": null,
1025 "fonts": {
1026 "heading": "",
1027 "body": "'Oddity_Sans-2.1 Pro', Liberation Sans, sans-serif"
1028 },
1029 "aspect": "16:9",
1030 "fontFiles": [
1031 {
1032 "family": "Oddity_Sans-2.1 Pro (people see this)",
1033 "css": "Oddity_Sans-2.1 Pro",
1034 "faces": [
1035 {
1036 "ref": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
1037 "format": "otf",
1038 "weight": [
1039 400,
1040 400
1041 ],
1042 "italic": true,
1043 "pictures": false
1044 }
1045 ]
1046 }
1047 ]
1048 },
1049 "slides": [
1050 {
1051 "id": "s0",
1052 "layout": "flow",
1053 "template": "title-body",
1054 "background": {
1055 "kind": "theme",
1056 "value": ""
1057 },
1058 "phone": "inherit",
1059 "transition": "none",
1060 "notes": [],
1061 "blocks": []
1062 }
1063 ],
1064 "assets": {}
1065 },
1066 "families": [
1067 "sans",
1068 "u:Oddity_Sans-2.1 Pro"
1069 ]
1070 },
1071 {
1072 "name": "a stack naming an uploaded family the deck does not list falls back",
1073 "view": {
1074 "meta": {
1075 "title": "T",
1076 "theme": "ink",
1077 "accent": null,
1078 "fonts": {
1079 "heading": "'Missing Face', Liberation Serif, serif",
1080 "body": ""
1081 },
1082 "aspect": "16:9",
1083 "fontFiles": [
1084 {
1085 "family": "Other Face (people see this)",
1086 "css": "Other Face",
1087 "faces": [
1088 {
1089 "ref": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
1090 "format": "ttf",
1091 "weight": [
1092 400,
1093 400
1094 ],
1095 "italic": false,
1096 "pictures": true
1097 }
1098 ]
1099 }
1100 ]
1101 },
1102 "slides": [
1103 {
1104 "id": "s0",
1105 "layout": "flow",
1106 "template": "title-body",
1107 "background": {
1108 "kind": "theme",
1109 "value": ""
1110 },
1111 "phone": "inherit",
1112 "transition": "none",
1113 "notes": [],
1114 "blocks": []
1115 }
1116 ],
1117 "assets": {}
1118 },
1119 "families": [
1120 "sans",
1121 "serif"
1122 ]
1123 },
1124 {
1125 "name": "an uploaded family only later in a stack is not needed",
1126 "view": {
1127 "meta": {
1128 "title": "T",
1129 "theme": "ink",
1130 "accent": null,
1131 "fonts": {
1132 "heading": "Georgia, 'Second Face', serif",
1133 "body": ""
1134 },
1135 "aspect": "16:9",
1136 "fontFiles": [
1137 {
1138 "family": "Second Face (people see this)",
1139 "css": "Second Face",
1140 "faces": [
1141 {
1142 "ref": "1111111111111111111111111111111111111111111111111111111111111111",
1143 "format": "ttf",
1144 "weight": [
1145 400,
1146 400
1147 ],
1148 "italic": false,
1149 "pictures": true
1150 }
1151 ]
1152 }
1153 ]
1154 },
1155 "slides": [
1156 {
1157 "id": "s0",
1158 "layout": "flow",
1159 "template": "title-body",
1160 "background": {
1161 "kind": "theme",
1162 "value": ""
1163 },
1164 "phone": "inherit",
1165 "transition": "none",
1166 "notes": [],
1167 "blocks": []
1168 }
1169 ],
1170 "assets": {}
1171 },
1172 "families": [
1173 "sans"
1174 ]
1175 },
1176 {
1177 "name": "two uploaded families come in fontFiles order",
1178 "view": {
1179 "meta": {
1180 "title": "T",
1181 "theme": "ink",
1182 "accent": null,
1183 "fonts": {
1184 "heading": "'First Face', Liberation Sans, sans-serif",
1185 "body": "'Last Face', Liberation Sans, sans-serif"
1186 },
1187 "aspect": "16:9",
1188 "fontFiles": [
1189 {
1190 "family": "Last Face (people see this)",
1191 "css": "Last Face",
1192 "faces": [
1193 {
1194 "ref": "2222222222222222222222222222222222222222222222222222222222222222",
1195 "format": "ttf",
1196 "weight": [
1197 400,
1198 400
1199 ],
1200 "italic": false,
1201 "pictures": true
1202 }
1203 ]
1204 },
1205 {
1206 "family": "First Face (people see this)",
1207 "css": "First Face",
1208 "faces": [
1209 {
1210 "ref": "3333333333333333333333333333333333333333333333333333333333333333",
1211 "format": "ttf",
1212 "weight": [
1213 400,
1214 400
1215 ],
1216 "italic": false,
1217 "pictures": true
1218 }
1219 ]
1220 }
1221 ]
1222 },
1223 "slides": [
1224 {
1225 "id": "s0",
1226 "layout": "flow",
1227 "template": "title-body",
1228 "background": {
1229 "kind": "theme",
1230 "value": ""
1231 },
1232 "phone": "inherit",
1233 "transition": "none",
1234 "notes": [],
1235 "blocks": []
1236 }
1237 ],
1238 "assets": {}
1239 },
1240 "families": [
1241 "sans",
1242 "u:Last Face",
1243 "u:First Face"
1244 ]
1245 },
1246 {
1247 "name": "one uploaded family in both roles is needed once",
1248 "view": {
1249 "meta": {
1250 "title": "T",
1251 "theme": "ink",
1252 "accent": null,
1253 "fonts": {
1254 "heading": "'Both Face', Liberation Sans, sans-serif",
1255 "body": "'Both Face', Liberation Sans, sans-serif"
1256 },
1257 "aspect": "16:9",
1258 "fontFiles": [
1259 {
1260 "family": "Both Face (people see this)",
1261 "css": "Both Face",
1262 "faces": [
1263 {
1264 "ref": "4444444444444444444444444444444444444444444444444444444444444444",
1265 "format": "ttf",
1266 "weight": [
1267 400,
1268 400
1269 ],
1270 "italic": false,
1271 "pictures": true
1272 },
1273 {
1274 "ref": "5555555555555555555555555555555555555555555555555555555555555555",
1275 "format": "ttf",
1276 "weight": [
1277 400,
1278 400
1279 ],
1280 "italic": true,
1281 "pictures": true
1282 }
1283 ]
1284 }
1285 ]
1286 },
1287 "slides": [
1288 {
1289 "id": "s0",
1290 "layout": "flow",
1291 "template": "title-body",
1292 "background": {
1293 "kind": "theme",
1294 "value": ""
1295 },
1296 "phone": "inherit",
1297 "transition": "none",
1298 "notes": [],
1299 "blocks": []
1300 }
1301 ],
1302 "assets": {}
1303 },
1304 "families": [
1305 "sans",
1306 "u:Both Face"
1307 ]
1308 },
1309 {
1310 "name": "an empty deck needs no uploaded family",
1311 "view": {
1312 "meta": {
1313 "title": "T",
1314 "theme": "ink",
1315 "accent": null,
1316 "fonts": {
1317 "heading": "'Empty Face', Liberation Sans, sans-serif",
1318 "body": ""
1319 },
1320 "aspect": "16:9",
1321 "fontFiles": [
1322 {
1323 "family": "Empty Face (people see this)",
1324 "css": "Empty Face",
1325 "faces": [
1326 {
1327 "ref": "6666666666666666666666666666666666666666666666666666666666666666",
1328 "format": "ttf",
1329 "weight": [
1330 400,
1331 400
1332 ],
1333 "italic": false,
1334 "pictures": true
1335 }
1336 ]
1337 }
1338 ]
1339 },
1340 "slides": [],
1341 "assets": {}
1342 },
1343 "families": []
1344 }
1345 ]
1346}
1347