From 716f442101321d9b28571a4e14549f22a32aac35 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 1 Mar 2025 16:55:08 -0500 Subject: use font with greek characters --- font/CooperHewitt-Light.ttf | Bin 68116 -> 0 bytes font/CooperHewitt-Medium.ttf | Bin 65952 -> 0 bytes font/CooperHewitt-Thin.ttf | Bin 67008 -> 0 bytes font/NimbusRoman-Regular.ttf | Bin 0 -> 203180 bytes font/NimbusSans-Regular.ttf | Bin 0 -> 181776 bytes font/P052-Roman.ttf | Bin 0 -> 220676 bytes font/computer_modern/SIL Open Font License.txt | 55 ++++++++++++ font/computer_modern/cmunbi.ttf | Bin 0 -> 285096 bytes font/computer_modern/cmunbl.ttf | Bin 0 -> 253980 bytes font/computer_modern/cmunbmo.ttf | Bin 0 -> 185780 bytes font/computer_modern/cmunbmr.ttf | Bin 0 -> 145840 bytes font/computer_modern/cmunbso.ttf | Bin 0 -> 183844 bytes font/computer_modern/cmunbsr.ttf | Bin 0 -> 146988 bytes font/computer_modern/cmunbtl.ttf | Bin 0 -> 213632 bytes font/computer_modern/cmunbto.ttf | Bin 0 -> 247768 bytes font/computer_modern/cmunbx.ttf | Bin 0 -> 221904 bytes font/computer_modern/cmunci.ttf | Bin 0 -> 291936 bytes font/computer_modern/cmunit.ttf | Bin 0 -> 249680 bytes font/computer_modern/cmunobi.ttf | Bin 0 -> 276804 bytes font/computer_modern/cmunobx.ttf | Bin 0 -> 205612 bytes font/computer_modern/cmunorm.ttf | Bin 0 -> 210868 bytes font/computer_modern/cmunoti.ttf | Bin 0 -> 275808 bytes font/computer_modern/cmunrm.ttf | Bin 0 -> 235656 bytes font/computer_modern/cmunsi.ttf | Bin 0 -> 185920 bytes font/computer_modern/cmunsl.ttf | Bin 0 -> 267732 bytes font/computer_modern/cmunso.ttf | Bin 0 -> 234180 bytes font/computer_modern/cmunss.ttf | Bin 0 -> 149416 bytes font/computer_modern/cmunssdc.ttf | Bin 0 -> 199792 bytes font/computer_modern/cmunsx.ttf | Bin 0 -> 200524 bytes font/computer_modern/cmuntb.ttf | Bin 0 -> 227272 bytes font/computer_modern/cmunti.ttf | Bin 0 -> 289276 bytes font/computer_modern/cmuntt.ttf | Bin 0 -> 214528 bytes font/computer_modern/cmuntx.ttf | Bin 0 -> 256112 bytes font/computer_modern/cmunui.ttf | Bin 0 -> 240848 bytes font/computer_modern/cmunvi.ttf | Bin 0 -> 232632 bytes font/computer_modern/cmunvt.ttf | Bin 0 -> 193880 bytes font/cooper_hewitt/CooperHewitt-Light.ttf | Bin 0 -> 68116 bytes font/cooper_hewitt/CooperHewitt-Medium.ttf | Bin 0 -> 65952 bytes font/cooper_hewitt/CooperHewitt-Thin.ttf | Bin 0 -> 67008 bytes font/stix_two_text/OFL.txt | 93 +++++++++++++++++++++ font/stix_two_text/README.txt | 71 ++++++++++++++++ .../STIXTwoText-Italic-VariableFont_wght.ttf | Bin 0 -> 455900 bytes .../STIXTwoText-VariableFont_wght.ttf | Bin 0 -> 420836 bytes font/stix_two_text/static/STIXTwoText-Bold.ttf | Bin 0 -> 294548 bytes .../static/STIXTwoText-BoldItalic.ttf | Bin 0 -> 320456 bytes font/stix_two_text/static/STIXTwoText-Italic.ttf | Bin 0 -> 320336 bytes font/stix_two_text/static/STIXTwoText-Medium.ttf | Bin 0 -> 294660 bytes .../static/STIXTwoText-MediumItalic.ttf | Bin 0 -> 321216 bytes font/stix_two_text/static/STIXTwoText-Regular.ttf | Bin 0 -> 294352 bytes font/stix_two_text/static/STIXTwoText-SemiBold.ttf | Bin 0 -> 294960 bytes .../static/STIXTwoText-SemiBoldItalic.ttf | Bin 0 -> 321096 bytes main.c | 19 +++-- renderer.c | 2 +- 53 files changed, 230 insertions(+), 10 deletions(-) delete mode 100644 font/CooperHewitt-Light.ttf delete mode 100644 font/CooperHewitt-Medium.ttf delete mode 100644 font/CooperHewitt-Thin.ttf create mode 100644 font/NimbusRoman-Regular.ttf create mode 100644 font/NimbusSans-Regular.ttf create mode 100644 font/P052-Roman.ttf create mode 100644 font/computer_modern/SIL Open Font License.txt create mode 100644 font/computer_modern/cmunbi.ttf create mode 100644 font/computer_modern/cmunbl.ttf create mode 100644 font/computer_modern/cmunbmo.ttf create mode 100644 font/computer_modern/cmunbmr.ttf create mode 100644 font/computer_modern/cmunbso.ttf create mode 100644 font/computer_modern/cmunbsr.ttf create mode 100644 font/computer_modern/cmunbtl.ttf create mode 100644 font/computer_modern/cmunbto.ttf create mode 100644 font/computer_modern/cmunbx.ttf create mode 100644 font/computer_modern/cmunci.ttf create mode 100644 font/computer_modern/cmunit.ttf create mode 100644 font/computer_modern/cmunobi.ttf create mode 100644 font/computer_modern/cmunobx.ttf create mode 100644 font/computer_modern/cmunorm.ttf create mode 100644 font/computer_modern/cmunoti.ttf create mode 100644 font/computer_modern/cmunrm.ttf create mode 100644 font/computer_modern/cmunsi.ttf create mode 100644 font/computer_modern/cmunsl.ttf create mode 100644 font/computer_modern/cmunso.ttf create mode 100644 font/computer_modern/cmunss.ttf create mode 100644 font/computer_modern/cmunssdc.ttf create mode 100644 font/computer_modern/cmunsx.ttf create mode 100644 font/computer_modern/cmuntb.ttf create mode 100644 font/computer_modern/cmunti.ttf create mode 100644 font/computer_modern/cmuntt.ttf create mode 100644 font/computer_modern/cmuntx.ttf create mode 100644 font/computer_modern/cmunui.ttf create mode 100644 font/computer_modern/cmunvi.ttf create mode 100644 font/computer_modern/cmunvt.ttf create mode 100644 font/cooper_hewitt/CooperHewitt-Light.ttf create mode 100644 font/cooper_hewitt/CooperHewitt-Medium.ttf create mode 100644 font/cooper_hewitt/CooperHewitt-Thin.ttf create mode 100644 font/stix_two_text/OFL.txt create mode 100644 font/stix_two_text/README.txt create mode 100644 font/stix_two_text/STIXTwoText-Italic-VariableFont_wght.ttf create mode 100644 font/stix_two_text/STIXTwoText-VariableFont_wght.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-Bold.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-BoldItalic.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-Italic.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-Medium.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-MediumItalic.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-Regular.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-SemiBold.ttf create mode 100644 font/stix_two_text/static/STIXTwoText-SemiBoldItalic.ttf diff --git a/font/CooperHewitt-Light.ttf b/font/CooperHewitt-Light.ttf deleted file mode 100644 index 97b1207..0000000 Binary files a/font/CooperHewitt-Light.ttf and /dev/null differ diff --git a/font/CooperHewitt-Medium.ttf b/font/CooperHewitt-Medium.ttf deleted file mode 100644 index ceca1a3..0000000 Binary files a/font/CooperHewitt-Medium.ttf and /dev/null differ diff --git a/font/CooperHewitt-Thin.ttf b/font/CooperHewitt-Thin.ttf deleted file mode 100644 index 14445d7..0000000 Binary files a/font/CooperHewitt-Thin.ttf and /dev/null differ diff --git a/font/NimbusRoman-Regular.ttf b/font/NimbusRoman-Regular.ttf new file mode 100644 index 0000000..807d6e4 Binary files /dev/null and b/font/NimbusRoman-Regular.ttf differ diff --git a/font/NimbusSans-Regular.ttf b/font/NimbusSans-Regular.ttf new file mode 100644 index 0000000..34945b7 Binary files /dev/null and b/font/NimbusSans-Regular.ttf differ diff --git a/font/P052-Roman.ttf b/font/P052-Roman.ttf new file mode 100644 index 0000000..6f44501 Binary files /dev/null and b/font/P052-Roman.ttf differ diff --git a/font/computer_modern/SIL Open Font License.txt b/font/computer_modern/SIL Open Font License.txt new file mode 100644 index 0000000..8ed8440 --- /dev/null +++ b/font/computer_modern/SIL Open Font License.txt @@ -0,0 +1,55 @@ +Copyright (C) Authors of original metafont fonts: +Donald Ervin Knuth (cm, concrete fonts) +1995, 1996, 1997 J"org Knappen, 1990, 1992 Norbert Schwarz (ec fonts) +1992-2006 A.Khodulev, O.Lapko, A.Berdnikov, V.Volovich (lh fonts) +1997-2005 Claudio Beccari (cb greek fonts) +2002 FUKUI Rei (tipa fonts) +2003-2005 Han The Thanh (Vietnamese fonts) +1996-2005 Walter Schmidt (cmbright fonts) + +Copyright (C) 2003-2009, Andrey V. Panov (panov@canopus.iacp.dvo.ru), +with Reserved Font Family Name "Computer Modern Unicode fonts". + + + +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. \ No newline at end of file diff --git a/font/computer_modern/cmunbi.ttf b/font/computer_modern/cmunbi.ttf new file mode 100644 index 0000000..20505cf Binary files /dev/null and b/font/computer_modern/cmunbi.ttf differ diff --git a/font/computer_modern/cmunbl.ttf b/font/computer_modern/cmunbl.ttf new file mode 100644 index 0000000..0651935 Binary files /dev/null and b/font/computer_modern/cmunbl.ttf differ diff --git a/font/computer_modern/cmunbmo.ttf b/font/computer_modern/cmunbmo.ttf new file mode 100644 index 0000000..e8c1cbf Binary files /dev/null and b/font/computer_modern/cmunbmo.ttf differ diff --git a/font/computer_modern/cmunbmr.ttf b/font/computer_modern/cmunbmr.ttf new file mode 100644 index 0000000..5ed1086 Binary files /dev/null and b/font/computer_modern/cmunbmr.ttf differ diff --git a/font/computer_modern/cmunbso.ttf b/font/computer_modern/cmunbso.ttf new file mode 100644 index 0000000..90cf05d Binary files /dev/null and b/font/computer_modern/cmunbso.ttf differ diff --git a/font/computer_modern/cmunbsr.ttf b/font/computer_modern/cmunbsr.ttf new file mode 100644 index 0000000..dfc11f4 Binary files /dev/null and b/font/computer_modern/cmunbsr.ttf differ diff --git a/font/computer_modern/cmunbtl.ttf b/font/computer_modern/cmunbtl.ttf new file mode 100644 index 0000000..77410c2 Binary files /dev/null and b/font/computer_modern/cmunbtl.ttf differ diff --git a/font/computer_modern/cmunbto.ttf b/font/computer_modern/cmunbto.ttf new file mode 100644 index 0000000..a943044 Binary files /dev/null and b/font/computer_modern/cmunbto.ttf differ diff --git a/font/computer_modern/cmunbx.ttf b/font/computer_modern/cmunbx.ttf new file mode 100644 index 0000000..9a42c0e Binary files /dev/null and b/font/computer_modern/cmunbx.ttf differ diff --git a/font/computer_modern/cmunci.ttf b/font/computer_modern/cmunci.ttf new file mode 100644 index 0000000..4d41d1f Binary files /dev/null and b/font/computer_modern/cmunci.ttf differ diff --git a/font/computer_modern/cmunit.ttf b/font/computer_modern/cmunit.ttf new file mode 100644 index 0000000..2afa178 Binary files /dev/null and b/font/computer_modern/cmunit.ttf differ diff --git a/font/computer_modern/cmunobi.ttf b/font/computer_modern/cmunobi.ttf new file mode 100644 index 0000000..18ef158 Binary files /dev/null and b/font/computer_modern/cmunobi.ttf differ diff --git a/font/computer_modern/cmunobx.ttf b/font/computer_modern/cmunobx.ttf new file mode 100644 index 0000000..d320eb7 Binary files /dev/null and b/font/computer_modern/cmunobx.ttf differ diff --git a/font/computer_modern/cmunorm.ttf b/font/computer_modern/cmunorm.ttf new file mode 100644 index 0000000..72cfd42 Binary files /dev/null and b/font/computer_modern/cmunorm.ttf differ diff --git a/font/computer_modern/cmunoti.ttf b/font/computer_modern/cmunoti.ttf new file mode 100644 index 0000000..826d145 Binary files /dev/null and b/font/computer_modern/cmunoti.ttf differ diff --git a/font/computer_modern/cmunrm.ttf b/font/computer_modern/cmunrm.ttf new file mode 100644 index 0000000..5e182b3 Binary files /dev/null and b/font/computer_modern/cmunrm.ttf differ diff --git a/font/computer_modern/cmunsi.ttf b/font/computer_modern/cmunsi.ttf new file mode 100644 index 0000000..bcbbb14 Binary files /dev/null and b/font/computer_modern/cmunsi.ttf differ diff --git a/font/computer_modern/cmunsl.ttf b/font/computer_modern/cmunsl.ttf new file mode 100644 index 0000000..6f4f543 Binary files /dev/null and b/font/computer_modern/cmunsl.ttf differ diff --git a/font/computer_modern/cmunso.ttf b/font/computer_modern/cmunso.ttf new file mode 100644 index 0000000..79e9d9c Binary files /dev/null and b/font/computer_modern/cmunso.ttf differ diff --git a/font/computer_modern/cmunss.ttf b/font/computer_modern/cmunss.ttf new file mode 100644 index 0000000..4f904f1 Binary files /dev/null and b/font/computer_modern/cmunss.ttf differ diff --git a/font/computer_modern/cmunssdc.ttf b/font/computer_modern/cmunssdc.ttf new file mode 100644 index 0000000..c46b443 Binary files /dev/null and b/font/computer_modern/cmunssdc.ttf differ diff --git a/font/computer_modern/cmunsx.ttf b/font/computer_modern/cmunsx.ttf new file mode 100644 index 0000000..53d642c Binary files /dev/null and b/font/computer_modern/cmunsx.ttf differ diff --git a/font/computer_modern/cmuntb.ttf b/font/computer_modern/cmuntb.ttf new file mode 100644 index 0000000..fa687ae Binary files /dev/null and b/font/computer_modern/cmuntb.ttf differ diff --git a/font/computer_modern/cmunti.ttf b/font/computer_modern/cmunti.ttf new file mode 100644 index 0000000..ec5f1f6 Binary files /dev/null and b/font/computer_modern/cmunti.ttf differ diff --git a/font/computer_modern/cmuntt.ttf b/font/computer_modern/cmuntt.ttf new file mode 100644 index 0000000..d975a18 Binary files /dev/null and b/font/computer_modern/cmuntt.ttf differ diff --git a/font/computer_modern/cmuntx.ttf b/font/computer_modern/cmuntx.ttf new file mode 100644 index 0000000..2060c30 Binary files /dev/null and b/font/computer_modern/cmuntx.ttf differ diff --git a/font/computer_modern/cmunui.ttf b/font/computer_modern/cmunui.ttf new file mode 100644 index 0000000..4222439 Binary files /dev/null and b/font/computer_modern/cmunui.ttf differ diff --git a/font/computer_modern/cmunvi.ttf b/font/computer_modern/cmunvi.ttf new file mode 100644 index 0000000..288f91d Binary files /dev/null and b/font/computer_modern/cmunvi.ttf differ diff --git a/font/computer_modern/cmunvt.ttf b/font/computer_modern/cmunvt.ttf new file mode 100644 index 0000000..57bcaf4 Binary files /dev/null and b/font/computer_modern/cmunvt.ttf differ diff --git a/font/cooper_hewitt/CooperHewitt-Light.ttf b/font/cooper_hewitt/CooperHewitt-Light.ttf new file mode 100644 index 0000000..97b1207 Binary files /dev/null and b/font/cooper_hewitt/CooperHewitt-Light.ttf differ diff --git a/font/cooper_hewitt/CooperHewitt-Medium.ttf b/font/cooper_hewitt/CooperHewitt-Medium.ttf new file mode 100644 index 0000000..ceca1a3 Binary files /dev/null and b/font/cooper_hewitt/CooperHewitt-Medium.ttf differ diff --git a/font/cooper_hewitt/CooperHewitt-Thin.ttf b/font/cooper_hewitt/CooperHewitt-Thin.ttf new file mode 100644 index 0000000..14445d7 Binary files /dev/null and b/font/cooper_hewitt/CooperHewitt-Thin.ttf differ diff --git a/font/stix_two_text/OFL.txt b/font/stix_two_text/OFL.txt new file mode 100644 index 0000000..d6a28bb --- /dev/null +++ b/font/stix_two_text/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2001-2021 The STIX Fonts Project Authors (https://github.com/stipub/stixfonts), with Reserved Font Name "TM Math". STIX Fonts™ is a trademark of The Institute of Electrical and Electronics Engineers, Inc. + +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: +https://openfontlicense.org + + +----------------------------------------------------------- +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/font/stix_two_text/README.txt b/font/stix_two_text/README.txt new file mode 100644 index 0000000..3d7788e --- /dev/null +++ b/font/stix_two_text/README.txt @@ -0,0 +1,71 @@ +STIX Two Text Variable Font +=========================== + +This download contains STIX Two Text as both variable fonts and static fonts. + +STIX Two Text is a variable font with this axis: + wght + +This means all the styles are contained in these files: + STIXTwoText-VariableFont_wght.ttf + STIXTwoText-Italic-VariableFont_wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for STIX Two Text: + static/STIXTwoText-Regular.ttf + static/STIXTwoText-Medium.ttf + static/STIXTwoText-SemiBold.ttf + static/STIXTwoText-Bold.ttf + static/STIXTwoText-Italic.ttf + static/STIXTwoText-MediumItalic.ttf + static/STIXTwoText-SemiBoldItalic.ttf + static/STIXTwoText-BoldItalic.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them in your products & projects – print or digital, +commercial or otherwise. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/font/stix_two_text/STIXTwoText-Italic-VariableFont_wght.ttf b/font/stix_two_text/STIXTwoText-Italic-VariableFont_wght.ttf new file mode 100644 index 0000000..b6e7fc9 Binary files /dev/null and b/font/stix_two_text/STIXTwoText-Italic-VariableFont_wght.ttf differ diff --git a/font/stix_two_text/STIXTwoText-VariableFont_wght.ttf b/font/stix_two_text/STIXTwoText-VariableFont_wght.ttf new file mode 100644 index 0000000..a78e980 Binary files /dev/null and b/font/stix_two_text/STIXTwoText-VariableFont_wght.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-Bold.ttf b/font/stix_two_text/static/STIXTwoText-Bold.ttf new file mode 100644 index 0000000..29b0d63 Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-Bold.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-BoldItalic.ttf b/font/stix_two_text/static/STIXTwoText-BoldItalic.ttf new file mode 100644 index 0000000..0064bbb Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-BoldItalic.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-Italic.ttf b/font/stix_two_text/static/STIXTwoText-Italic.ttf new file mode 100644 index 0000000..59f57d5 Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-Italic.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-Medium.ttf b/font/stix_two_text/static/STIXTwoText-Medium.ttf new file mode 100644 index 0000000..f59f1d6 Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-Medium.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-MediumItalic.ttf b/font/stix_two_text/static/STIXTwoText-MediumItalic.ttf new file mode 100644 index 0000000..ccd2222 Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-MediumItalic.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-Regular.ttf b/font/stix_two_text/static/STIXTwoText-Regular.ttf new file mode 100644 index 0000000..0bb9d67 Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-Regular.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-SemiBold.ttf b/font/stix_two_text/static/STIXTwoText-SemiBold.ttf new file mode 100644 index 0000000..5a23de2 Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-SemiBold.ttf differ diff --git a/font/stix_two_text/static/STIXTwoText-SemiBoldItalic.ttf b/font/stix_two_text/static/STIXTwoText-SemiBoldItalic.ttf new file mode 100644 index 0000000..e71651e Binary files /dev/null and b/font/stix_two_text/static/STIXTwoText-SemiBoldItalic.ttf differ diff --git a/main.c b/main.c index 1e73fb1..60c9e68 100644 --- a/main.c +++ b/main.c @@ -24,7 +24,7 @@ enum window { }; enum layout { - LABEL_WIDTH = 144, + LABEL_WIDTH = 128, UNIT_WIDTH = 48, FIELD_WIDTH = 64, }; @@ -168,7 +168,7 @@ displacement_row(mu_Context *ctx, UI *ui) { static void ambient_temperature_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 3, (int[]) {LABEL_WIDTH, FIELD_WIDTH, UNIT_WIDTH}, 0); - mu_label(ctx, "Ambient temperature:"); + mu_label(ctx, "Ambient T:"); if (w_field(ctx, &ui->ambient_temperature) & MU_RES_CHANGE) { set_ambient_temperature(ui); set_all_volume_flow_rate(ui); @@ -181,7 +181,7 @@ ambient_temperature_row(mu_Context *ctx, UI *ui) { static void ambient_pressure_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 3, (int[]) {LABEL_WIDTH, FIELD_WIDTH, UNIT_WIDTH}, 0); - mu_label(ctx, "Ambient pressure:"); + mu_label(ctx, "Ambient P:"); if (w_field(ctx, &ui->ambient_pressure) & MU_RES_CHANGE) { set_ambient_pressure(ui); set_all_volume_flow_rate(ui); @@ -197,8 +197,9 @@ rpm_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 0, NULL, 0); mu_layout_width(ctx, LABEL_WIDTH); - mu_label(ctx, "rpm:"); - hpad(ctx, UNIT_WIDTH); + mu_label(ctx, "Speed:"); + mu_layout_width(ctx, UNIT_WIDTH); + mu_label(ctx, "(rpm)"); mu_layout_width(ctx, FIELD_WIDTH); for (i = 0; i < ui->npoints; i++) { if (w_field(ctx, &ui->rpm[i])) { @@ -214,7 +215,7 @@ map_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 0, NULL, 0); mu_layout_width(ctx, LABEL_WIDTH); - mu_label(ctx, "map:"); + mu_label(ctx, "Manifold P:"); mu_layout_width(ctx, UNIT_WIDTH); if (w_select(ctx, &ui->map_unit) & MU_RES_CHANGE) { set_map_unit(ui); @@ -234,7 +235,7 @@ ve_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 0, NULL, 0); mu_layout_width(ctx, LABEL_WIDTH); - mu_label(ctx, "ve:"); + mu_label(ctx, "Volumetric η:"); mu_layout_width(ctx, UNIT_WIDTH); mu_label(ctx, "(%)"); mu_layout_width(ctx, FIELD_WIDTH); @@ -252,7 +253,7 @@ comp_efficiency_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 0, NULL, 0); mu_layout_width(ctx, LABEL_WIDTH); - mu_label(ctx, "Compressor efficiency:"); + mu_label(ctx, "Compressor η:"); mu_layout_width(ctx, UNIT_WIDTH); mu_label(ctx, "(%)"); mu_layout_width(ctx, FIELD_WIDTH); @@ -270,7 +271,7 @@ intercooler_efficiency_row(mu_Context *ctx, UI *ui) { mu_layout_row(ctx, 0, NULL, 0); mu_layout_width(ctx, LABEL_WIDTH); - mu_label(ctx, "Intercooler efficiency:"); + mu_label(ctx, "Intercooler η:"); mu_layout_width(ctx, UNIT_WIDTH); mu_label(ctx, "(%)"); mu_layout_width(ctx, FIELD_WIDTH); diff --git a/renderer.c b/renderer.c index 61e34ec..fcb8181 100644 --- a/renderer.c +++ b/renderer.c @@ -15,7 +15,7 @@ enum window { RENDERFLAGS = SDL_RENDERER_PRESENTVSYNC, }; -static const char FONT[] = "font/charter-regular.ttf"; +static const char FONT[] = "font/P052-Roman.ttf"; enum font { FONTSIZE = 14, }; static const mu_Color bg = {255, 255, 255, 255}; -- cgit v1.2.3