Discuss Scratch

kccuber
Scratcher
1000+ posts

Where are the font files stored?

So recently I have been thinking that the Serif font in the paint editor is well, a bit mixed up. I think it was meant to be a different font but since serif shows up as Times New Roman I think this was a mistake. The dropdown also shows a different serif font. Where are the font files stored so I can see if i'm correct?


Made using Nord Theme & Inkscape
SmartCat3
Scratcher
500+ posts

Where are the font files stored?

The font files are not stored in the sb3 file, they are stored on your computer. As far as I know they are stored in CWindows/Fonts on windows

Add your projects here!: https://scratch.mit.edu/studios/30150978/
hello there
Press Ctrl+Shift+Down arrow to see more















Please don't invite me to studios just to advertise your project


(((((((((=^.^= :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) ::obsolete stack) :: obsolete stack
(((((((((=^.^= :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) ::variables stack) :: variables stack
(((((((((=^.^= :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) ::events stack) :: events stack
(((((((((=^.^= :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) ::pen stack) :: pen stack
(((((((((=^.^= :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) ::motion stack) :: motion stack
(((((((((=^.^= :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) ::looks stack) :: looks stack


Comment
500posts
on my profile if you see this
kccuber
Scratcher
1000+ posts

Where are the font files stored?

SmartCat3 wrote:

The font files are not stored in the sb3 file, they are stored on your computer. As far as I know they are stored in CWindows/Fonts on windows
omg i was talking about the fonts in the paint editor, they definitely arent stored on my computer!


Made using Nord Theme & Inkscape
SmartCat3
Scratcher
500+ posts

Where are the font files stored?

They are just fonts in CSS
like this:
font-family: sans-serif;

Add your projects here!: https://scratch.mit.edu/studios/30150978/
hello there
Press Ctrl+Shift+Down arrow to see more















Please don't invite me to studios just to advertise your project


(((((((((=^.^= :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) :: stack obsolete) ::obsolete stack) :: obsolete stack
(((((((((=^.^= :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) :: stack variables) ::variables stack) :: variables stack
(((((((((=^.^= :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) :: stack events) ::events stack) :: events stack
(((((((((=^.^= :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) :: stack pen) ::pen stack) :: pen stack
(((((((((=^.^= :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) :: stack motion) ::motion stack) :: motion stack
(((((((((=^.^= :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) :: stack looks) ::looks stack) :: looks stack


Comment
500posts
on my profile if you see this
Maximouse
Scratcher
1000+ posts

Where are the font files stored?

It's meant to be Source Serif Pro, but because of a bug the browser's default font is used. I'm trying to find the code that causes this.


This is Maximouse's signature. Learn more about signatures.
kccuber
Scratcher
1000+ posts

Where are the font files stored?

Maximouse wrote:

It's meant to be Source Serif Pro, but because of a bug the browser's default font is used. I'm trying to find the code that causes this.
Ah, thought so! Thanks. Perhaps they should rename the file to Modern Serif.


Made using Nord Theme & Inkscape
Maximouse
Scratcher
1000+ posts

Where are the font files stored?

kccuber wrote:

SmartCat3 wrote:

The font files are not stored in the sb3 file, they are stored on your computer. As far as I know they are stored in CWindows/Fonts on windows
omg i was talking about the fonts in the paint editor, they definitely arent stored on my computer!
You're right: they're stored as base64 data URIs in a stylesheet.


This is Maximouse's signature. Learn more about signatures.
Maximouse
Scratcher
1000+ posts

Where are the font files stored?

I think I found the cause: the word “Serif” doesn't have quotes here, so the browser interprets it as a keyword and not as a font name.


This is Maximouse's signature. Learn more about signatures.
CST1229
Scratcher
1000+ posts

Where are the font files stored?

Also, for anyone wondering, the source font files themselves are stored at scratch-render-fonts.

This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.

Jeffalo still being goated
RIP assets image hosting. 2013?-2023


han614698
Scratcher
1000+ posts

Where are the font files stored?

GitHub.

<Scratch Wikian | Forum Helper | 6300+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




Maximouse
Scratcher
1000+ posts

Where are the font files stored?

han614698 wrote:

GitHub.
That's not where they're loaded from.


This is Maximouse's signature. Learn more about signatures.
han614698
Scratcher
1000+ posts

Where are the font files stored?

Maximouse wrote:

han614698 wrote:

GitHub.
That's not where they're loaded from.
https://github.com/LLK/scratch-render-fonts/tree/master/src

<Scratch Wikian | Forum Helper | 6300+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




Maximouse
Scratcher
1000+ posts

Where are the font files stored?

han614698 wrote:

Maximouse wrote:

han614698 wrote:

GitHub.
That's not where they're loaded from.
https://github.com/LLK/scratch-render-fonts/tree/master/src
Scratch doesn't actually use those files – they're converted to base64 data URIs by webpack.


This is Maximouse's signature. Learn more about signatures.
kccuber
Scratcher
1000+ posts

Where are the font files stored?

Maximouse wrote:

I think I found the cause: the word “Serif” doesn't have quotes here, so the browser interprets it as a keyword and not as a font name.
“oops!”


Made using Nord Theme & Inkscape

Powered by DjangoBB