Skip to main content
skill CX Codex

slug-font-rendering — Claude Code skill: what it does, how to install

Provides reference HLSL shaders for GPU vector font rendering with the Slug algorithm. Useful for drawing glyphs at any scale without texture atlases.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill slug-font-rendering -a claude-code
Open on GitHub

What slug-font-rendering does

This skill supplies reference HLSL implementations of the Slug algorithm. It calculates glyph coverage directly in fragment shaders using quadratic Bézier curves and lines, avoiding blurry textures when zooming.

The implementation includes slug.hlsl, curve.hlsl, and the band-based optimization in band.hlsl. It functions across rendering APIs like D3D11, D3D12, Vulkan, and Metal via translation layers.

Shaders cannot render text on their own without CPU preprocessing. You must convert TrueType or OpenType contours into curve records on the host and bind them to a GPU structured buffer.

What it helps with

  • render vector glyphs on GPU without precomputed font atlases
  • evaluate quadratic Bézier coverage directly inside fragment shaders
  • reduce per-pixel curve intersection tests using band culling
  • integrate Slug text drawing routines into D3D12 or Vulkan pipelines

Example prompts for the agent

  • Explain how to bind the curve structured buffer to slug.hlsl in DirectX 12
  • Write a CPU contour preprocessor that outputs quadratic Bézier segments for Slug
  • Show how band metadata reduces per-fragment curve evaluations in band.hlsl

How to install slug-font-rendering

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill slug-font-rendering -a claude-code

2Manually: put the files in place

~/.claude/skills/slug-font-rendering/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/slug-font-rendering/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about slug-font-rendering

How do I install slug-font-rendering in Claude Code?

Run npx skills add reason-machines/trending-skills --skill slug-font-rendering -a claude-code in your terminal.

What is slug-font-rendering?

It provides HLSL shader references for the Slug vector font rendering algorithm, drawing glyphs on the GPU mathematically.

What prerequisites does Slug need on the host?

You must decompose font outlines into lines and quadratic Bézier segments on the CPU, then upload that data to a GPU buffer before invoking the shaders.

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set199

kimodo-motion-diffusion A skill that wires the Kimodo kinematic diffusion model into your agent for 3D human and humanoid robot motion from text prompts and constraints. Expect roughly 17GB of VRAM. CX Codex +1 1,300installs grimmory-self-hosted-library Helps AI agents configure and run the self-hosted Grimmory book manager in Docker, set up e-reader sync, and extend its Spring Boot backend. CX Codex +1 1,300installs taiwan-md-knowledge-base A skill for maintaining an open knowledge base about Taiwan built on Astro v5, with Chinese and English articles and a D3.js graph. Useful if you write or translate content for that project. CX Codex +1 1,300installs zeroboot-vm-sandbox This skill runs agent code inside a real KVM virtual machine through Zeroboot, forking a template in under a millisecond. CX Codex +1 1,300installs memory-lancedb-pro-openclaw Guides setup of OpenClaw’s LanceDB memory plugin. Useful when an agent needs to retain project context between sessions or retrieve stored details. CX Codex +1 1,300installs openclaw-rl-training This skill sets up OpenClaw-RL, an async reinforcement learning framework that turns live conversations into training signals for a personal agent. CX Codex +1 1,300installs trump-code-market-signals Evaluates Truth Social and X posts against S&P 500 movements using tested trading rules. Helpful when studying market sentiment signals. CX Codex +1 1,300installs clui-cc-claude-overlay This skill puts a floating macOS overlay on top of Claude, with tabbed sessions, tool-call approval and voice input. CX Codex +1 1,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor