palscii
1.0.0
一个简单的命令行工具,用于为LibtCod等引擎创建字体调色板。
这也可以通过运行palscii --help来查看。
palscii - generate ASCII font palettes for rougelike engines
palscii is designed to be a dead-simple UNIX-like tool. It takes font files and makes PNG palettes,
and it aims to do that well.
### NOTES
The glyph parameters `width` and `height` are scaled to on a best-case scenario. In situations where
it is not possible to do so, cropping will occur and may result in undesirable visual artifacts.
In DEBUG builds of palscii, an assertion checks the validity of the scale operation, so palscii will
exit with an error.
USAGE:
palscii [OPTIONS]
OPTIONS:
-h, --height <HEIGHT>
Optional maximum glyph height, defualt: 16. See **Notes** for more details
[default: 16]
--help
Print help information
-i, --input <INPUT>
Optional path to input file, if not provided, STDIN will be used
-o, --output <OUTPUT>
Optional path to output to, if not provided, STDOUT will be used
-w, --width <WIDTH>
Optional maximum glyph width, default: 8. See **Notes** for more details
[default: 8]
TL; DR: cargo build或cargo build --release ,您应该是新的。
这是一个生锈的项目,因此它重新定位了生锈工具链。请参阅官方Rust网站以进行设置。
之后,它应该很容易:
git clone仓库cargo build要建造,如果您不想要调试主张, cargo build --releasetarget/ ; palscii垃圾箱是独立且便携的我完全开发和测试了以下环境:
11.6 (Big Sur)rustc版本1.54.0cargo版本1.54.0我预计PalsCII不会在Linux发行版上运行任何问题,但是由于路径的处理不同,Windows用户可能会遇到一些怪癖。
cargo test如果您想手动测试,我包括了几个已许可的字体及其各自的归因和resources/中的许可文本。
PALSCII高水平使用OTF或TTF字体,并创建了16x16 PNG调色板,可用于Roogelike游戏引擎(例如LibtCod或barket-lib)。
我在一个周末和那里创建了palscii,在这里和那里几个小时,以便在阅读赫伯特·沃尔弗森(Herbert Wolverson)的《锈书》(Rust Book)的rougelike时使用不同的字体。这本书可以在这里找到,我强烈建议任何对Rust和Roogelike游戏感兴趣的人。
我将palscii设计为遵循Unix哲学的简单工具。也就是说,它可以做一件事,并试图做得很好。由于这也是我为了娱乐而制作的全部黑客项目(并支持我的主要娱乐项目,这使Roogelike造成了),因此在v0.1.0中的边缘周围仍然很粗糙。如果某些事情不太喜欢您想要的方式,请随时在这里分叉和/或PR修复。