meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

795: Hosting Private Fonts on the Edge With Cloudflare

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 15 July 2024

⏱️ 24 minutes

🧾️ Download transcript

Summary

Scott and Wes dish out the intricacies of hosting private fonts using Cloudflare Pages. They explore the challenges of font security, the benefits of a font server, and the nuances of caching and whitelisting to keep your fonts secure and efficient. Show Notes 00:00 Welcome to Syntax! 01:53 Behind the Code: Brought to you by Sentry.io. 03:12 The problem with hosting fonts. Scott’s Fonts. 05:42 The solution, a font server with Cloudflare Pages. 09:37 Utilizing a Key Value Store. 10:53 Storing a whitelist. 13:42 Why not just use a bucket? Check out the code. 15:24 Should whitelisting be done in JavaScript or cores? 17:23 How do you cache to multiple origins? 18:15 Multiple URLs in an allow origin. 19:17 Font security and foundry challenges. 21:43 Moving Domains on Cloudflare. Check out the font Syntax uses! MD-IO. Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads Wes: X Instagram Tiktok LinkedIn Threads Scott: X Instagram Tiktok LinkedIn Threads Randy: X Instagram YouTube Threads

Transcript

Click on a timestamp to play from that location

0:00.0

Welcome to Syntax. On this Monday hasty treat, we're going to be talking about how we solved a problem that we had using some interesting technology.

0:10.0

We had some fonts in our application, and our app is open source as you know but these fonts are licensed and you've got to keep these licensed fonts secure.

0:19.4

So we built a miniature little font serving platform to help us serve fonts with a white list

0:26.9

across any of the sites that I'm using personally.

0:29.7

My name is Scott Tolensky, I'm a developer from Denver and with me as always is West Boss what's up West.

0:34.4

Hey not too much excited to be here. I'm up at the cottage now for a good chunk of the summer

0:40.9

which I'm pretty excited about so I got my cottage office

0:44.5

ready to rock yeah so if you hear beavers or something like that that's that's

0:49.9

probably just outside I got the windows open right now. You guys got lunes up there. Is that a thing?

0:55.3

You got lunes? Tons of lunes. Yeah, you're kidding. Is that a thing that we have? Our money is called the loony.

1:00.9

Like, yeah. Oh yeah, we got lots of it is actually it's the lunes are really

1:06.5

interesting because there's only one loon per kind of like area of the lake. So every summer you hope that like a loon stays in

1:16.4

your area right because they're they're like mean loons like if there's two loons in

1:20.9

the area they'll like spear each other's brains out.

1:25.1

Yeah, there's some gnar, if you ever want to go down a YouTube rabbit hole, like

1:28.9

search up like lunes being aggressive.

1:31.5

I love the sounds they make. They're fantastic. Yeah, we love,

1:35.0

apparently that sound is when they are stressed out. So every time we hear it

1:41.4

we're like, oh no and it's usually when there's like a

1:43.4

C deu or we just had Canada today yesterday, they hate the fireworks, but every

1:48.2

year we see like two little loon babies just trailing the mom and we're happy to see it.

1:53.0

Wow, you know what else I'm happy to see?

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.