diff --git a/README.md b/README.md index 57c58aaa..fbad1e1a 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ specially-crafted graphics. Assets committed to this repo and pushed to GitHub are immediately available for linking and reference. + ## URL structure Reference the assets with this URL structure: @@ -20,6 +21,7 @@ material library would go in the `assets/material/` directory and be at All asset files should be under the `assets` directory in an appropriate subdirectory. + ## Generation Images must be code-generated. @@ -38,7 +40,7 @@ bin/generate.sh -c cupertino,material bin/generate.sh -n basic_material_app,blend_mode ``` -`bin/generate.sh -h` lists available arguments. +`bin/generate.sh --help` lists available arguments. ### Prerequisites @@ -57,6 +59,7 @@ in a directory in the `PATH` environment variable. (e.g. PATH=~//dev/null && pwd)" REPO_DIR="$(dirname "$SCRIPT_DIR")" # Dart needs to be in the path already... +(cd ${REPO_DIR}/bin; pub get) dart --no-sound-null-safety "${REPO_DIR}/bin/generate.dart" "$@" diff --git a/packages/diagrams/lib/diagrams.dart b/packages/diagrams/lib/diagrams.dart index 49194e49..be4e572f 100644 --- a/packages/diagrams/lib/diagrams.dart +++ b/packages/diagrams/lib/diagrams.dart @@ -31,6 +31,7 @@ export 'src/expanded.dart'; export 'src/flat_button.dart'; export 'src/floating_action_button.dart'; export 'src/floating_action_button_location.dart'; +export 'src/font_feature.dart'; export 'src/form.dart'; export 'src/gesture_detector.dart'; export 'src/grid_view.dart'; diff --git a/packages/diagrams/lib/src/diagram_step.dart b/packages/diagrams/lib/src/diagram_step.dart index d54a449c..54d3185b 100644 --- a/packages/diagrams/lib/src/diagram_step.dart +++ b/packages/diagrams/lib/src/diagram_step.dart @@ -36,7 +36,7 @@ abstract class DiagramStep { Future> generateDiagrams({List onlyGenerate = const []}) async { final List files = []; for (final T diagram in await diagrams) { - if (onlyGenerate.isNotEmpty && !onlyGenerate.contains(diagram.name)) { + if (onlyGenerate.isNotEmpty && !onlyGenerate.any((String name) => diagram.name.contains(name))) { continue; } files.add(await generateDiagram(diagram)); diff --git a/packages/diagrams/lib/src/font_feature.dart b/packages/diagrams/lib/src/font_feature.dart new file mode 100644 index 00000000..8f08bfb4 --- /dev/null +++ b/packages/diagrams/lib/src/font_feature.dart @@ -0,0 +1,412 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io'; +import 'dart:ui' show FontFeature; + +import 'package:diagram_capture/diagram_capture.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +import 'diagram_step.dart'; + +// When adding a new font here, add it to: +// /utils/diagram_generator/pubspec.yaml +// ...and put the binary and license file in: +// /utils/diagram_generator/fonts + +const double _margin = 5.0; +const double _gap = _margin * 5; + +abstract class FontFeatureDiagram extends StatelessWidget implements DiagramMetadata { + const FontFeatureDiagram(); + + Iterable get entries; + Widget buildEntry(BuildContext context, T entry); + String describe(T entry); + + TextStyle get textStyle => const TextStyle( + color: Colors.black, + fontSize: 32.0, + ); + + Widget buildRow(BuildContext context, T entry) { + return Stack( + children: [ + Positioned.fill( + top: _margin, + left: _margin, + child: buildEntry(context, entry), + ), + Positioned( + left: 0.0, + top: 0.0, + child: buildDescription(context, entry), + ), + ], + ); + } + + Widget buildDescription(BuildContext context, T entry) { + return Text( + describe(entry), + style: const TextStyle( + fontSize: 10.0, + ), + ); + } + + @override + Widget build(BuildContext context) { + return SizedBox( + key: UniqueKey(), + width: 600.0, + height: (textStyle.fontSize! * 1.2 + _margin + _gap) * entries.length + _margin * 3.0 - _gap, + child: Container( + padding: const EdgeInsets.all(_margin), + color: Colors.white, + child: OverflowBox( + alignment: Alignment.topLeft, + minWidth: 600.0, + maxWidth: 600.0, + minHeight: 0.0, + maxHeight: double.infinity, + child: Column( + children: entries.map((T entry) => SizedBox( + height: _margin + textStyle.fontSize! * 1.2 + _gap, + child: buildRow(context, entry), + )).toList(), + ), + ), + ), + ); + } +} + +class FontFeatureValueDiagram extends FontFeatureDiagram { + const FontFeatureValueDiagram( + this.feature, + this.values, + this.font, { + this.sampleText = 'The infamous Tuna Torture.', // from s03e09, of course + this.style, + this.additionalFontFeatures, + }); + + @override + String get name => 'font_feature_$feature'; + + final String feature; + final List values; + final String font; + final String sampleText; + final TextStyle? style; + final List? additionalFontFeatures; + + @override + Iterable get entries => values; + + @override + Widget buildEntry(BuildContext context, int entry) => Text( + sampleText, + style: textStyle + .copyWith( + fontFamily: font, + fontFeatures: [ + FontFeature(feature, entry), + ...?additionalFontFeatures, + ], + ).merge(style), + textAlign: TextAlign.left, + ); + + @override + String describe(int entry) => '$feature $entry'; +} + +class HistoricalFontFeatureDiagram extends FontFeatureDiagram> { + const HistoricalFontFeatureDiagram( + this.font, { + required this.sampleText, + }); + + @override + String get name => 'font_feature_historical'; + + final String font; + final String sampleText; + + @override + Iterable> get entries => const >[ + [ FontFeature('hist', 0), FontFeature('hlig', 0) ], + [ FontFeature('hist', 1), FontFeature('hlig', 0) ], + [ FontFeature('hist', 0), FontFeature('hlig', 1) ], + [ FontFeature('hist', 1), FontFeature('hlig', 1) ], + ]; + + @override + Widget buildEntry(BuildContext context, List entry) => Text( + sampleText, + style: textStyle + .copyWith( + fontFamily: font, + fontFeatures: entry, + ), + textAlign: TextAlign.left, + ); + + @override + String describe(List entry) => entry.map((FontFeature feature) => '${feature.feature} ${feature.value}').join(', '); +} + +class LocalizedFontFeatureDiagram extends FontFeatureDiagram { + const LocalizedFontFeatureDiagram(); + + @override + String get name => 'font_feature_locl'; + + @override + Iterable get entries => const [ Locale('ja'), Locale('ko'), Locale('zh', 'CN'), Locale('zh', 'TW') ]; // alphabetical order + + @override + Widget buildEntry(BuildContext context, Locale entry) => Text( + '次 化 刃 直 入 令', + style: textStyle + .copyWith( + fontFamily: 'Noto Sans', + fontFeatures: [ + const FontFeature('locl', 1), // redundant, this is the default anyway + ], + ), + textAlign: TextAlign.left, + locale: entry, + ); + + @override + String describe(Locale entry) => 'Locale: ${entry.toLanguageTag()}'; +} + +abstract class SideBySideFontFeatureDiagram extends FontFeatureDiagram { + const SideBySideFontFeatureDiagram(); + + String get font; + + @override + Widget buildRow(BuildContext context, T entry) { + return Row( + children: [ + buildSubEntry(context, entry, enable: false), + buildSubEntry(context, entry, enable: true), + ], + ); + } + + Widget buildSubEntry(BuildContext context, T entry, { bool enable = true }) => Expanded( + child: Stack( + children: [ + Positioned.fill( + top: _margin, + left: _margin, + child: buildEntry(context, entry, enable: enable), + ), + Positioned( + left: 0.0, + top: 0.0, + child: buildDescription(context, entry, enable: enable), + ), + ], + ), + ); + + @override + Widget buildDescription(BuildContext context, T entry, { bool enable = true }) { + return Text( + describe(entry, enable: enable), + style: const TextStyle( + fontSize: 10.0, + ), + ); + } + + @override + Widget buildEntry(BuildContext context, T entry, { bool enable = true }) { + return Text( + describe(entry, enable: enable), + style: const TextStyle( + fontSize: 10.0, + ), + ); + } + + @override + String describe(T entry, { bool enable = true }); +} + +class CharacterVariantsFontFeatureDiagram extends SideBySideFontFeatureDiagram { + const CharacterVariantsFontFeatureDiagram(); + + @override + String get name => 'font_feature_cvXX'; + + @override + String get font => 'Source Code Pro'; + + @override + Iterable get entries => const [ 'cv01', 'cv02', 'cv04', ]; + + static const Map demos = { + 'cv01': 'aáâ β', + 'cv02': 'gǵĝ θб', + 'cv04': 'Iiíî Ll', + + 'cv06': 'Ŋ', + 'cv07': 'β', + 'cv08': 'θ', + 'cv09': 'φ', + 'cv10': 'б', + + 'cv12': '0', + 'cv17': '1', + 'cv16': '\$', + 'cv15': '*', + }; + + @override + Widget buildEntry(BuildContext context, String entry, { bool enable = true }) => Text( + demos[entry]!, + style: textStyle + .copyWith( + fontFamily: font, + fontFeatures: enable ? [ + FontFeature(entry, 1), + ] : null, + ), + textAlign: TextAlign.left, + ); + + + @override + String describe(String entry, { bool enable = true }) { + return 'with $entry ${enable ? "enabled" : "disabled"}'; + } +} + +class StylisticSetsFontFeatureDiagram1 extends SideBySideFontFeatureDiagram { + const StylisticSetsFontFeatureDiagram1(); + + @override + String get name => 'font_feature_ssXX_1'; + + @override + String get font => 'Source Code Pro'; + + @override + Iterable get entries => const [ 'ss02', 'ss03', 'ss04' ]; + + static const Map demos = { + 'ss02': 'aáâ β', + 'ss03': 'gǵĝ θб', + 'ss04': 'Iiíî Ll', + }; + + @override + Widget buildEntry(BuildContext context, String entry, { bool enable = true }) => Text( + demos[entry]!, + style: textStyle + .copyWith( + fontFamily: font, + fontFeatures: enable ? [ + FontFeature(entry, 1), + ] : null, + ), + textAlign: TextAlign.left, + ); + + + @override + String describe(String entry, { bool enable = true }) { + return 'with $entry ${enable ? "enabled" : "disabled"}'; + } +} + +class StylisticSetsFontFeatureDiagram2 extends FontFeatureDiagram { + const StylisticSetsFontFeatureDiagram2(); + + @override + String get name => 'font_feature_ssXX_2'; + + @override + Iterable get entries => const [ 0x00, 0x01, 0x02, 0x03 ]; + + String get font => 'Piazzolla'; + + @override + Widget buildEntry(BuildContext context, int entry) => Text( + '-> MCMXCVII <-', // the year SG-1 started + style: textStyle + .copyWith( + fontFamily: font, + fontFeatures: [ + if (0x01 & entry > 0) + const FontFeature('ss01', 1), + if (0x02 & entry > 0) + const FontFeature('ss02', 2), + ], + ), + textAlign: TextAlign.left, + ); + + @override + String describe(int entry) { + switch (entry) { + case 0x00: return 'no stylistic sets enabled'; + case 0x01: return 'only ss01 enabled'; + case 0x02: return 'only ss02 enabled'; + case 0x03: return 'ss01 and ss02 enabled'; + } + throw UnsupportedError('$entry not recognized'); + } +} + +class FontFeatureDiagramStep extends DiagramStep> { + FontFeatureDiagramStep(DiagramController controller) : super(controller); + + @override + final String category = 'dart-ui'; + + @override + Future>> get diagrams async => >[ + const FontFeatureValueDiagram('aalt', [0, 1, 2], 'Raleway'), + const FontFeatureValueDiagram('afrc', [0, 1], 'Ubuntu Mono', sampleText: 'Fractions: 1/2 2/3 3/4 4/5'), + const FontFeatureValueDiagram('calt', [0, 1], 'Barriecito', sampleText: 'Ooohh, we weren\'t going to tell him that.'), + const FontFeatureValueDiagram('case', [0, 1], 'Piazzolla', sampleText: '(A) [A] {A} «A» A/B A•B'), + const CharacterVariantsFontFeatureDiagram(), // cvXX, uses 'Source Code Pro' + const FontFeatureValueDiagram('dnom', [0, 1], 'Piazzolla', sampleText: 'Fractions: 1/2 2/3 3/4 4/5'), + const FontFeatureValueDiagram('frac', [0, 1], 'Ubuntu Mono', sampleText: 'Fractions: 1/2 2/3 3/4 4/5'), + const HistoricalFontFeatureDiagram('Cardo', sampleText: 'VIBRANT fish assisted his business.'), + const FontFeatureValueDiagram('lnum', [0, 1], 'Sorts Mill Goudy', sampleText: 'CALL 311-555-2368 NOW!'), + const LocalizedFontFeatureDiagram(), // locl, uses 'Noto Sans' + const FontFeatureValueDiagram('nalt', [0, 1, 2, 3, 4, 5, 7], 'Gothic A1', sampleText: 'abc 123'), + const FontFeatureValueDiagram('numr', [0, 1], 'Piazzolla', sampleText: 'Fractions: 1/2 2/3 3/4 4/5'), + const FontFeatureValueDiagram('onum', [0, 1], 'Piazzolla', sampleText: 'Call 311-555-2368 now!'), + const FontFeatureValueDiagram('ordn', [0, 1], 'Piazzolla', sampleText: '1st, 2nd, 3rd, 4th...'), + const FontFeatureValueDiagram('pnum', [0, 1], 'Kufam', sampleText: 'Call 311-555-2368 now!'), + const FontFeatureValueDiagram('salt', [0, 1], 'Source Code Pro', sampleText: 'Agile Game - \$100 initial bet'), + const FontFeatureValueDiagram('sinf', [0, 1], 'Piazzolla', sampleText: 'C8H10N4O2'), + const StylisticSetsFontFeatureDiagram1(), // ssXX, uses 'Source Code Pro' + const StylisticSetsFontFeatureDiagram2(), // ssXX, uses 'Piazzolla' + const FontFeatureValueDiagram('subs', [0, 1], 'Piazzolla', sampleText: 'Line from x1,y1 to x2,y2'), + const FontFeatureValueDiagram('sups', [0, 1], 'Sorts Mill Goudy', sampleText: 'The isotope 238U decays to 206Pb'), + const FontFeatureValueDiagram('swsh', [0, 1], 'BioRhyme Expanded', sampleText: 'Queer & Romantic'), + const FontFeatureValueDiagram('tnum', [0, 1], 'Piazzolla', sampleText: 'Call 311-555-2368 now!'), + const FontFeatureValueDiagram('zero', [0, 1], 'Source Code Pro', sampleText: 'One million is: 1,000,000.00'), + ]; + + @override + Future generateDiagram(FontFeatureDiagram diagram) async { + controller.builder = (BuildContext context) => diagram; + return await controller.drawDiagramToFile(File('${diagram.name}.png')); + } +} diff --git a/utils/diagram_generator/fonts/Barriecito-Regular.ttf b/utils/diagram_generator/fonts/Barriecito-Regular.ttf new file mode 100644 index 00000000..9ed6ab04 Binary files /dev/null and b/utils/diagram_generator/fonts/Barriecito-Regular.ttf differ diff --git a/utils/diagram_generator/fonts/Barriecito.txt b/utils/diagram_generator/fonts/Barriecito.txt new file mode 100644 index 00000000..552fd559 --- /dev/null +++ b/utils/diagram_generator/fonts/Barriecito.txt @@ -0,0 +1,93 @@ +Copyright 2018 The Barriecito Project Authors (https://github.com/Omnibus-Type/Barrio/Barriecito) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/BioRhymeExpanded-ExtraBold.ttf b/utils/diagram_generator/fonts/BioRhymeExpanded-ExtraBold.ttf new file mode 100644 index 00000000..028fe1e0 Binary files /dev/null and b/utils/diagram_generator/fonts/BioRhymeExpanded-ExtraBold.ttf differ diff --git a/utils/diagram_generator/fonts/BioRhymeExpanded.txt b/utils/diagram_generator/fonts/BioRhymeExpanded.txt new file mode 100644 index 00000000..b336d689 --- /dev/null +++ b/utils/diagram_generator/fonts/BioRhymeExpanded.txt @@ -0,0 +1,93 @@ +Copyright 2016 Aoife Mooney (aoifemooney@gmail.com www.aoifemooney.org) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/Cardo-Regular.ttf b/utils/diagram_generator/fonts/Cardo-Regular.ttf new file mode 100644 index 00000000..854f295a Binary files /dev/null and b/utils/diagram_generator/fonts/Cardo-Regular.ttf differ diff --git a/utils/diagram_generator/fonts/Cardo.txt b/utils/diagram_generator/fonts/Cardo.txt new file mode 100644 index 00000000..bcd44e93 --- /dev/null +++ b/utils/diagram_generator/fonts/Cardo.txt @@ -0,0 +1,93 @@ +Copyright (c) 2002-2011, David J. Perry (hospes02@scholarsfonts.net) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/GothicA1-ExtraBold.ttf b/utils/diagram_generator/fonts/GothicA1-ExtraBold.ttf new file mode 100644 index 00000000..9dd44d43 Binary files /dev/null and b/utils/diagram_generator/fonts/GothicA1-ExtraBold.ttf differ diff --git a/utils/diagram_generator/fonts/GothicA1.txt b/utils/diagram_generator/fonts/GothicA1.txt new file mode 100644 index 00000000..05f96731 --- /dev/null +++ b/utils/diagram_generator/fonts/GothicA1.txt @@ -0,0 +1,93 @@ +(C) Copyright HanYang I&C Co.,Ltd. All rights reserved. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/Kufam-SemiBold.ttf b/utils/diagram_generator/fonts/Kufam-SemiBold.ttf new file mode 100644 index 00000000..3185c28a Binary files /dev/null and b/utils/diagram_generator/fonts/Kufam-SemiBold.ttf differ diff --git a/utils/diagram_generator/fonts/Kufam.txt b/utils/diagram_generator/fonts/Kufam.txt new file mode 100644 index 00000000..3a09803c --- /dev/null +++ b/utils/diagram_generator/fonts/Kufam.txt @@ -0,0 +1,93 @@ +Copyright 2019 The Kufam Project Authors (https://github.com/originaltype/kufam) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/NotoSans.txt b/utils/diagram_generator/fonts/NotoSans.txt new file mode 100644 index 00000000..d952d62c --- /dev/null +++ b/utils/diagram_generator/fonts/NotoSans.txt @@ -0,0 +1,92 @@ +This Font Software is licensed under the SIL Open Font License, +Version 1.1. + +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font +creation efforts of academic and linguistic communities, and to +provide a free and open framework in which fonts may be shared and +improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply to +any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software +components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, +deleting, or substituting -- in part or in whole -- any of the +components of the Original Version, by changing formats or by porting +the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, +modify, redistribute, and sell modified and unmodified copies of the +Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in +Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the +corresponding Copyright Holder. This restriction only applies to the +primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created using +the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/NotoSansCJKjp-Bold.otf b/utils/diagram_generator/fonts/NotoSansCJKjp-Bold.otf new file mode 100644 index 00000000..76c4827a Binary files /dev/null and b/utils/diagram_generator/fonts/NotoSansCJKjp-Bold.otf differ diff --git a/utils/diagram_generator/fonts/Piazzolla-ExtraBold.ttf b/utils/diagram_generator/fonts/Piazzolla-ExtraBold.ttf new file mode 100644 index 00000000..268817d6 Binary files /dev/null and b/utils/diagram_generator/fonts/Piazzolla-ExtraBold.ttf differ diff --git a/utils/diagram_generator/fonts/Piazzolla.txt b/utils/diagram_generator/fonts/Piazzolla.txt new file mode 100644 index 00000000..36ad4eaa --- /dev/null +++ b/utils/diagram_generator/fonts/Piazzolla.txt @@ -0,0 +1,93 @@ +Copyright 2018 The Piazzolla Project Authors (https://github.com/huertatipografica/piazzolla) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/Raleway.txt b/utils/diagram_generator/fonts/Raleway.txt new file mode 100644 index 00000000..c70fc742 --- /dev/null +++ b/utils/diagram_generator/fonts/Raleway.txt @@ -0,0 +1,93 @@ +Copyright 2010 The Raleway Project Authors (impallari@gmail.com), with Reserved Font Name "Raleway". + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/SortsMillGoudy-Regular.ttf b/utils/diagram_generator/fonts/SortsMillGoudy-Regular.ttf new file mode 100644 index 00000000..10e9b802 Binary files /dev/null and b/utils/diagram_generator/fonts/SortsMillGoudy-Regular.ttf differ diff --git a/utils/diagram_generator/fonts/SortsMillGoudy.txt b/utils/diagram_generator/fonts/SortsMillGoudy.txt new file mode 100644 index 00000000..48d1e9de --- /dev/null +++ b/utils/diagram_generator/fonts/SortsMillGoudy.txt @@ -0,0 +1,93 @@ +Copyright (c) 2010, Barry Schwartz (chemoelectric@chemoelectric.org) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/SourceCodePro-Bold.ttf b/utils/diagram_generator/fonts/SourceCodePro-Bold.ttf new file mode 100644 index 00000000..c790e045 Binary files /dev/null and b/utils/diagram_generator/fonts/SourceCodePro-Bold.ttf differ diff --git a/utils/diagram_generator/fonts/SourceCodePro.txt b/utils/diagram_generator/fonts/SourceCodePro.txt new file mode 100644 index 00000000..efc001ff --- /dev/null +++ b/utils/diagram_generator/fonts/SourceCodePro.txt @@ -0,0 +1,93 @@ +Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/fonts/UbuntuMono-Bold.ttf b/utils/diagram_generator/fonts/UbuntuMono-Bold.ttf new file mode 100644 index 00000000..0ac7e58a Binary files /dev/null and b/utils/diagram_generator/fonts/UbuntuMono-Bold.ttf differ diff --git a/utils/diagram_generator/fonts/UbuntuMono.txt b/utils/diagram_generator/fonts/UbuntuMono.txt new file mode 100644 index 00000000..ae78a8f9 --- /dev/null +++ b/utils/diagram_generator/fonts/UbuntuMono.txt @@ -0,0 +1,96 @@ +------------------------------- +UBUNTU FONT LICENCE Version 1.0 +------------------------------- + +PREAMBLE +This licence allows the licensed fonts to be used, studied, modified and +redistributed freely. The fonts, including any derivative works, can be +bundled, embedded, and redistributed provided the terms of this licence +are met. The fonts and derivatives, however, cannot be released under +any other licence. The requirement for fonts to remain under this +licence does not require any document created using the fonts or their +derivatives to be published under this licence, as long as the primary +purpose of the document is not to be a vehicle for the distribution of +the fonts. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this licence and clearly marked as such. This may +include source files, build scripts and documentation. + +"Original Version" refers to the collection of Font Software components +as received under this licence. + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to +a new environment. + +"Copyright Holder(s)" refers to all individuals and companies who have a +copyright ownership of the Font Software. + +"Substantially Changed" refers to Modified Versions which can be easily +identified as dissimilar to the Font Software by users of the Font +Software comparing the Original Version with the Modified Version. + +To "Propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification and with or without charging +a redistribution fee), making available to the public, and in some +countries other activities as well. + +PERMISSION & CONDITIONS +This licence does not grant any rights under trademark law and all such +rights are reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of the Font Software, to propagate the Font Software, subject to +the below conditions: + +1) Each copy of the Font Software must contain the above copyright +notice and this licence. These can be included either as stand-alone +text files, human-readable headers or in the appropriate machine- +readable metadata fields within text or binary files as long as those +fields can be easily viewed by the user. + +2) The font name complies with the following: +(a) The Original Version must retain its name, unmodified. +(b) Modified Versions which are Substantially Changed must be renamed to +avoid use of the name of the Original Version or similar names entirely. +(c) Modified Versions which are not Substantially Changed must be +renamed to both (i) retain the name of the Original Version and (ii) add +additional naming elements to distinguish the Modified Version from the +Original Version. The name of such Modified Versions must be the name of +the Original Version, with "derivative X" where X represents the name of +the new work, appended to that name. + +3) The name(s) of the Copyright Holder(s) and any contributor to the +Font Software shall not be used to promote, endorse or advertise any +Modified Version, except (i) as required by this licence, (ii) to +acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with +their explicit written permission. + +4) The Font Software, modified or unmodified, in part or in whole, must +be distributed entirely under this licence, and must not be distributed +under any other licence. The requirement for fonts to remain under this +licence does not affect any document created using the Font Software, +except any version of the Font Software extracted from a document +created using the Font Software may only be distributed under this +licence. + +TERMINATION +This licence becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. diff --git a/utils/diagram_generator/lib/main.dart b/utils/diagram_generator/lib/main.dart index 7e077baf..d554eed9 100644 --- a/utils/diagram_generator/lib/main.dart +++ b/utils/diagram_generator/lib/main.dart @@ -62,6 +62,8 @@ Future main() async { final List categories = flags['category'] as List; final List names = flags['name'] as List; + print('Filters:\n categories: $categories\n names: $names'); + final DateTime start = DateTime.now(); final Directory outputDirectory = await prepareOutputDirectory(platform.isAndroid ? null : '/tmp/diagrams'); @@ -72,8 +74,7 @@ Future main() async { ); // Add the diagram steps here. - final List> steps = - >[ + final List> steps = >[ AlertDialogDiagramStep(controller), AlignDiagramStep(controller), AnimationStatusValueDiagramStep(controller), @@ -100,6 +101,7 @@ Future main() async { FloatingActionButtonDiagramStep(controller), FloatingActionButtonLocationDiagramStep(controller), FormDiagramStep(controller), + FontFeatureDiagramStep(controller), GestureDetectorDiagramStep(controller), GridViewDiagramStep(controller), HeroesDiagramStep(controller), diff --git a/utils/diagram_generator/pubspec.yaml b/utils/diagram_generator/pubspec.yaml index 1bea9b72..06bde784 100644 --- a/utils/diagram_generator/pubspec.yaml +++ b/utils/diagram_generator/pubspec.yaml @@ -26,6 +26,34 @@ environment: flutter: uses-material-design: true fonts: + - family: Barriecito + fonts: + - asset: fonts/Barriecito-Regular.ttf + + - family: BioRhyme Expanded + fonts: + - asset: fonts/BioRhymeExpanded-ExtraBold.ttf + + - family: Cardo + fonts: + - asset: fonts/Cardo-Regular.ttf + + - family: Gothic A1 + fonts: + - asset: fonts/GothicA1-ExtraBold.ttf + + - family: Kufam + fonts: + - asset: fonts/Kufam-SemiBold.ttf + + - family: Noto Sans + fonts: + - asset: fonts/NotoSansCJKjp-Bold.otf + + - family: Piazzolla + fonts: + - asset: fonts/Piazzolla-ExtraBold.ttf + - family: Raleway fonts: - asset: fonts/Raleway-Regular.ttf @@ -33,3 +61,15 @@ flutter: weight: 500 - asset: fonts/Raleway-SemiBold.ttf weight: 600 + + - family: Sorts Mill Goudy + fonts: + - asset: fonts/SortsMillGoudy-Regular.ttf + + - family: Source Code Pro + fonts: + - asset: fonts/SourceCodePro-Bold.ttf + + - family: Ubuntu Mono + fonts: + - asset: fonts/UbuntuMono-Bold.ttf