text2svg 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +14 -14
- data/lib/text2svg/typography.rb +1 -1
- data/lib/text2svg/version.rb +1 -1
- metadata +3 -4
- data/CODE_OF_CONDUCT.md +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d90eb44a01e353a25dcc368cf992346e1c0a9b8
|
4
|
+
data.tar.gz: f058dd892c5475f56b20c5431bd13ef6615ab4ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d04e7e2dc712884c642cd46eab49f233753fc7bef1924ebdce188ad64e944b6d4a73886c169af3ecee754e1ef4f8d1f927d42088ca7e9c664234a60126b123
|
7
|
+
data.tar.gz: 443b8559efd03d7bf7c18d07cc11065d8f0fdc1f0ed1e3803db57b84fa3553623c98901a47bc6db349c20908d1f16e330f844fbbb90dffae596b3100af9dc4da
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/ksss/text2svg.svg?branch=master)](https://travis-ci.org/ksss/text2svg)
|
4
4
|
|
5
|
-
Build svg path data from font file
|
5
|
+
Build svg path data from font file and text.
|
6
6
|
|
7
|
-
|
7
|
+
So, This tool can convert text to svg outline by font.
|
8
|
+
|
9
|
+
Using by freetype API.
|
8
10
|
|
9
11
|
```
|
10
|
-
$ text2svg "Hello, World\!" --font="/Library/Fonts/Times New Roman.ttf" > test.svg
|
12
|
+
$ text2svg "Hello, World\!" --font="/Library/Fonts/Times New Roman.ttf" > test.svg
|
13
|
+
$ open test.svg -a /Applications/Google\ Chrome.app
|
11
14
|
```
|
12
15
|
|
13
16
|
![img](https://raw.githubusercontent.com/ksss/text2svg/master/data/sample.jpg)
|
@@ -25,6 +28,14 @@ Usage: text2svg [options]
|
|
25
28
|
--attribute STRING decorate options (default nil)(e.g. fill="red" stroke-width="100")
|
26
29
|
```
|
27
30
|
|
31
|
+
## Feature
|
32
|
+
|
33
|
+
- Support kerning shift
|
34
|
+
- Support multi line
|
35
|
+
- Support decorated font
|
36
|
+
- Support `.ttf` and `.otf` font file (using by FreeType)
|
37
|
+
- And support text-align, **bold** and _italic_ effects
|
38
|
+
|
28
39
|
## Ruby API
|
29
40
|
|
30
41
|
```ruby
|
@@ -55,17 +66,6 @@ Or install it yourself as:
|
|
55
66
|
|
56
67
|
see also http://www.freetype.org/
|
57
68
|
|
58
|
-
## Development
|
59
|
-
|
60
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
61
|
-
|
62
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
63
|
-
|
64
|
-
## Contributing
|
65
|
-
|
66
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/text2svg. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
67
|
-
|
68
|
-
|
69
69
|
## License
|
70
70
|
|
71
71
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/text2svg/typography.rb
CHANGED
data/lib/text2svg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: text2svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ksss
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: freetype
|
@@ -76,7 +76,6 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- ".gitignore"
|
78
78
|
- ".travis.yml"
|
79
|
-
- CODE_OF_CONDUCT.md
|
80
79
|
- Gemfile
|
81
80
|
- LICENSE.txt
|
82
81
|
- README.md
|
@@ -115,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
114
|
version: '0'
|
116
115
|
requirements: []
|
117
116
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.6.1
|
119
118
|
signing_key:
|
120
119
|
specification_version: 4
|
121
120
|
summary: Build svg path data from font file
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, and in the interest of
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
7
|
-
|
8
|
-
We are committed to making participation in this project a harassment-free
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
12
|
-
|
13
|
-
Examples of unacceptable behavior by participants include:
|
14
|
-
|
15
|
-
* The use of sexualized language or imagery
|
16
|
-
* Personal attacks
|
17
|
-
* Trolling or insulting/derogatory comments
|
18
|
-
* Public or private harassment
|
19
|
-
* Publishing other's private information, such as physical or electronic
|
20
|
-
addresses, without explicit permission
|
21
|
-
* Other unethical or unprofessional conduct
|
22
|
-
|
23
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
-
threatening, offensive, or harmful.
|
28
|
-
|
29
|
-
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
-
fairly and consistently applying these principles to every aspect of managing
|
31
|
-
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
-
Conduct may be permanently removed from the project team.
|
33
|
-
|
34
|
-
This code of conduct applies both within project spaces and in public spaces
|
35
|
-
when an individual is representing the project or its community.
|
36
|
-
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported by contacting a project maintainer at co000ri@gmail.com. All
|
39
|
-
complaints will be reviewed and investigated and will result in a response that
|
40
|
-
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
-
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
-
incident.
|
43
|
-
|
44
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
-
version 1.3.0, available at
|
46
|
-
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
-
|
48
|
-
[homepage]: http://contributor-covenant.org
|
49
|
-
[version]: http://contributor-covenant.org/version/1/3/0/
|