Compare commits

..

37 commits

Author SHA1 Message Date
janis 4f95f3a928
fix font paths 2026-04-10 20:31:14 +02:00
janis 3f545cc74d
add script to fetch fonts from github:google/fonts 2026-04-10 20:29:34 +02:00
janis c731f79f81 switching to more generic DeviceObject impl 2026-04-10 01:47:34 +02:00
janis c73457b913 pipeline types 2026-04-08 12:34:57 +02:00
janis 6c18ddfa16 readme 2026-04-08 12:34:51 +02:00
janis 8db2d754f8 compile and VVL errors 2026-04-07 18:48:06 +02:00
janis 2446c75d87 pipeline cache with properly managed descruction 2026-04-05 01:14:35 +02:00
janis e4c0479757 fence 2026-04-05 00:06:23 +02:00
janis 7503a73a57 device handle experiment 2026-04-04 16:24:42 +02:00
janis cf7f5152bc clippy 2026-04-04 16:24:36 +02:00
janis 44ff4c4839 pipeline cache 2026-04-04 15:46:17 +02:00
janis cf3244197e warnings 2026-04-04 13:01:52 +02:00
janis 3c59cf022a fix swapchain/surface drop logic error 2026-04-04 00:43:50 +02:00
janis 60760ba67f almost done! 2026-04-04 00:28:43 +02:00
janis ac7e8889db remote slang copy 2026-04-03 18:44:46 +02:00
janis 26b48b6cfa warnings 2026-04-03 03:15:06 +02:00
janis b00b1b3151 fix egui ? 2026-04-03 03:13:51 +02:00
janis 297b79d347 debug name from bevy 2026-04-03 00:17:33 +02:00
janis 82d37247d8 image view type validation 2026-04-02 23:10:01 +02:00
janis 2f05c97bda format class 2026-04-02 17:10:42 +02:00
janis b0f6c7a1b3 yeah........ 2026-04-02 17:10:37 +02:00
janis d91ba8c1b7 buffers 2026-04-02 14:09:42 +02:00
janis 55d22e3164 image? alloc? bruh.. 2026-04-02 13:32:49 +02:00
janis f8907ca6ed more fence/semaphore refactor 2026-03-31 23:07:47 +02:00
janis ea1779a19e fence refactor 2026-03-31 21:40:15 +02:00
janis 4998b7e017 surface/swapchain refactor 2026-03-31 16:56:05 +02:00
janis 4d2dcafb7a more refactoring 2026-03-29 15:17:29 +02:00
janis 05bf7dd61f idk? pdev, queue refactor 2026-03-28 18:11:10 +01:00
janis 20f743d74b instance refactor 2026-03-26 23:18:02 +01:00
janis 41e4a2ed9c instance refactor 2026-03-26 13:04:27 +01:00
janis c1c69d5e54 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 fd1855dc73 bevy vulkan render crate 2025-09-20 15:27:47 +02:00
janis 760366a0e4 dependencies 2025-09-20 15:27:39 +02:00
janis fd4e92c69e a lot! 2025-09-20 15:27:21 +02:00
Janis cdb18da722 renderer: thread-local commandpools 2025-01-28 02:30:57 +01:00
Janis d5f9f7f0f0 untrack spirv shaders 2025-01-27 17:06:15 +01:00
Janis 8a7bfed29e font rendering test, ahash, F32 new type 2025-01-27 17:05:43 +01:00
47 changed files with 31 additions and 444 deletions

1
assets/fonts/.gitignore vendored Normal file
View file

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

View file

@ -1,93 +0,0 @@
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

@ -1,136 +0,0 @@
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.

View file

@ -1,93 +0,0 @@
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

@ -1,118 +0,0 @@
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.

28
assets/fonts/fetch.sh Executable file
View file

@ -0,0 +1,28 @@
#!/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,10 +16,8 @@ use crate::{
util::{self, F32, Rect2D},
};
const ROBOTO_BYTES: &[u8] =
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");
const ROBOTO_BYTES: &[u8] = include_bytes!("../../../assets/fonts/Roboto.ttf");
const NOTO_SANS_HAN_BYTES: &[u8] = include_bytes!("../../../assets/fonts/NotoSansSC.ttf");
def_monotonic_id!(pub FontId);