Discuss Scratch
- mingo-gag
-
1000+ posts
Custom fonts
Bringing this topic up again and Support Because custom fonts are good to add on Scratch.
- HBATest
-
60 posts
Custom fonts
Support!
You can just have a feature where the website or project downloads the custom font on your computer.
You can just have a feature where the website or project downloads the custom font on your computer.
- fungifungus
-
51 posts
Custom fonts
Will the font file be part of the project? If so, the user should be able to pick a certain character set so the project isn't as big.
- BigNate469
-
1000+ posts
Custom fonts
How about just using whatever characters that the person uses? Will the font file be part of the project? If so, the user should be able to pick a certain character set so the project isn't as big.
I will also point out that storing fonts shouldn't really be a problem in bitmap mode, as text there is rasterized into pixels anyways, and in vector you can know exactly what the user has written (as it's stored as plain text inside the .svg internally), so just storing the characters you use shouldn't be too hard.
- fungifungus
-
51 posts
Custom fonts
But what if the project is saved and the user adds more text with unique characters? I think by default, it should include all the characters that wont return “?” when you put it in a project title, and maybe throw out a few impractical onesHow about just using whatever characters that the person uses? Will the font file be part of the project? If so, the user should be able to pick a certain character set so the project isn't as big.
I will also point out that storing fonts shouldn't really be a problem in bitmap mode, as text there is rasterized into pixels anyways, and in vector you can know exactly what the user has written (as it's stored as plain text inside the .svg internally), so just storing the characters you use shouldn't be too hard.
- jen6C
-
100+ posts
Custom fonts
“We used to have that in 1.4 - but it did cause a lot of problems. Projects that looked great on one computer would look not-so-great on another computer that didn't have the same set of fonts. Trying to capture the entire font definition in the project would take care of that issue but make the projects much larger. So we decided to go with a few standard fonts - but you can still bring in costume text by either importing the letters as images or vector objects. More work for you - but it guarantees that it will work on all computers.”
- Paddle2See
The quote above was posted more than a decade ago. I think it’s time to close this topic.
- Paddle2See
The quote above was posted more than a decade ago. I think it’s time to close this topic.
Last edited by jen6C (April 16, 2025 15:38:39)
- Yellowsheep43
-
1000+ posts
Custom fonts
I've been taking a Web Programming course and I have a solution for this. Projects that looked great on one computer would look not-so-great on another computer that didn't have the same set of fonts.
In addition to the standard fonts, there's also an option to use a custom font. But there will be a warning that custom fonts may not work on all devices, and scratchers are encouraged to test with both the default and the custom font. Unsupported fonts default to Sans Serif.
- unknown2467
-
100+ posts
Custom fonts
Suggestions can stay open as long as the suggestion hasn't been added or rejected. The quote above was posted more than a decade ago. I think it’s time to close this topic.or is created by someone who doesn't know how to create a suggestion topic
Last edited by unknown2467 (April 16, 2025 17:15:01)
- kkidslogin
-
1000+ posts
Custom fonts
(#269)It's the modern era. Now we can just do this:I've been taking a Web Programming course and I have a solution for this. Projects that looked great on one computer would look not-so-great on another computer that didn't have the same set of fonts.
In addition to the standard fonts, there's also an option to use a custom font. But there will be a warning that custom fonts may not work on all devices, and scratchers are encouraged to test with both the default and the custom font. Unsupported fonts default to Sans Serif.
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap" rel="stylesheet">
(#264)See my above comment. In addition, however, if we did store the font in the project, know that fonts are a lot smaller relative to the project than the 1.4 days.How about just using whatever characters that the person uses? Will the font file be part of the project? If so, the user should be able to pick a certain character set so the project isn't as big.
I will also point out that storing fonts shouldn't really be a problem in bitmap mode, as text there is rasterized into pixels anyways, and in vector you can know exactly what the user has written (as it's stored as plain text inside the .svg internally), so just storing the characters you use shouldn't be too hard.
For comparison:
- Roboto TTF file: 458,000 bytes
- Large PNG file: 1,870,000 bytes
- Usual MP3 song: ~6,000,000 bytes
- Individual asset limit: 10,000,000 bytes
- ipaygoodies32222
-
8 posts
Custom fonts
Font effect trick
when green flag clicked
set [font v] effect to [Arial Black]