Compare commits

..

36 commits

Author SHA1 Message Date
janis 3bb56c5bb0
remove unneeded fonts 2026-04-10 02:01:18 +02:00
janis 969a1c411c
switching to more generic DeviceObject impl 2026-04-10 01:47:34 +02:00
janis 52f1f9a976
pipeline types 2026-04-08 12:34:57 +02:00
janis 9d50e339ca
readme 2026-04-08 12:34:51 +02:00
janis c948dd50ab
compile and VVL errors 2026-04-07 18:48:06 +02:00
janis 7c3f7120b0
pipeline cache with properly managed descruction 2026-04-05 01:14:35 +02:00
janis 260a61fb11
fence 2026-04-05 00:06:23 +02:00
janis 446a50bbc1
device handle experiment 2026-04-04 16:24:42 +02:00
janis 10b4d8a929
clippy 2026-04-04 16:24:36 +02:00
janis 1f4a0abf21
pipeline cache 2026-04-04 15:46:17 +02:00
janis 0529ce0a3c
warnings 2026-04-04 13:01:52 +02:00
janis b2c4f7d5a3
fix swapchain/surface drop logic error 2026-04-04 00:43:50 +02:00
janis 8238f5bff0
almost done! 2026-04-04 00:28:43 +02:00
janis 465c6294e6
remote slang copy 2026-04-03 18:44:46 +02:00
janis c0d807b163
warnings 2026-04-03 03:15:06 +02:00
janis db27c98927
fix egui ? 2026-04-03 03:13:51 +02:00
janis 1c55a05215
debug name from bevy 2026-04-03 00:17:33 +02:00
janis 377b10cda2
image view type validation 2026-04-02 23:10:01 +02:00
janis 149f3e121c
format class 2026-04-02 17:10:42 +02:00
janis 1149e5c7fc
yeah........ 2026-04-02 17:10:37 +02:00
janis 294ad3dbbd
buffers 2026-04-02 14:09:42 +02:00
janis f4a20fde44
image? alloc? bruh.. 2026-04-02 13:32:49 +02:00
janis f9371f8b20
more fence/semaphore refactor 2026-03-31 23:07:47 +02:00
janis 9620f92f0b
fence refactor 2026-03-31 21:40:15 +02:00
janis 6a3297e8cc
surface/swapchain refactor 2026-03-31 16:56:05 +02:00
janis ed5feb907f
more refactoring 2026-03-29 15:17:29 +02:00
janis 9dcd9e546b
idk? pdev, queue refactor 2026-03-28 18:11:10 +01:00
janis 482d0ab860
instance refactor 2026-03-26 23:18:02 +01:00
janis 95c94ecc9b
instance refactor 2026-03-26 13:04:27 +01:00
janis 4c2663df8f
idk? like.. updating my understanding of the code base after half a year of not touching it 2026-03-26 12:08:48 +01:00
janis 56c0b1cb7c
bevy vulkan render crate 2025-09-20 15:27:47 +02:00
janis 0463a16479
dependencies 2025-09-20 15:27:39 +02:00
janis b94914d6f0
a lot! 2025-09-20 15:27:21 +02:00
Janis 2b09a2c4f8 renderer: thread-local commandpools 2025-01-28 02:30:57 +01:00
Janis 4cbf1f053b untrack spirv shaders 2025-01-27 17:06:15 +01:00
Janis be9f00f63f font rendering test, ahash, F32 new type 2025-01-27 17:05:43 +01:00
47 changed files with 444 additions and 31 deletions

View file

@ -1 +0,0 @@
*.ttf

View file

@ -0,0 +1,93 @@
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)
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.

View file

