Releases: tolik518/bitmap_type_tracer
v1.1.0: Added translation system
The language of the program now sets itself to one of the available languages. If your language is not supported it will be set to English.
If you want to override the language, you can use the --lang [en|fr|tr|it|...]
parameter as the param at the end.
New Params
--help
show help--version
show the current program version--lang [en|fr|tr|it|...]
overrides the language of the program
New Contributors
- @Tizzz-555 made their first contribution in #8
- @Sam654123 made their first contribution in #10
Full Changelog: v1.0.0...v1.1.0
v1.0.0: First release
Font Source
The fonts used in this project are sourced from ianhan/BitmapFonts repository.
Installation
Just download the release below and untar it, but I would recommend installing using cargo install
:
tar -xzvf bitmap_type_tracer_no_examples.x86_x64_linux.tar.gz
OR
tar -xzvf bitmap_type_tracer.x86_x64_linux.tar.gz
The recommended way is to make sure you have Rust installed on your system.
Then, run the following command to install the tool:
cargo install bitmap_type_tracer --locked
How to Run
Specifying Arguments Directly:
bitmap_type_tracer <path_to_font_image> <sequence> <text> <chars_per_row> [--top VALUE] [--bottom VALUE] [--left VALUE] [--right VALUE] [--threshold VALUE] [--save-json]
example:
bitmap_type_tracer "examples/4138906397_0dc616813b_o.png" " !\" '()*+,-.\\0123456789:; = ? ABCDEFGHIJKLMNOPQRSTUVWXYZ " "Bitmap Type Tracer" 10 --threshold 1 --save-json
Using Font Configuration:
For this method, you will need to have a font configuration file saved. You can do this by running the command with the --save-json
flag when you specified all the arguments.
bitmap_type_tracer <path_to_font_image> <text>
example:
bitmap_type_tracer "examples/4138906397_0dc616813b_o.png" "Bitmap Type Trace"
This command will generate an image using a previously saved font configuration for the provided font image and the specified text.
Arguments:
-
<path_to_font_image>
: Path to the font image (bitmap) you want to use. -
<sequence>
: A sequence of characters as they appear in the font bitmap. -
<text>
: The text you want to generate as an image. -
<chars_per_row>
: Number of characters in a row in the font bitmap.
Optional Flags:
-
--top VALUE
: Specify top margin. Default is 0. -
--bottom VALUE
: Specify bottom margin. Default is 0. -
--left VALUE
: Specify left margin. Default is 0. -
--right VALUE
: Specify right margin. Default is 0. -
--threshold VALUE
: Specify the threshold for color comparisons. Default is 0. -
--save-json
: Save the provided configuration as a JSON file, making it easier to reuse in the future.