一键导入
puzzmo-fonts
Set up Puzzmo platform fonts in a game using the SDK font utilities
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up Puzzmo platform fonts in a game using the SDK font utilities
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create app metadata, thumbnail, and offline configuration for the Puzzmo platform
Wire up game completion signaling to the Puzzmo host
Integrate the Puzzmo SDK into a Vite game project for host communication
Configure the Puzzmo CLI for uploading game builds
Edit the `integrations` block in puzzmo.json (leaderboards, notables, etc.) using live game context from the dev.puzzmo.com MCP
Add integrations to puzzmo.json with leaderboard configuration using deeds
基于 SOC 职业分类
| name | puzzmo-fonts |
| description | Set up Puzzmo platform fonts in a game using the SDK font utilities |
Configure the game to use Puzzmo's font stack. These are ASCII-subset fonts optimized for small payloads -- they may not contain all characters, so always provide fallbacks.
| Family | Weights | Use Case |
|---|---|---|
| Poppins | ExtraLight, Light, Regular, Medium, SemiBold, Bold, BoldItalic | Primary UI text -- labels, buttons, modals, tile letters |
| Red Hat Mono | Regular, Bold | Monospace -- timers, scores, coordinate labels |
| Zodiak | Light, Regular, Bold, Extrabold, Black (+ italics) | Display/heading text -- titles, large decorative type |
| Dongle | Light, Regular, Bold | Playful/casual display text |
| Rubik | Light, Regular | Geometric sans-serif alternative |
| League Spartan | Variable (200-800), Bold | Compact headings and UI labels |
| Cody Star | Regular | Decorative/star-outline display |
Choose fonts for the game. Most games use Poppins as the base and pick one or two others for variety. Common combos:
Poppins-SemiBold for tiles, RedHatMono-Bold for scoresZodiak-Bold for headings, Poppins-Regular for bodyLoad fonts via CSS. Create or update a fonts stylesheet that declares @font-face rules pointing at the Puzzmo CDN subset URLs:
@font-face {
font-family: "Poppins-SemiBold";
src: url("https://www.puzzmo.com/assets/fonts-subset/Poppins-SemiBold-subset.ttf");
font-display: swap;
}
@font-face {
font-family: "RedHatMono-Bold";
src: url("https://www.puzzmo.com/assets/fonts-subset/RedHatMono-Bold-subset.ttf");
font-display: swap;
}
Include this stylesheet in your index.html or import it from your entry point.
Apply fonts in game styles. Always include system fallbacks since the subset fonts only cover ASCII:
.game-root {
font-family: "Poppins-SemiBold", system-ui, sans-serif;
}
.score {
font-family: "RedHatMono-Bold", ui-monospace, monospace;
}
For SVG thumbnails, use the SDK's font utilities in your appBundle.ts to embed fonts directly in the SVG:
import { svgFontFaceCSSRaw } from "@puzzmo/sdk/fonts"
export function renderThumbnail(puzzle: string): string {
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
<style>${svgFontFaceCSSRaw(["Poppins-SemiBold", "RedHatMono-Bold"])}</style>
<!-- thumbnail content -->
</svg>`
}
Available font names for svgFontFaceCSSRaw: Poppins-Regular, Poppins-Bold, Poppins-BoldItalic, Poppins-Medium, Poppins-SemiBold, Poppins-ExtraLight, Poppins-Light, RedHatMono-Bold, RedHatMono-Regular, Dongle-Regular, Rubik-Light, Rubik-Regular, NotoSansSymbols2-Regular.
NotoSansSymbols2-Regular is the only full (non-subset) font -- use it when you need symbol glyphs.font-display: swap so the game remains interactive while fonts load.@font-face declarations load without network errorssvgFontFaceCSSRawfont-family declarations