Skip to content

Commit ee53820

Browse files
committed
Bug fixed
1 parent 181c58b commit ee53820

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,35 @@ ARGS:
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+
```

0 commit comments

Comments
 (0)