# font_minify **Repository Path**: cocos_tools/font_minify ## Basic Information - **Project Name**: font_minify - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-01 - **Last Updated**: 2024-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # font_minify ## 准备 1. 将原始字体文件复制到 `fonts` 目录,目前只能处理 **ttf** 格式的字体 2. 执行下面的命令安装依赖 ```bash npm install ``` ## 使用 通过 `fontmin` 来缩减字体,将需要保留的文字复制到 `text.txt` 中,然后执行下面的命令。 ```bash node main.js ```