File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 4040 <INPUT> Symbol image in PNG format
4141 <OUTPUT> Output path for SDF image in PNG format
4242```
43+
44+ ### Create SDF font atlas from TTF/OTF
45+ ```
46+ sdftool-font
47+ Create the sdf font
48+
49+ USAGE:
50+ sdftool font [FLAGS] [OPTIONS] <INPUT> <OUTDIR>
51+
52+ FLAGS:
53+ -h, --help Prints help information
54+ --no-ascii Do not generate ascii charset
55+ --schinese-1 Generate common standard chinese table 1
56+ --schinese-2 Generate common standard chinese table 2
57+ --schinese-3 Generate common standard chinese table 3
58+ -V, --version Prints version information
59+
60+ OPTIONS:
61+ --margin-x <margin-x> Margin X on every sdf character in pixels [default: 0]
62+ --margin-y <margin-y> Margin Y on every sdf character in pixels [default: 0]
63+ --origin-scale <origin-scale> Basic font scale before downsample [default: 384]
64+ --padding-x <padding-x> Padding X on every basic character in pixels [default: 24]
65+ --padding-y <padding-y> Padding Y on every basic character in pixels [default: 24]
66+ --page-height <page-height> Single page height in pixels [default: 1024]
67+ --page-width <page-width> Single page width in pixels [default: 1024]
68+ -r, --search-radius <search-radius> Set the radius for edge searching [default: 24]
69+ -s, --stride <stride> Set the downsample stride size (1 will not downsample) [default: 8]
70+
71+ ARGS:
72+ <INPUT> Input ttf/otf file
73+ <OUTDIR> Output path
74+ ```
You can’t perform that action at this time.
0 commit comments