-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: xiaoming <[email protected]>
- Loading branch information
1 parent
687405e
commit d670ede
Showing
9 changed files
with
62 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
[![CI](https://github.com/QQxiaoming/TTFviewer/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/QQxiaoming/TTFviewer/actions/workflows/ci.yml) | ||
[![CodeFactor](https://www.codefactor.io/repository/github/qqxiaoming/ttfviewer/badge)](https://www.codefactor.io/repository/github/qqxiaoming/ttfviewer) | ||
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/QQxiaoming/TTFviewer.svg)](https://github.com/QQxiaoming/TTFviewer/releases) | ||
[![GitHub All Releases](https://img.shields.io/github/downloads/QQxiaoming/TTFviewer/total.svg)](https://github.com/QQxiaoming/TTFviewer/releases) | ||
[![GitHub stars](https://img.shields.io/github/stars/QQxiaoming/TTFviewer.svg)](https://github.com/QQxiaoming/TTFviewer) | ||
|
||
# TTFviewer | ||
|
||
TTFviewer一款用于开发人员查看预览各种ttf字体/图标图像格式的小工具,其基于Qt,部分代码来源自项目: https://github.com/donbright/font_to_svg 和 https://github.com/QQxiaoming/YUVviewer ,支持windows/linux/macos,界面简单清晰,操作便携,主界面如下: | ||
English | [简体中文](./README_zh_CN.md) | ||
|
||
TTFviewer is a small tool for developers to view and preview various ttf font/icon image formats. It is based on Qt, and some of the code comes from the project: https://github.com/donbright/font_to_svg and https://github.com/QQxiaoming/YUVviewer , supports windows/linux/macos, the interface is simple and clear, and the operation is portable. The main interface is as follows: | ||
|
||
(待补充) | ||
![img0](./img/docimg0.png) | ||
|
||
## 功能描述 | ||
## Feature | ||
|
||
1. 主界面选择参数。 | ||
2. 点击打开文件或文件夹将进行图像数据解析并显示图像。 | ||
3. 图像显示界面中使用 | ||
- 滚轮放大缩小图像, | ||
- 使用左键可拖动图像, | ||
- 双击左键保存图像为png格式, | ||
- 单击右键复位图像大小和位置, | ||
- 单击中键显示图像原始大小。 | ||
1. Select parameters on the main interface. | ||
2. Click Open File or Folder to parse the image data and display the image. | ||
3. Used in the image display interface | ||
- scroll wheel to zoom in and out of the image, | ||
- use the left button to drag the image, | ||
- Double click the left button to save the image as png format, | ||
- Right click to reset image size and position, | ||
- Middle click to display the original size of the image. | ||
|
||
## 格式支持 | ||
## Format | ||
|
||
目前支持格式包括: | ||
Currently supported formats include: | ||
|
||
ttf | ||
|
||
## 编译说明 | ||
## Build | ||
|
||
(待补充) | ||
(TODO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[![CI](https://github.com/QQxiaoming/TTFviewer/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/QQxiaoming/TTFviewer/actions/workflows/ci.yml) | ||
[![CodeFactor](https://www.codefactor.io/repository/github/qqxiaoming/ttfviewer/badge)](https://www.codefactor.io/repository/github/qqxiaoming/ttfviewer) | ||
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/QQxiaoming/TTFviewer.svg)](https://github.com/QQxiaoming/TTFviewer/releases) | ||
[![GitHub All Releases](https://img.shields.io/github/downloads/QQxiaoming/TTFviewer/total.svg)](https://github.com/QQxiaoming/TTFviewer/releases) | ||
[![GitHub stars](https://img.shields.io/github/stars/QQxiaoming/TTFviewer.svg)](https://github.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. 图像显示界面中使用 | ||
- 滚轮放大缩小图像, | ||
- 使用左键可拖动图像, | ||
- 双击左键保存图像为png格式, | ||
- 单击右键复位图像大小和位置, | ||
- 单击中键显示图像原始大小。 | ||
|
||
## 格式支持 | ||
|
||
目前支持格式包括: | ||
|
||
ttf | ||
|
||
## 编译说明 | ||
|
||
(待补充) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ cd $SHELL_FOLDER/freetype-2.3.5 | |
--without-zlib | ||
make -j4 | ||
make install | ||
rm -rf $SHELL_FOLDER/freetype-2.3.5 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,6 @@ class ttf_file | |
debug << "\nFree library. error code: " << error; | ||
debug << "\n-->\n"; | ||
} | ||
|
||
}; | ||
|
||
|
||
|