Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solves issue #31 #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ Compatible with dart2js and dart2native.
### Install via dev dependency

```shell
$ flutter pub add --dev icon_font_generator
dart add --dev icon_font_generator

# And it's ready to go:
$ flutter pub run icon_font_generator:generate <input-svg-dir> <output-font-file> [options]
dart run icon_font_generator:generator <input-svg-dir> <output-font-file> [options]
```

### or [Globally activate][] the package:

[globally activate]: https://dart.dev/tools/pub/cmd/pub-global

```shell
$ pub global activate icon_font_generator
pub global activate icon_font_generator

# And it's ready to go:
$ icon_font_generator <input-svg-dir> <output-font-file> [options]
icon_font_generator <input-svg-dir> <output-font-file> [options]
```

Required positional arguments:
Expand Down Expand Up @@ -75,7 +75,7 @@ Shows usage information.
*Usage example:*

```shell
$ icon_font_generator assets/svg/ fonts/my_icons_font.otf --output-class-file=lib/my_icons.dart -r
icon_font_generator assets/svg/ fonts/my_icons_font.otf --output-class-file=lib/my_icons.dart -r
```

Updated Flutter project's pubspec.yaml:
Expand Down Expand Up @@ -111,8 +111,12 @@ icon_font:
verbose: false
```

`input_svg_dir` and `output_font_file` keys are required.
It's possible to specify any other config file by using `--config-file` option.
`input_svg_dir` and `output_font_file` keys are required in the config file.
It's possible to specify any other config file by using `--config-file` option as:

```shell
dart run icon_font_generator:generator --config-file=icon_font.yaml
```

## Using API

Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ packages:
dependency: "direct main"
description:
name: logger
sha256: db2ff852ed77090ba9f62d3611e4208a3d11dfa35991a81ae724c113fcb3e3f7
sha256: ba3bc83117b2b49bdd723c0ea7848e8285a0fbc597ba09203b20d329d020c24a
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "2.0.2"
logging:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
args: ^2.4.0
collection: ^1.17.0
dart_style: ^2.3.0
logger: ^1.3.0
logger: ^2.0.2
meta: ^1.8.0
path: ^1.8.2
path_parsing: ^1.0.1
Expand Down