diff options
69 files changed, 348 insertions, 3 deletions
@@ -1,5 +1,6 @@ logs/ *.log +imgui.ini bin/ bin-int/ diff --git a/Assets/Fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf b/Assets/Fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf Binary files differnew file mode 100644 index 0000000..43ed4f5 --- /dev/null +++ b/Assets/Fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf diff --git a/Assets/Fonts/Inter/Inter-VariableFont_opsz,wght.ttf b/Assets/Fonts/Inter/Inter-VariableFont_opsz,wght.ttf Binary files differnew file mode 100644 index 0000000..e31b51e --- /dev/null +++ b/Assets/Fonts/Inter/Inter-VariableFont_opsz,wght.ttf diff --git a/Assets/Fonts/Inter/OFL.txt b/Assets/Fonts/Inter/OFL.txt new file mode 100644 index 0000000..63db4fa --- /dev/null +++ b/Assets/Fonts/Inter/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 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: +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/Assets/Fonts/Inter/README.txt b/Assets/Fonts/Inter/README.txt new file mode 100644 index 0000000..f7a47e8 --- /dev/null +++ b/Assets/Fonts/Inter/README.txt @@ -0,0 +1,118 @@ +Inter Variable Font +=================== + +This download contains Inter as both variable fonts and static fonts. + +Inter is a variable font with these axes: + opsz + wght + +This means all the styles are contained in these files: + Inter-VariableFont_opsz,wght.ttf + Inter-Italic-VariableFont_opsz,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 Inter: + static/Inter_18pt-Thin.ttf + static/Inter_18pt-ExtraLight.ttf + static/Inter_18pt-Light.ttf + static/Inter_18pt-Regular.ttf + static/Inter_18pt-Medium.ttf + static/Inter_18pt-SemiBold.ttf + static/Inter_18pt-Bold.ttf + static/Inter_18pt-ExtraBold.ttf + static/Inter_18pt-Black.ttf + static/Inter_24pt-Thin.ttf + static/Inter_24pt-ExtraLight.ttf + static/Inter_24pt-Light.ttf + static/Inter_24pt-Regular.ttf + static/Inter_24pt-Medium.ttf + static/Inter_24pt-SemiBold.ttf + static/Inter_24pt-Bold.ttf + static/Inter_24pt-ExtraBold.ttf + static/Inter_24pt-Black.ttf + static/Inter_28pt-Thin.ttf + static/Inter_28pt-ExtraLight.ttf + static/Inter_28pt-Light.ttf + static/Inter_28pt-Regular.ttf + static/Inter_28pt-Medium.ttf + static/Inter_28pt-SemiBold.ttf + static/Inter_28pt-Bold.ttf + static/Inter_28pt-ExtraBold.ttf + static/Inter_28pt-Black.ttf + static/Inter_18pt-ThinItalic.ttf + static/Inter_18pt-ExtraLightItalic.ttf + static/Inter_18pt-LightItalic.ttf + static/Inter_18pt-Italic.ttf + static/Inter_18pt-MediumItalic.ttf + static/Inter_18pt-SemiBoldItalic.ttf + static/Inter_18pt-BoldItalic.ttf + static/Inter_18pt-ExtraBoldItalic.ttf + static/Inter_18pt-BlackItalic.ttf + static/Inter_24pt-ThinItalic.ttf + static/Inter_24pt-ExtraLightItalic.ttf + static/Inter_24pt-LightItalic.ttf + static/Inter_24pt-Italic.ttf + static/Inter_24pt-MediumItalic.ttf + static/Inter_24pt-SemiBoldItalic.ttf + static/Inter_24pt-BoldItalic.ttf + static/Inter_24pt-ExtraBoldItalic.ttf + static/Inter_24pt-BlackItalic.ttf + static/Inter_28pt-ThinItalic.ttf + static/Inter_28pt-ExtraLightItalic.ttf + static/Inter_28pt-LightItalic.ttf + static/Inter_28pt-Italic.ttf + static/Inter_28pt-MediumItalic.ttf + static/Inter_28pt-SemiBoldItalic.ttf + static/Inter_28pt-BoldItalic.ttf + static/Inter_28pt-ExtraBoldItalic.ttf + static/Inter_28pt-BlackItalic.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/Assets/Fonts/Inter/static/Inter_18pt-Black.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Black.ttf Binary files differnew file mode 100644 index 0000000..89673de --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Black.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-BlackItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-BlackItalic.ttf Binary files differnew file mode 100644 index 0000000..b33602f --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-BlackItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-Bold.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Bold.ttf Binary files differnew file mode 100644 index 0000000..cd13f60 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Bold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-BoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-BoldItalic.ttf Binary files differnew file mode 100644 index 0000000..0d19c1a --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-BoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-ExtraBold.ttf b/Assets/Fonts/Inter/static/Inter_18pt-ExtraBold.ttf Binary files differnew file mode 100644 index 0000000..e71c601 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-ExtraBold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-ExtraBoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-ExtraBoldItalic.ttf Binary files differnew file mode 100644 index 0000000..df45062 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-ExtraBoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-ExtraLight.ttf b/Assets/Fonts/Inter/static/Inter_18pt-ExtraLight.ttf Binary files differnew file mode 100644 index 0000000..f9c6cfc --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-ExtraLight.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-ExtraLightItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-ExtraLightItalic.ttf Binary files differnew file mode 100644 index 0000000..275f305 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-ExtraLightItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-Italic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Italic.ttf Binary files differnew file mode 100644 index 0000000..14d3595 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Italic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-Light.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Light.ttf Binary files differnew file mode 100644 index 0000000..acae361 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Light.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-LightItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-LightItalic.ttf Binary files differnew file mode 100644 index 0000000..f69e18b --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-LightItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-Medium.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Medium.ttf Binary files differnew file mode 100644 index 0000000..71d9017 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Medium.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-MediumItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-MediumItalic.ttf Binary files differnew file mode 100644 index 0000000..5c8c8b1 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-MediumItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-Regular.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Regular.ttf Binary files differnew file mode 100644 index 0000000..ce097c8 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Regular.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-SemiBold.ttf b/Assets/Fonts/Inter/static/Inter_18pt-SemiBold.ttf Binary files differnew file mode 100644 index 0000000..053185e --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-SemiBold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-SemiBoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-SemiBoldItalic.ttf Binary files differnew file mode 100644 index 0000000..d9c9896 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-SemiBoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-Thin.ttf b/Assets/Fonts/Inter/static/Inter_18pt-Thin.ttf Binary files differnew file mode 100644 index 0000000..e68ec47 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-Thin.ttf diff --git a/Assets/Fonts/Inter/static/Inter_18pt-ThinItalic.ttf b/Assets/Fonts/Inter/static/Inter_18pt-ThinItalic.ttf Binary files differnew file mode 100644 index 0000000..134e837 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_18pt-ThinItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Black.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Black.ttf Binary files differnew file mode 100644 index 0000000..dbb1b3b --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Black.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-BlackItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-BlackItalic.ttf Binary files differnew file mode 100644 index 0000000..b89d61c --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-BlackItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Bold.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Bold.ttf Binary files differnew file mode 100644 index 0000000..46b3583 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Bold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-BoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-BoldItalic.ttf Binary files differnew file mode 100644 index 0000000..d1c0f53 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-BoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-ExtraBold.ttf b/Assets/Fonts/Inter/static/Inter_24pt-ExtraBold.ttf Binary files differnew file mode 100644 index 0000000..b775c08 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-ExtraBold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-ExtraBoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-ExtraBoldItalic.ttf Binary files differnew file mode 100644 index 0000000..3461a92 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-ExtraBoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-ExtraLight.ttf b/Assets/Fonts/Inter/static/Inter_24pt-ExtraLight.ttf Binary files differnew file mode 100644 index 0000000..2ec6ca3 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-ExtraLight.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-ExtraLightItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-ExtraLightItalic.ttf Binary files differnew file mode 100644 index 0000000..c634a5d --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-ExtraLightItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Italic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Italic.ttf Binary files differnew file mode 100644 index 0000000..1048b07 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Italic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Light.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Light.ttf Binary files differnew file mode 100644 index 0000000..1a2a6f2 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Light.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-LightItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-LightItalic.ttf Binary files differnew file mode 100644 index 0000000..ded5a75 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-LightItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Medium.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Medium.ttf Binary files differnew file mode 100644 index 0000000..5c88739 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Medium.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-MediumItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-MediumItalic.ttf Binary files differnew file mode 100644 index 0000000..be091b1 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-MediumItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Regular.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Regular.ttf Binary files differnew file mode 100644 index 0000000..6b088a7 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Regular.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-SemiBold.ttf b/Assets/Fonts/Inter/static/Inter_24pt-SemiBold.ttf Binary files differnew file mode 100644 index 0000000..ceb8576 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-SemiBold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-SemiBoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-SemiBoldItalic.ttf Binary files differnew file mode 100644 index 0000000..6921df2 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-SemiBoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-Thin.ttf b/Assets/Fonts/Inter/static/Inter_24pt-Thin.ttf Binary files differnew file mode 100644 index 0000000..3505b35 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-Thin.ttf diff --git a/Assets/Fonts/Inter/static/Inter_24pt-ThinItalic.ttf b/Assets/Fonts/Inter/static/Inter_24pt-ThinItalic.ttf Binary files differnew file mode 100644 index 0000000..a3e6feb --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_24pt-ThinItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Black.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Black.ttf Binary files differnew file mode 100644 index 0000000..66a252f --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Black.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-BlackItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-BlackItalic.ttf Binary files differnew file mode 100644 index 0000000..3c8fdf9 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-BlackItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Bold.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Bold.ttf Binary files differnew file mode 100644 index 0000000..d17828b --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Bold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-BoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-BoldItalic.ttf Binary files differnew file mode 100644 index 0000000..6fce50a --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-BoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-ExtraBold.ttf b/Assets/Fonts/Inter/static/Inter_28pt-ExtraBold.ttf Binary files differnew file mode 100644 index 0000000..6d87cae --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-ExtraBold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-ExtraBoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-ExtraBoldItalic.ttf Binary files differnew file mode 100644 index 0000000..1a56735 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-ExtraBoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-ExtraLight.ttf b/Assets/Fonts/Inter/static/Inter_28pt-ExtraLight.ttf Binary files differnew file mode 100644 index 0000000..d42b3f5 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-ExtraLight.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-ExtraLightItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-ExtraLightItalic.ttf Binary files differnew file mode 100644 index 0000000..90e2f20 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-ExtraLightItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Italic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Italic.ttf Binary files differnew file mode 100644 index 0000000..c2a143a --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Italic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Light.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Light.ttf Binary files differnew file mode 100644 index 0000000..5eeff3a --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Light.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-LightItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-LightItalic.ttf Binary files differnew file mode 100644 index 0000000..6b90b76 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-LightItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Medium.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Medium.ttf Binary files differnew file mode 100644 index 0000000..00120fe --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Medium.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-MediumItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-MediumItalic.ttf Binary files differnew file mode 100644 index 0000000..7481e7b --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-MediumItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Regular.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Regular.ttf Binary files differnew file mode 100644 index 0000000..855b6f4 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Regular.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-SemiBold.ttf b/Assets/Fonts/Inter/static/Inter_28pt-SemiBold.ttf Binary files differnew file mode 100644 index 0000000..8b84efc --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-SemiBold.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-SemiBoldItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-SemiBoldItalic.ttf Binary files differnew file mode 100644 index 0000000..2e22c5a --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-SemiBoldItalic.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-Thin.ttf b/Assets/Fonts/Inter/static/Inter_28pt-Thin.ttf Binary files differnew file mode 100644 index 0000000..94e6108 --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-Thin.ttf diff --git a/Assets/Fonts/Inter/static/Inter_28pt-ThinItalic.ttf b/Assets/Fonts/Inter/static/Inter_28pt-ThinItalic.ttf Binary files differnew file mode 100644 index 0000000..d3d44cd --- /dev/null +++ b/Assets/Fonts/Inter/static/Inter_28pt-ThinItalic.ttf diff --git a/Assets/Basic.glsl b/Assets/Shaders/Basic.glsl index f6016f7..f6016f7 100644 --- a/Assets/Basic.glsl +++ b/Assets/Shaders/Basic.glsl diff --git a/Assets/Compute.glsl b/Assets/Shaders/Compute.glsl index 9a36a84..9a36a84 100644 --- a/Assets/Compute.glsl +++ b/Assets/Shaders/Compute.glsl diff --git a/Assets/ImageProcessing.glsl b/Assets/Shaders/ImageProcessing.glsl index 3a05425..3a05425 100644 --- a/Assets/ImageProcessing.glsl +++ b/Assets/Shaders/ImageProcessing.glsl diff --git a/Assets/ParticleSystem.glsl b/Assets/Shaders/ParticleSystem.glsl index d40726d..d40726d 100644 --- a/Assets/ParticleSystem.glsl +++ b/Assets/Shaders/ParticleSystem.glsl diff --git a/Assets/TextureProcessor.glsl b/Assets/Shaders/TextureProcessor.glsl index a234ac8..a234ac8 100644 --- a/Assets/TextureProcessor.glsl +++ b/Assets/Shaders/TextureProcessor.glsl diff --git a/Assets/Textured.glsl b/Assets/Shaders/Textured.glsl index ad135fe..ad135fe 100644 --- a/Assets/Textured.glsl +++ b/Assets/Shaders/Textured.glsl diff --git a/premake5.lua b/premake5.lua index b76f1f4..12c6008 100644 --- a/premake5.lua +++ b/premake5.lua @@ -268,7 +268,11 @@ project "Donut" "src/**.cpp", "Vendor/imgui/backends/imgui_impl_glfw.cpp", - "Vendor/imgui/backends/imgui_impl_opengl3.cpp" + "Vendor/imgui/backends/imgui_impl_opengl3.cpp", + + "Assets/Fonts/Inter/static/Inter_18pt-Regular.ttf", + "Assets/Fonts/Inter/static/Inter_18pt-Bold.ttf", + "Assets/Fonts/Inter/static/Inter_18pt-Light.ttf" } includedirs diff --git a/src/Core/Window.cpp b/src/Core/Window.cpp index d60ebc9..f6f1d4e 100644 --- a/src/Core/Window.cpp +++ b/src/Core/Window.cpp @@ -1,3 +1,4 @@ +#include <glad/glad.h> #include "Window.h" #include <cstdint> @@ -118,7 +119,8 @@ namespace Donut io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; - ImGui::StyleColorsDark(); + SetupImGuiFonts(); + ApplyImGuiTheme(); ImGuiStyle& style = ImGui::GetStyle(); if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) @@ -133,6 +135,124 @@ namespace Donut DONUT_INFO("ImGUI initialized successfully"); } + void Window::SetupImGuiFonts() + { + ImGuiIO& io = ImGui::GetIO(); + io.Fonts->Clear(); + + m_MainFont = io.Fonts->AddFontFromFileTTF("Assets/Fonts/Inter/static/Inter_18pt-Regular.ttf", 16.0f); + if (!m_MainFont) + { + DONUT_WARN("Failed to load Inter font, falling back to default"); + m_MainFont = io.Fonts->AddFontDefault(); + } + else + DONUT_INFO("Successfully loaded Inter font"); + + m_LargeFont = io.Fonts->AddFontFromFileTTF("Assets/Fonts/Inter/static/Inter_18pt-Bold.ttf", 20.0f); + if (!m_LargeFont) + m_LargeFont = m_MainFont; + + m_SmallFont = io.Fonts->AddFontFromFileTTF("Assets/Fonts/Inter/static/Inter_18pt-Light.ttf", 12.0f); + if (!m_SmallFont) + m_SmallFont = m_MainFont; + + io.FontDefault = m_MainFont; + DONUT_INFO("ImGUI fonts loaded successfully"); + } + + void Window::ApplyImGuiTheme() + { + ImGuiStyle& style = ImGui::GetStyle(); + ImVec4* colors = style.Colors; + + colors[ImGuiCol_Text] = ImVec4(0.95f, 0.95f, 0.95f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.13f, 0.14f, 0.15f, 1.00f); + colors[ImGuiCol_ChildBg] = ImVec4(0.13f, 0.14f, 0.15f, 1.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.13f, 0.14f, 0.15f, 1.00f); + colors[ImGuiCol_Border] = ImVec4(0.25f, 0.25f, 0.26f, 0.54f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.25f, 0.25f, 0.26f, 1.00f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.38f, 0.38f, 0.39f, 1.00f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.67f, 0.67f, 0.67f, 0.39f); + colors[ImGuiCol_TitleBg] = ImVec4(0.08f, 0.08f, 0.09f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.08f, 0.08f, 0.09f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.11f, 0.64f, 0.92f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.11f, 0.64f, 0.92f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.08f, 0.50f, 0.72f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.25f, 0.25f, 0.26f, 1.00f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.38f, 0.38f, 0.39f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.67f, 0.67f, 0.67f, 0.39f); + colors[ImGuiCol_Header] = ImVec4(0.22f, 0.22f, 0.22f, 1.00f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.25f, 0.25f, 0.26f, 1.00f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.67f, 0.67f, 0.67f, 0.39f); + colors[ImGuiCol_Separator] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.41f, 0.42f, 0.44f, 1.00f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.42f, 0.42f, 0.44f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.29f, 0.30f, 0.31f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImVec4(0.08f, 0.08f, 0.09f, 0.83f); + colors[ImGuiCol_TabHovered] = ImVec4(0.33f, 0.34f, 0.36f, 0.83f); + colors[ImGuiCol_TabActive] = ImVec4(0.23f, 0.23f, 0.24f, 1.00f); + colors[ImGuiCol_TabUnfocused] = ImVec4(0.08f, 0.08f, 0.09f, 0.97f); + colors[ImGuiCol_TabUnfocusedActive] = ImVec4(0.13f, 0.14f, 0.15f, 1.00f); + colors[ImGuiCol_DockingPreview] = ImVec4(0.26f, 0.59f, 0.98f, 0.70f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(0.11f, 0.64f, 0.92f, 1.00f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); + + style.WindowPadding = ImVec2(8, 8); + style.FramePadding = ImVec2(5, 2); + style.CellPadding = ImVec2(6, 4); + style.ItemSpacing = ImVec2(6, 4); + style.ItemInnerSpacing = ImVec2(4, 4); + style.IndentSpacing = 21; + style.ScrollbarSize = 14; + style.GrabMinSize = 10; + + style.WindowBorderSize = 1; + style.ChildBorderSize = 1; + style.PopupBorderSize = 1; + style.FrameBorderSize = 0; + style.TabBorderSize = 0; + + style.WindowRounding = 7; + style.ChildRounding = 4; + style.FrameRounding = 3; + style.PopupRounding = 4; + style.ScrollbarRounding = 9; + style.GrabRounding = 3; + style.TabRounding = 4; + + style.WindowTitleAlign = ImVec2(0.5f, 0.5f); + style.ButtonTextAlign = ImVec2(0.5f, 0.5f); + style.SelectableTextAlign = ImVec2(0.0f, 0.0f); + + style.DisplaySafeAreaPadding = ImVec2(3, 3); + + style.Alpha = 1.0f; + style.DisabledAlpha = 0.6f; + + ImGuiIO& io = ImGui::GetIO(); + io.FontGlobalScale = 1.0f; + } + void Window::ShutdownImGui() { ImGui_ImplOpenGL3_Shutdown(); diff --git a/src/Core/Window.h b/src/Core/Window.h index 26df099..3afd52f 100644 --- a/src/Core/Window.h +++ b/src/Core/Window.h @@ -4,6 +4,8 @@ #include "Log.h" #include <GLFW/glfw3.h> +#include <imgui.h> + #include <string> namespace Donut @@ -42,6 +44,9 @@ namespace Donut private: void Init(); void Shutdown(); + + void SetupImGuiFonts(); + void ApplyImGuiTheme(); void ShutdownImGui(); static void GLFWErrorCallback(int error, const char* description); @@ -64,5 +69,9 @@ namespace Donut bool m_IsClosed; bool m_CursorLocked = false; bool m_CursorVisible = true; + + ImFont* m_MainFont = nullptr; + ImFont* m_SmallFont = nullptr; + ImFont* m_LargeFont = nullptr; }; }
\ No newline at end of file diff --git a/src/States/ConfigState.cpp b/src/States/ConfigState.cpp index 9f57840..316038e 100644 --- a/src/States/ConfigState.cpp +++ b/src/States/ConfigState.cpp @@ -38,4 +38,4 @@ namespace Donut Application::Get().GetStateManager().SwitchToState("Simulation"); ImGui::End(); } -} +}; |