@ -0,0 +1,136 @@
Noto Sans Variable Font
=======================
This download contains Noto Sans as both variable fonts and static fonts.
Noto Sans is a variable font with these axes:
wdth
wght
This means all the styles are contained in these files:
Noto_Sans/NotoSans-VariableFont_wdth,wght.ttf
Noto_Sans/NotoSans-Italic-VariableFont_wdth,wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Noto Sans:
Noto_Sans/static/NotoSans_ExtraCondensed-Thin.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-ExtraLight.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-Light.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-Regular.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-Medium.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-SemiBold.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-Bold.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-ExtraBold.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-Black.ttf
Noto_Sans/static/NotoSans_Condensed-Thin.ttf
Noto_Sans/static/NotoSans_Condensed-ExtraLight.ttf
Noto_Sans/static/NotoSans_Condensed-Light.ttf
Noto_Sans/static/NotoSans_Condensed-Regular.ttf
Noto_Sans/static/NotoSans_Condensed-Medium.ttf
Noto_Sans/static/NotoSans_Condensed-SemiBold.ttf
Noto_Sans/static/NotoSans_Condensed-Bold.ttf
Noto_Sans/static/NotoSans_Condensed-ExtraBold.ttf
Noto_Sans/static/NotoSans_Condensed-Black.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Thin.ttf
Noto_Sans/static/NotoSans_SemiCondensed-ExtraLight.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Light.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Regular.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Medium.ttf
Noto_Sans/static/NotoSans_SemiCondensed-SemiBold.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Bold.ttf
Noto_Sans/static/NotoSans_SemiCondensed-ExtraBold.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Black.ttf
Noto_Sans/static/NotoSans-Thin.ttf
Noto_Sans/static/NotoSans-ExtraLight.ttf
Noto_Sans/static/NotoSans-Light.ttf
Noto_Sans/static/NotoSans-Regular.ttf
Noto_Sans/static/NotoSans-Medium.ttf
Noto_Sans/static/NotoSans-SemiBold.ttf
Noto_Sans/static/NotoSans-Bold.ttf
Noto_Sans/static/NotoSans-ExtraBold.ttf
Noto_Sans/static/NotoSans-Black.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-ThinItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-ExtraLightItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-LightItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-Italic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-MediumItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-SemiBoldItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-BoldItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-ExtraBoldItalic.ttf
Noto_Sans/static/NotoSans_ExtraCondensed-BlackItalic.ttf
Noto_Sans/static/NotoSans_Condensed-ThinItalic.ttf
Noto_Sans/static/NotoSans_Condensed-ExtraLightItalic.ttf
Noto_Sans/static/NotoSans_Condensed-LightItalic.ttf
Noto_Sans/static/NotoSans_Condensed-Italic.ttf
Noto_Sans/static/NotoSans_Condensed-MediumItalic.ttf
Noto_Sans/static/NotoSans_Condensed-SemiBoldItalic.ttf
Noto_Sans/static/NotoSans_Condensed-BoldItalic.ttf
Noto_Sans/static/NotoSans_Condensed-ExtraBoldItalic.ttf
Noto_Sans/static/NotoSans_Condensed-BlackItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-ThinItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-ExtraLightItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-LightItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-Italic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-MediumItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-SemiBoldItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-BoldItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-ExtraBoldItalic.ttf
Noto_Sans/static/NotoSans_SemiCondensed-BlackItalic.ttf
Noto_Sans/static/NotoSans-ThinItalic.ttf
Noto_Sans/static/NotoSans-ExtraLightItalic.ttf
Noto_Sans/static/NotoSans-LightItalic.ttf
Noto_Sans/static/NotoSans-Italic.ttf
Noto_Sans/static/NotoSans-MediumItalic.ttf
Noto_Sans/static/NotoSans-SemiBoldItalic.ttf
Noto_Sans/static/NotoSans-BoldItalic.ttf
Noto_Sans/static/NotoSans-ExtraBoldItalic.ttf
Noto_Sans/static/NotoSans-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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,93 @@
Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic)
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.

View file

