What the font?!?! @TheCodingTrain
What the font?!?!  @TheCodingTrain
Uploaded March 2026 | Updated November 2026, 5 days ago
Let's explore new typography features in p5.js 2.0! In this video, I cover how to work with variable fonts, convert text to 3D models with textModel(), extract contours with textContours(), and control the detail of your typography with sampleFactor and simplifyThreshold. Code: thecodingtrain.com/tracks/p5js-2.0/p5js-2.0/typography

πŸš€ Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-what-the-font

p5.js Web Editor Sketches:
πŸ•ΉοΈ Variable Font Weights: editor.p5js.org/codingtrain/sketches/9SZYb2vX3
πŸ•ΉοΈ textContours(): editor.p5js.org/codingtrain/sketches/ffDf3LmKi
πŸ•ΉοΈ textModel() - 3D Text: editor.p5js.org/codingtrain/sketches/Z4DkmlvyM
πŸ•ΉοΈ Coding Challenge 59 - p5.js 2.0: editor.p5js.org/codingtrain/sketches/cetWD9rvY
πŸ•ΉοΈ One Letter, Two Contours: editor.p5js.org/codingtrain/sketches/2xr1TAmXK
πŸ•ΉοΈ sampleFactor Diagram: editor.p5js.org/codingtrain/sketches/c23YgfIhC
πŸ•ΉοΈ simplifyThreshold Demo: editor.p5js.org/codingtrain/sketches/9_CnA7lrl

πŸŽ₯ Previous: youtu.be/25omXt_OjD4
πŸŽ₯ Next: youtu.be/1KqQeqZ3R9Y

References:
πŸ“– p5.js 2.0: You Are Here & How to Contribute!: discourse.processing.org/t/dev-updates-p5-js-2-0-you-are-here-how-to-contribute/46130
πŸ”€ Google Fonts: fonts.google.com
🐞 Typography questions and possible bugs (Issue #8177): github.com/processing/p5.js/issues/8177
🐞 Reference errors: textToContours() and textToModel() (Issue #8623): github.com/processing/p5.js/issues/8623
πŸ“– loadFont() Reference: beta.p5js.org/reference/p5/loadFont
πŸ“– textWeight() Reference: beta.p5js.org/reference/p5/textWeight
πŸ“– textContours() Reference: beta.p5js.org/reference/p5/textContours
πŸ“– textModel() Reference: beta.p5js.org/reference/p5/textModel

Videos:
πŸŽ₯ youtu.be/1KqQeqZ3R9Y
πŸš‚ youtu.be/0Ad5Frf8NBM
πŸš‚ youtu.be/25omXt_OjD4
πŸš‚ youtu.be/o9sgjuh-CBM
🎯 youtu.be/4hA7G3gup-4

Related Coding Challenges:
πŸš‚ youtu.be/4hA7G3gup-4

Timestamps:
0:00 Welcome!
0:49 Finding Fonts (Google Fonts)
1:01 Loading Fonts with Async/Await
2:30 Variable Fonts
3:17 textWeight()
4:03 Animated Text Weight
4:31 Coding Challenge 59 - Steering Behaviors
5:15 textContours() Introduction
6:00 sampleFactor and simplifyThreshold
9:00 sampleFactor Explained
12:00 simplifyThreshold Explained
14:00 Updating Challenge 59 to p5.js 2.0
15:00 Angle Property of Contours
17:00 textModel() for 3D Text
19:00 Extrude Option
20:11 Goodbye!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: thecodingtrain.com
πŸ‘Ύ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
πŸ’– Membership: youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

πŸŽ₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new

#typography #fonts #text #p5js2 #variablefonts #3dtext #textcontours #p5js #javascript
What the font?!?!New Full Processing Course Announcement (and other updates)Coding Challenge 184: Collisions Without a Physics Library!2.2: Variables in p5.js (Define Your Own) - p5.js TutorialCoding Train Live!2021 Choo Choo!BΓ©zier curves (Coding Challenge 163)Playing YOUR Versions of the Apple ][ Snake Game! - Showcase 1 #creativecoding #programming #shortsRobot Controllers Part 1: PID (with Dr. Christian Hubicki)Processing Foundation Holiday Telethon 2020The Coding Train Musical Multiverse! #programming #music #shorts#genuary15 physics library!
The Coding Train |

What the font?!?!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER