frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

SDF vs. MSDF vs. Slug: GPU Text Rendering

https://alphapixeldev.com/sdf-vs-msdf-vs-slug-vs-rive-gpu-text-rendering/
9•ibobev•47m ago

Comments

bel8•27m ago
MSDF looks better than Slug for me in the first example.

But slug wins in perspective in my eyes.

I use MSDF to render crisp text in my webgl hobby game. Hope to publish it with source code when I get the time.

thanks for sharing the article. I'll take a deeper look at it later.

Keyframe•18m ago
I do MSDF as well and since I'm not doing a huge-ass text editor (and even then) it works and it's great. One thing to consider is that with any solution that does things directly from vector outlines means you also then have to distribute proper font outlines and you might not have a license to do that. With MSDF and similar atlas-like solutions, you pre-render a font and distribute that rendered image instead of an actual font.
jdanford•22m ago
Man, I am getting incredibly tired of reading LLM-generated writing
cute_boi•15m ago
Author probably didn't even read...
rezmason•16m ago
Slug looks impressive!

The project I'm most known for is basically an MSDF shader with a bloom pass. It serves my needs 100%, though if I expand to support arbitrary text, I may reach for Slug.

The one issue with MSDF I want to raise is, it seems everybody uses the same msdfgen texture creation program from Viktor Chlumský's master's thesis 11 years ago. I wish there were other implementations. Who ever heard of a graphics technique that was only ever programmed once, and then used everywhere without substantial iteration? We need to de-XKCD-2347 MSDFs for everyone's sake, including and especially Chlumský.

reactordev•15m ago
Excellent write up. The cited references are on point too. Eric Lengyel is a legend.
flohofwoe•9m ago
Here's a simple Slug rendering example on top of sokol_gfx.h:

via WebGPU backend: https://floooh.github.io/sokol-webgpu/slug-sapp.html

via WebGL2 backend: https://floooh.github.io/sokol-html5/slug-sapp.html

There's quite a bit of helper code plus stb_truetype.h and stb_ds.h under the hood to parse TTF files and crunch the TTF curve data into the runtime format expected by the Slug shader (this stuff should better go into an offline asset pipeline tool):

https://github.com/floooh/sokol-samples/blob/master/libs/slu...

...the actual text rendering code is also taking a couple of shortcuts, e.g. currently no kerning, and also no text shaping.

There's also a new and complete text rendering stack by Mikko Mononen called Skribidi (AFAIK not based on Slug though):

https://github.com/memononen/Skribidi

...the list of external dependencies is a bit scary for a small self-contained sample though (Harfbuzz, SheenBidi, libunibreak, etc...), but that basically shows that proper international text rendering is really damn hard, even when trying to simplify the code as much as possible.

I can't tell who's teaching who anymore

https://blog.murphytrueman.com/i-cant-tell-whos-teaching-who-anymore/
1•eustoria•1m ago•0 comments

A physical Version of the AI Singularity

https://economist.com/by-invitation/2026/09/29/theres-a-physical-version-of-the-ai-singularity-an...
1•andsoitis•1m ago•0 comments

Show HN: Paperweight – local-first, open-source email cleanup and privacy tool

https://github.com/wslyvh/paperweight
1•wslyvh•1m ago•0 comments

Pentagon data breach of military personnel raises national security concerns

https://www.cnn.com/2026/09/25/politics/pentagon-data-personnel-breach
1•eustoria•1m ago•0 comments

SDF Public Access Unix System ... est. 1987

https://sdf.org/
1•kmstout•2m ago•0 comments

Agent interactions are failing silently

https://merj.com/blog/agent-interaction-research
4•ryansiddle•2m ago•0 comments

Show HN: Burning Man for Agents

https://burning-tokens.transitivebullsh.it/
1•transitivebs•3m ago•0 comments

The Bloomberg Terminal

https://spectrum.ieee.org/bloomberg-terminal
1•rbanffy•4m ago•0 comments

Disgust, Desire, and Durian

https://daily.jstor.org/disgust-desire-and-durian/
1•herbertl•5m ago•0 comments

AI CEO Panel [video]

https://www.youtube.com/watch?v=DlTNN0gvkLM
1•doruk101•5m ago•0 comments

Show HN: Singapore MRT announcements app – Built for my son

https://kavyaj.github.io/mrt-announcements/
1•kavyaj•5m ago•1 comments

Show HN: Select text, right click to fact-check

https://evergreen-labs.org/products/credibility-analyzer
1•billylo•6m ago•0 comments

MI5 issues spy alert to UK universities over Chinese front co. stealing research

https://www.theguardian.com/uk-news/2026/sep/30/mi5-issues-spy-alert-over-body-linked-chinese-sta...
1•chrisjj•6m ago•0 comments

'Attention Infidelity' Is Ruining Romance

https://www.nytimes.com/2026/09/30/opinion/attention-infidelity-ruin-romance.html
1•voxleone•7m ago•1 comments

Tech Giants Face Questions over Secret AI Data-Center Deals

https://www.wsj.com/politics/policy/tech-giants-face-questions-over-secret-ai-data-center-deals-b...
1•elsewhen•8m ago•0 comments

Get Ready for Seven-Day Certificates

https://www.feistyduck.com/newsletter/issue_141_get_ready_for_seven_day_certificates
1•speckx•9m ago•0 comments

Full Screen Browser-Based Mandelbrot Set Animation

https://wastingmytime.net/index.html
1•limbicsystem•9m ago•0 comments

Who decides what time it is? The politics behind contested clocks

https://news.uq.edu.au/2026-09-who-decides-what-time-it-politics-behind-contested-clocks
1•geox•9m ago•0 comments

Show HN: Tracelane.dev- OSS Rust LLM Gateway with a tamper-evident ledger

https://github.com/tracelane/tracelane
1•NovStar•11m ago•1 comments

Cloudflare Containers, rebuilt to scale agent sandboxes

https://blog.cloudflare.com/faster-agent-sandboxes/
2•sidcool•12m ago•0 comments

Ask HN: What do you think of identity challenge for AI?

1•mathieu_aithos•12m ago•0 comments

MI5 Issues Espionage Alert – Cgtri

https://www.mi5.gov.uk/mi5-issues-espionage-alert-cgtri-%E4%B8%AD%E5%9B%BD%E9%80%9A%E7%94%A8%E6%8...
1•xyzzy3000•12m ago•0 comments

How to hide your spending habits from retailers (so you don't get ripped off)

https://text.npr.org/nx-s1-5983457
1•mooreds•13m ago•0 comments

Training-free asynchronous agents playing DOOM

https://dvmazur.github.io/async_llm/
1•dvmazur•13m ago•0 comments

The Assumption That Changes the AI Debate [video]

https://www.youtube.com/watch?v=ZUzfGELUOUo
1•mooreds•14m ago•0 comments

Beware: Real risks of using AI as a software dev team

https://brettcodes.com/beware/
1•ahlCVA•14m ago•0 comments

Oxford Street to be pedestrianised from October

https://www.bbc.co.uk/news/articles/c80460xzq5zyo
3•denysonique•14m ago•0 comments

Poll on government budget balancing priorities

https://yougov.com/en-gb/daily-results/20260908-6212f-1
1•mooreds•14m ago•0 comments

Whole-exome sequencing OCD&chronic tic disorder IDs 36 large-effect risk genes

https://www.nature.com/articles/s41593-026-02419-5
1•bookofjoe•15m ago•0 comments

I, Rubikcubist: 30 Twisted Works of Rubik's Cube Art

https://weburbanist.com/2010/06/27/i-rubikcubist-30-twisted-works-of-rubiks-cube-art/
1•vhawk19•16m ago•0 comments