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?
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
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!
SmartCat3
Scratcher
500+ posts

Where are the font files stored?

They are just fonts in CSS
like this:
font-family: sans-serif;
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.
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.
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.
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.
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.
han614698
Scratcher
1000+ posts

Where are the font files stored?

GitHub.
Maximouse
Scratcher
1000+ posts

Where are the font files stored?

han614698 wrote:

GitHub.
That's not where they're loaded from.
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
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.
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!”

Powered by DjangoBB