Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How do I add a new font in TurboWarp mod?
- The_Mad_Punter
-
Scratcher
100+ posts
How do I add a new font in TurboWarp mod?
Please help me i have no knowledge of scratch-paint
- jellyfishfisher56
-
Scratcher
500+ posts
How do I add a new font in TurboWarp mod?
You will have to modify the JavaScript. You will have to import the font, then add an option. Ask me if you want a quick guide. :)
- ajskateboarder
-
Scratcher
1000+ posts
How do I add a new font in TurboWarp mod?
You will have to modify the JavaScript. You will have to import the font, then add an option. Ask me if you want a quick guide. :)I think they knew that.
The logic for adding text is in src/containers/text-mode.jsx and you can add more font options in src/lib/fonts.js
- WojtekGame
-
Scratcher
1000+ posts
How do I add a new font in TurboWarp mod?
you can add, it's made like scratch-gui, but i only know how to add to the toolbar, not usage 

- The_Mad_Punter
-
Scratcher
100+ posts
How do I add a new font in TurboWarp mod?
How do i import a custom font from a folder?
- WojtekGame
-
Scratcher
1000+ posts
How do I add a new font in TurboWarp mod?
How do i import a custom font from a folder?importing the font from path? or install it.
- The_Mad_Punter
-
Scratcher
100+ posts
How do I add a new font in TurboWarp mod?
can i have css for thatHow do i import a custom font from a folder?importing the font from path? or install it.
- lolecksdeehaha
-
Scratcher
1000+ posts
How do I add a new font in TurboWarp mod?
How do i import a custom font from a folder?Uh, hm… You're probably gonna have to add a font import in one of the CSS files (located in /src/css). Then, you can write it by specifying the font name you imported it as and a fallback (for example, “manrope, sans-serif” if you imported "manrope". (good font))
EDIT: Nevermind, I don't know where to put the CSS, but /src/css is definitely not the right place.
Last edited by lolecksdeehaha (April 24, 2023 19:48:14)
- ajskateboarder
-
Scratcher
1000+ posts
How do I add a new font in TurboWarp mod?
How do i import a custom font from a folder?You can define a font face in src/components/font-dropdown/font-dropdown.css. I think font files can be placed anywhere as long as you import them correctly, but they should be placed in the same directory as the linked CSS file.
You should also modify src/components/font-dropdown/font-dropdown.jsx to include the font dropdown item.
Last edited by ajskateboarder (April 24, 2023 20:02:59)
- Discussion Forums
- » Advanced Topics
-
» How do I add a new font in TurboWarp mod?