@ -0,0 +1,118 @@
Roboto Variable Font
====================
This download contains Roboto as both variable fonts and static fonts.
Roboto is a variable font with these axes:
wdth
wght
This means all the styles are contained in these files:
Roboto/Roboto-VariableFont_wdth,wght.ttf
Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Roboto:
Roboto/static/Roboto_Condensed-Thin.ttf
Roboto/static/Roboto_Condensed-ExtraLight.ttf
Roboto/static/Roboto_Condensed-Light.ttf
Roboto/static/Roboto_Condensed-Regular.ttf
Roboto/static/Roboto_Condensed-Medium.ttf
Roboto/static/Roboto_Condensed-SemiBold.ttf
Roboto/static/Roboto_Condensed-Bold.ttf
Roboto/static/Roboto_Condensed-ExtraBold.ttf
Roboto/static/Roboto_Condensed-Black.ttf
Roboto/static/Roboto_SemiCondensed-Thin.ttf
Roboto/static/Roboto_SemiCondensed-ExtraLight.ttf
Roboto/static/Roboto_SemiCondensed-Light.ttf
Roboto/static/Roboto_SemiCondensed-Regular.ttf
Roboto/static/Roboto_SemiCondensed-Medium.ttf
Roboto/static/Roboto_SemiCondensed-SemiBold.ttf
Roboto/static/Roboto_SemiCondensed-Bold.ttf
Roboto/static/Roboto_SemiCondensed-ExtraBold.ttf
Roboto/static/Roboto_SemiCondensed-Black.ttf
Roboto/static/Roboto-Thin.ttf
Roboto/static/Roboto-ExtraLight.ttf
Roboto/static/Roboto-Light.ttf
Roboto/static/Roboto-Regular.ttf
Roboto/static/Roboto-Medium.ttf
Roboto/static/Roboto-SemiBold.ttf
Roboto/static/Roboto-Bold.ttf
Roboto/static/Roboto-ExtraBold.ttf
Roboto/static/Roboto-Black.ttf
Roboto/static/Roboto_Condensed-ThinItalic.ttf
Roboto/static/Roboto_Condensed-ExtraLightItalic.ttf
Roboto/static/Roboto_Condensed-LightItalic.ttf
Roboto/static/Roboto_Condensed-Italic.ttf
Roboto/static/Roboto_Condensed-MediumItalic.ttf
Roboto/static/Roboto_Condensed-SemiBoldItalic.ttf
Roboto/static/Roboto_Condensed-BoldItalic.ttf
Roboto/static/Roboto_Condensed-ExtraBoldItalic.ttf
Roboto/static/Roboto_Condensed-BlackItalic.ttf
Roboto/static/Roboto_SemiCondensed-ThinItalic.ttf
Roboto/static/Roboto_SemiCondensed-ExtraLightItalic.ttf
Roboto/static/Roboto_SemiCondensed-LightItalic.ttf
Roboto/static/Roboto_SemiCondensed-Italic.ttf
Roboto/static/Roboto_SemiCondensed-MediumItalic.ttf
Roboto/static/Roboto_SemiCondensed-SemiBoldItalic.ttf
Roboto/static/Roboto_SemiCondensed-BoldItalic.ttf
Roboto/static/Roboto_SemiCondensed-ExtraBoldItalic.ttf
Roboto/static/Roboto_SemiCondensed-BlackItalic.ttf
Roboto/static/Roboto-ThinItalic.ttf
Roboto/static/Roboto-ExtraLightItalic.ttf
Roboto/static/Roboto-LightItalic.ttf
Roboto/static/Roboto-Italic.ttf
Roboto/static/Roboto-MediumItalic.ttf
Roboto/static/Roboto-SemiBoldItalic.ttf
Roboto/static/Roboto-BoldItalic.ttf
Roboto/static/Roboto-ExtraBoldItalic.ttf
Roboto/static/Roboto-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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,28 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
FORCE=0
if [[ "${1:-}" == "--force" ]]; then
FORCE=1
fi
BASE_URL="https://github.com/google/fonts/raw/refs/heads/main/"
declare -A FONTS=(
["Roboto.ttf"]="ofl/roboto/Roboto%5Bwdth,wght%5D.ttf"
["NotoSans.ttf"]="ofl/notosans/NotoSans%5Bwdth,wght%5D.ttf"
["NotoSansSC.ttf"]="ofl/notosanssc/NotoSansSC%5Bwdth,wght%5D.ttf"
)
for filename in "${!FONTS[@]}"; do
font_path="${FONTS[$filename]}"
url="${BASE_URL}${font_path}"
if [[ -f "$filename" && $FORCE -eq 0 ]]; then
echo "Skipping $filename (already exists)"
fi
echo "Fetching $filename from $url"
curl -L "$url" -o "$filename"
done

View file

@ -16,8 +16,10 @@ use crate::{
util::{self, F32, Rect2D}, util::{self, F32, Rect2D},
}; };
const ROBOTO_BYTES: &[u8] = include_bytes!("../../../assets/fonts/Roboto.ttf"); const ROBOTO_BYTES: &[u8] =
const NOTO_SANS_HAN_BYTES: &[u8] = include_bytes!("../../../assets/fonts/NotoSansSC.ttf"); include_bytes!("../../../assets/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf");
const NOTO_SANS_HAN_BYTES: &[u8] =
include_bytes!("../../../assets/fonts/Noto_Sans_SC/NotoSansSC-VariableFont_wght.ttf");
def_monotonic_id!(pub FontId); def_monotonic_id!(pub FontId);