From 7b3afcaf77f96e7d62f6cd1623ead7f17512d79f Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 24 Feb 2024 22:47:46 +1100 Subject: repo init. partial port of existing code --- deps/Inter-4.0/Inter.ttc | Bin 0 -> 13000068 bytes deps/Inter-4.0/InterVariable-Italic.ttf | Bin 0 -> 894460 bytes deps/Inter-4.0/InterVariable.ttf | Bin 0 -> 862936 bytes deps/Inter-4.0/LICENSE.txt | 92 ++++++++++++++++++ deps/Inter-4.0/README.md | 14 +++ deps/Inter-4.0/help.txt | 165 ++++++++++++++++++++++++++++++++ 6 files changed, 271 insertions(+) create mode 100644 deps/Inter-4.0/Inter.ttc create mode 100644 deps/Inter-4.0/InterVariable-Italic.ttf create mode 100644 deps/Inter-4.0/InterVariable.ttf create mode 100644 deps/Inter-4.0/LICENSE.txt create mode 100644 deps/Inter-4.0/README.md create mode 100644 deps/Inter-4.0/help.txt (limited to 'deps/Inter-4.0') diff --git a/deps/Inter-4.0/Inter.ttc b/deps/Inter-4.0/Inter.ttc new file mode 100644 index 0000000..cf0e571 Binary files /dev/null and b/deps/Inter-4.0/Inter.ttc differ diff --git a/deps/Inter-4.0/InterVariable-Italic.ttf b/deps/Inter-4.0/InterVariable-Italic.ttf new file mode 100644 index 0000000..ed674e7 Binary files /dev/null and b/deps/Inter-4.0/InterVariable-Italic.ttf differ diff --git a/deps/Inter-4.0/InterVariable.ttf b/deps/Inter-4.0/InterVariable.ttf new file mode 100644 index 0000000..2d4b470 Binary files /dev/null and b/deps/Inter-4.0/InterVariable.ttf differ diff --git a/deps/Inter-4.0/LICENSE.txt b/deps/Inter-4.0/LICENSE.txt new file mode 100644 index 0000000..9b2ca37 --- /dev/null +++ b/deps/Inter-4.0/LICENSE.txt @@ -0,0 +1,92 @@ +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter) + +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 AND 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/deps/Inter-4.0/README.md b/deps/Inter-4.0/README.md new file mode 100644 index 0000000..95d5600 --- /dev/null +++ b/deps/Inter-4.0/README.md @@ -0,0 +1,14 @@ +# Dependencies + +This folder contains all the third-party dependencies used within Celeritas and are *vendored* into the source. + +We of course also rely on various libraries and packages to be installed at the system level + +``` +glad - opengl function pointer loader +glfw - cross-platform window creation & input handling +stb_image - image loading (PNG, JPG, etc) +stb_truetype - TrueType font loading and bitmap texture baking +Inter - very clean open-source font that is used everywhere +... sqlite coming soon +``` \ No newline at end of file diff --git a/deps/Inter-4.0/help.txt b/deps/Inter-4.0/help.txt new file mode 100644 index 0000000..cf06d27 --- /dev/null +++ b/deps/Inter-4.0/help.txt @@ -0,0 +1,165 @@ +Installing & using the Inter fonts + +Contents: + 1. Installing font files + 1.1. Installing on Apple macOS + 1.2. Installing on Microsoft Windows + 1.3. Installing on Ubuntu Linux + 2. Using Inter in Web content + 3. Hinted TrueType fonts + 4. Extras + 5. License (can I use Inter for x?) + +File index: + Inter.ttc Complete font family "Inter" + InterVariable*.ttf Complete font family "Inter Variable" + web/* Web fonts and CSS + extras/ Alternative formats (see "Extras") + +--------------------------------------------------------------------- + +1. Installing font files + + Inter fonts comes in two flavors: Variable and Static + (InterVariable*.ttf and Inter.ttc, respectively) + + Variable fonts is a new format which allows you to choose any + weight and optical size. Variable fonts is a relatively new + technology and may not yet be supported by all your software. + Inter's variable font is called "Inter Variable" to avoid + confusion and to allow use alongside the traditional static fonts. + + Static fonts works with older software and uses a fixed set of + predefined mixtures of weight and optical size. For example + "Inter Display Medium" is Inter with maximum optical size and a + weight of 500. + + You will be installing both of these flavors. + + +1.1. Installing on Apple macOS + + 1. Open the "Font Book" application. + 2. In the main menu, select "File" → "Add Fonts..." + 3. Select "Inter.ttc", "InterVariable.ttf" and "InterVariable-Italic.ttf" + 4. Press the "Open" button + + Alternatively, if you prefer not to use Font Book, you can move or + copy the font files directly into ~/Library/Fonts/ + + +1.2. Installing on Microsoft Windows + + 1. Open the zip file you downloaded + 2. Select "Inter.ttc", "InterVariable.ttf" and "InterVariable-Italic.ttf" + 3. Right-click the selected files, choose "Install for all users" + + If you have a previous installation of Inter, you should make sure + to remove those fonts files before installing new ones. You need to + install the font for all users, as some software requires fonts to + be global. + + +1.3. Installing on Ubuntu Linux + + 1. Create a ".fonts" directory in your home. (mkdir -p ~/.fonts) + 2. Copy "Inter.ttc", "InterVariable.ttf" and "InterVariable-Italic.ttf" + into your .fonts directory (cp Inter.ttc *.ttf ~/.fonts/) + + You may have to restart apps and/or your window server session. + +--------------------------------------------------------------------- + +2. Using Inter in Web content + + 1. Copy all woff2 files and the inter.css file from the "Web" + directory to your web server + + 2. Add the following into your HTML : + + + + + Replace "your-domain" with the actual domain name where you host + the woff2 font files. + + 3. If you are using a CDN, disable any automatic compression for + the woff2 files (they are already compressed) and set the + following HTTP headers for the woff2 files: + + Content-Type: font/woff2 + Cache-Control: max-age=31536000 + + The CSS contains specific version information in the URLs used + to load the fonts, so this is safe for upgrading to newer + versions of Inter. + + 4. In your main document's CSS, add the following to use Inter: + + :root { font-family: 'Inter', sans-serif; } + @supports (font-variation-settings: normal) { + :root { font-family: 'Inter var', sans-serif; } + } + + There are many other ways of using Inter on the Web platform. + The instructions above is simply one way. + + If you prefer to not host the fonts yourself, you can use the + official Inter CDN, which as a bonus means you are always serving + the latest version of Inter to your users: + + + + +--------------------------------------------------------------------- + +3. Hinted TrueType fonts + + This distribution contains TrueType fonts with hints in "Inter.ttc" + + Microsoft Windows uses a technology called ClearType which alters + the shape of letters to increase sharpness, in particular for low- + density displays. This requires a font to have little programs + built into them, called TrueType hinting instructions, which lets + ClearType knows how to alter each character. + + The variable font is currently not available with TrueType hints, + only the traditional "static" font files are. This will hopefully + change in a future release. + + Note that the web fonts does not contain hints to minimize file + size. You can get hinted web fonts from the "extras/woff-hinted" + directory. + +--------------------------------------------------------------------- + +4. Extras + + The "extras" directory contains some additional "bonus" content: + + otf/ Static font files in CFF format + ttf/ Static font files with TrueType hints + woff-hinted/ Web fonts with TrueType hints + +--------------------------------------------------------------------- + +5. License (can I use Inter for x?) + + Inter is a completely free-to-use typeface, including commercial + use. It is licensed under the SIL Open Font License 1.1, which + you have received a copy of in the separate file LICENSE.txt + + Here is a brief outline of permissions, limitations and conditions: + + Permissions Limitations Conditions + - Private use - No liability - License & copyright + - Commercial use - No warranty - Same license + - Modification + - Distribution + + Please read the complete LICENSE.txt carefully! + + +--------------------------------------------------------------------- + +Learn more about Inter at https://rsms.me/inter/ -- cgit v1.2.3-70-g09d2