MCP.so
登录

MCP SVG to Fonts 🎨

@Supr3me0

关于 MCP SVG to Fonts 🎨

This repository provides a tool for converting SVG files into various font formats, streamlining icon management. With features like automatic CSS generation and TypeScript support, it simplifies the process for developers. 🐙🌟

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

Supr3me0

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP SVG to Fonts 🎨?

MCP SVG to Fonts 🎨 is a command-line tool that converts directories of SVG icon files into web fonts (TTF, WOFF, WOFF2, SVG), generating corresponding CSS and TypeScript declarations. It is designed for developers and designers who need to create custom icon fonts for web projects or design systems.

How to use MCP SVG to Fonts 🎨?

Install the tool by cloning the repository and running npm install. Prepare your SVG files in a directory, then run the conversion command: npm run convert --path=path/to/your/svg/files. This generates the font files and CSS output. You can customize the output via a config.json file.

Key features of MCP SVG to Fonts 🎨

  • Convert multiple SVG files into web fonts.
  • Supports CSS and TypeScript output for easy integration.
  • Batch process entire directories of SVG icons.
  • Generate TTF, WOFF, and other font formats.
  • Customizable CSS output (class names, font-family, etc.).
  • Ideal for design system and UI library integration.

Use cases of MCP SVG to Fonts 🎨

  • Convert a collection of SVG icons into a single icon font for a website.
  • Generate font files with TypeScript declarations for use in React or other JS frameworks.
  • Produce a custom icon font for a design system or component library.
  • Batch-process SVG icons from a design tool (e.g., Figma exports) into web fonts.

FAQ from MCP SVG to Fonts 🎨

What font formats does the tool generate?

The tool supports TTF, WOFF, WOFF2, and SVG font formats. You can specify which formats to generate in the configuration.

Does the tool require any runtime dependencies?

Yes, you need Node.js and npm installed to run the conversion command. The tool's dependencies are installed via npm install.

Can I customize the CSS output?

Yes. By editing the config.json file, you can set custom class names, font-family, and other CSS properties for the generated font.

Where do my SVG files need to be located?

Your SVG files should be placed in a directory. You provide the path to that directory when running the conversion command.

Is there a limit to the number of SVG files I can convert?

The README does not specify any limit. Batch processing of entire directories is supported, so you can convert as many SVGs as you need.

评论

其他 分类下的更多 MCP 服务器