Coding Adventure: Rendering Text
About
No channel description available.
Latest Posts
Video Description
This... is text! Let's figure out how to draw it. Starring: Bézier curves and (oh so many) floating point problems. Support my work (and get early access to new videos and source code) on Patreon or Nebula * Patreon: https://www.patreon.com/SebastianLague * Nebula: https://go.nebula.tv/sebastianlague Source code: * GitHub: https://github.com/SebLague/Text-Rendering Credits and References: * Fonts and music: https://github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/TextRendering * https://developer.apple.com/fonts/TrueType-Reference-Manual/ * https://www.microsoft.com/en-us/research/wp-content/uploads/2005/01/p1000-loop.pdf * https://wdobbie.com/post/gpu-text-rendering-with-vector-textures/ Chapters 0:00:00 Intro 0:01:58 The Font Directory 0:04:27 Loading Simple Glyphs 0:10:42 Bézier Basics 0:13:42 The Character Map 0:15:47 Implied Points 0:18:11 Compound Glyphs 0:20:25 Size and Spacing 0:21:27 Rendering Glyphs with Lots of Triangles 0:22:17 Optimized Curve Rendering (Loop-Blinn) 0:28:20 A Brief Look at SDF Rendering 0:30:33 The Counting Method 0:31:48 Ray-Bézier Intersections 0:34:09 Point in Glyph Test 0:36:35 Shader Time 0:38:37 Floating Point Problems 0:41:22 The Evil Artifact Detector 0:45:36 The Closest Curve Method 0:50:48 Curve Splitting 0:54:31 Defeating the Evil Artifacts 0:58:58 Anti-Aliasing 1:02:47 Performance and Legibility 1:05:11 The Counting Method Returns 1:09:45 Outro
You May Also Like
Boost Your Coding Skills Today
AI-recommended products based on this video

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Laptop Screen Extender, 14" FHD 1080P Triple Portable Screen Monitor for 13"-16.5" Laptop with Stand Dual Monitors Built-in Speakers, Monitor Extender for MacOS/Wins/Chrome/Dex

MSI MAG MT201D - Premium Heavy Duty Dual Monitor Stand Arms, 17-45" Support, VESA Compatible, Adjustable Spring Mount, 44 lbs per Screen, Clamp & Grommet, Quick Release Plate - Black

Lemorele Docking Station Dual Monitor, 6 in 1 USB C Hub Multiport Adapter w/2 HDMI 4K, 5Gbps USB3.0 & 2 USB2.0, 100W PD Charging - USB C Dock for Laptop Dell/HP/MacBook/Surface - Plug and Play

USB C Docking Station Dual Monitor for Dell Hp,15-in-1 Laptop Docking Station 3 Monitors USB C Hub with Dual 4K HDMI,8K DP,Button,PD Charging,Ethernet,6 USB A&C,SD/TF, Audio USB-C Multiport Adapter

InnoView Laptop Screen Extender 15.6" Dual Portable Monitors 1080P FHD Stacked Folding Triple Monitor HDMI USB-C Portable Dual Monitor for Laptop Windows Mac (No Driver Needed)

Razer DeathAdder Essential Gaming Mouse: 6400 DPI Optical Sensor - 5 Programmable Buttons - Mechanical Switches - Rubber Side Grips - Classic Black

Asus ROG Gladius III Wireless AimPoint Gaming Mouse, Connectivity (2.4GHz RF, Bluetooth, Wired), 36000 DPI Sensor, 6 programmable Buttons, ROG SpeedNova, Replaceable switches, Paracord Cable, White

Asus ROG Spatha X Wireless Gaming Mouse – MMO/MOBA Design, 12 Programmable Buttons, Right-Handed, 168g, Dual-Mode (Wired/2.4GHz), 19K DPI, up to 67Hr Battery, Magnetic Charging Dock, PC/Mac Support



















