text2svg 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dc265c2022da3597a26d0b43dd53540ff28000d
4
- data.tar.gz: 666f2d5988a3cb2be258b695edb1ee2ed7152dfd
3
+ metadata.gz: 1d90eb44a01e353a25dcc368cf992346e1c0a9b8
4
+ data.tar.gz: f058dd892c5475f56b20c5431bd13ef6615ab4ad
5
5
  SHA512:
6
- metadata.gz: a2ebd92f86fb3b0b69d2abe5c529a5b66e08581790533ab75d72270bc2bdd3b0a17fcfb567ac5b99cc71f886bb828e014a75c25fcf45bdaf656d4f8db83079fd
7
- data.tar.gz: 39329909625340a14ca97d2f0d9df5775dd21dfec2380f5510dbe617b33e4b6d655fc5da49c138ca1e2ff3ef38cbfc9f156ae5a69774a8e1b233c64f7f30fbc5
6
+ metadata.gz: c8d04e7e2dc712884c642cd46eab49f233753fc7bef1924ebdce188ad64e944b6d4a73886c169af3ecee754e1ef4f8d1f927d42088ca7e9c664234a60126b123
7
+ data.tar.gz: 443b8559efd03d7bf7c18d07cc11065d8f0fdc1f0ed1e3803db57b84fa3553623c98901a47bc6db349c20908d1f16e330f844fbbb90dffae596b3100af9dc4da
data/.travis.yml CHANGED
@@ -8,6 +8,7 @@ rvm:
8
8
  matrix:
9
9
  allow_failures:
10
10
  - rvm: ruby-head
11
+ script: bundle exec rgot -v --bench .
11
12
  notifications:
12
13
  email: false
13
14
  before_install: gem install bundler -v 1.11.2
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
- Using by freetype API
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 && open test.svg -a /Applications/Google\ Chrome.app
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).
@@ -171,7 +171,7 @@ module Text2svg
171
171
  point += cs.metrics[:horiAdvance]
172
172
  }
173
173
  end
174
- [bearings.min, 0].min
174
+ bearings.min
175
175
  end
176
176
  end
177
177
  end
@@ -1,3 +1,3 @@
1
1
  module Text2svg
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
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.5
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-04 00:00:00.000000000 Z
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.5.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/