# TTFviewer **Repository Path**: QQxiaoming/TTFviewer ## Basic Information - **Project Name**: TTFviewer - **Description**: TTFviewer一款用于开发人员查看预览各种ttf字体/图标图像格式的小工具,其基于Qt,部分代码来源自项目: https://github.com/donbright/font_to_svg 和 https://github.com/QQxiaoming/YUVviewer ,支持windows/linux/macos,界面简单清晰,操作便携。 - **Primary Language**: C++ - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 25 - **Forks**: 9 - **Created**: 2022-07-02 - **Last Updated**: 2025-07-14 ## Categories & Tags **Categories**: application-software **Tags**: view-tools, ttf-view, image-view, image-tools ## README [![Windows ci](https://img.shields.io/github/actions/workflow/status/qqxiaoming/ttfviewer/windows.yml?branch=main&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+V2luZG93czwvdGl0bGU+PHBhdGggZD0iTTAsMEgxMS4zNzdWMTEuMzcySDBaTTEyLjYyMywwSDI0VjExLjM3MkgxMi42MjNaTTAsMTIuNjIzSDExLjM3N1YyNEgwWm0xMi42MjMsMEgyNFYyNEgxMi42MjMiIGZpbGw9IiNmZmZmZmYiLz48L3N2Zz4=)](https://github.com/QQxiaoming/ttfviewer/actions/workflows/windows.yml) [![Linux ci](https://img.shields.io/github/actions/workflow/status/qqxiaoming/ttfviewer/linux.yml?branch=main&logo=linux&logoColor=white)](https://github.com/QQxiaoming/ttfviewer/actions/workflows/linux.yml) [![Macos ci](https://img.shields.io/github/actions/workflow/status/qqxiaoming/ttfviewer/macos.yml?branch=main&logo=apple)](https://github.com/QQxiaoming/ttfviewer/actions/workflows/macos.yml) [![CodeFactor](https://img.shields.io/codefactor/grade/github/qqxiaoming/ttfviewer.svg?logo=codefactor)](https://www.codefactor.io/repository/github/qqxiaoming/ttfviewer) [![License](https://img.shields.io/github/license/qqxiaoming/ttfviewer.svg?colorB=f48041&logo=gnu)](https://github.com/QQxiaoming/ttfviewer) [![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/QQxiaoming/TTFviewer.svg?logo=git)](https://github.com/QQxiaoming/TTFviewer/releases) [![GitHub All Releases](https://img.shields.io/github/downloads/QQxiaoming/TTFviewer/total.svg?logo=pinboard)](https://github.com/QQxiaoming/TTFviewer/releases) [![GitHub stars](https://img.shields.io/github/stars/QQxiaoming/TTFviewer.svg?logo=github)](https://github.com/QQxiaoming/TTFviewer) [![GitHub forks](https://img.shields.io/github/forks/QQxiaoming/TTFviewer.svg?logo=github)](https://github.com/QQxiaoming/TTFviewer) [![Gitee stars](https://gitee.com/QQxiaoming/TTFviewer/badge/star.svg?theme=dark)](https://gitee.com/QQxiaoming/TTFviewer) [![Gitee forks](https://gitee.com/QQxiaoming/TTFviewer/badge/fork.svg?theme=dark)](https://gitee.com/QQxiaoming/TTFviewer) # TTFviewer [🇺🇸 English](./README.md) | 🇨🇳 简体中文 TTFviewer一款用于开发人员查看预览各种ttf字体/图标图像格式的小工具,其基于Qt,部分代码来源自项目: https://github.com/donbright/font_to_svg 和 https://github.com/QQxiaoming/YUVviewer ,支持windows/linux/macos,界面简单清晰,操作便携,主界面如下: ![img0](./img/docimg0.png) ## 功能描述 1. 主界面选择参数。 2. 点击打开文件或文件夹将进行图像数据解析并显示图像。 3. 图像显示界面中使用 - 滚轮放大缩小图像, - 使用左键可拖动图像, - 双击左键保存图像为svg格式, - 单击右键复位图像大小和位置, - 单击中键显示图像原始大小。 ### codepoint参数填写说明 关于codepoint参数存在以下合法输入: 1. 输入单个字符,此时ttfviewer会显示该字符unicode对应在目标ttf文件中的图像。示例: ![img11](./img/docimg11.png)![img10](./img/docimg10.png) ![img31](./img/docimg31.png)![img30](./img/docimg30.png) ![img51](./img/docimg51.png)![img50](./img/docimg50.png) 2. 输入0x或0X开头的16进制unicode码值,此时ttfviewer会显示该unicode码值对应在目标ttf文件中的图像。示例: ![img21](./img/docimg21.png)![img20](./img/docimg20.png) ![img41](./img/docimg41.png)![img40](./img/docimg40.png) ![img61](./img/docimg61.png)![img60](./img/docimg60.png) 3. 输入通配符*,此时ttfviewer会搜索目标ttf文件中的所有图像显示(可能消耗较多系统内存),点击左右切换浏览,示例: ![img74](./img/docimg74.png) ![img70](./img/docimg70.png)![img71](./img/docimg71.png)![img72](./img/docimg72.png)![img73](./img/docimg73.png) 4. 输入两个通配符*,此时ttfviewer会显示通配符本身(即:0x2a)对应在目标ttf文件中的图像。示例: ![img81](./img/docimg81.png)![img80](./img/docimg80.png) ## 格式支持 目前支持格式包括: ttf\ttf_verbose ## 编译说明  > [编译说明](./DEVELOPNOTE.md) ## 贡献 如果您对本项目有建议或想法,欢迎在GitHub或Gitee上提交issue和pull requests。 目前项目已完全迁移至Qt6开发,建议使用版本Qt6.5.0或更高版本。