fontforge-ruby 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1c001688c1fce2036985584478b3112c36165067
4
+ data.tar.gz: aada5a58612a6b223d80681862b4dd559af856f7
5
+ SHA512:
6
+ metadata.gz: a6fdfa602818470b7c65f9d754616ae8c6fa1b9c3b361adec839ae84b6be366bf1c3637360d908966d4ec6bb2f451d66e49faa0f7dc04c96c92104fb20202a37
7
+ data.tar.gz: 34bfe122b6c09a8bf24d3d6d9efa836a1e8ac32a2d977ca700abead348cc12496bb9fd861269d4d63b7f25318d6c36c9b0b1929ec316b82af94813e108eb6d4e
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Tailor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # fontforge-ruby
2
+ A Ruby wrapper for [FontForge](https://fontforge.github.io/en-US/)
3
+
4
+ [![Build Status](https://travis-ci.org/TailorBrands/fontforge-ruby.svg?branch=master)](https://travis-ci.org/TailorBrands/fontforge-ruby)
5
+
6
+ ```rb
7
+ gem "fontforge-ruby"
8
+ ```
9
+
10
+ ## Install
11
+
12
+ This gem requires FontForge command lines tools to be installed. For more info on installation, please refer to the [FontForge documentation](https://fontforge.github.io/en-US/downloads/).
13
+
14
+ Linux (Debian based)
15
+ ```
16
+ sh sudo add-apt-repository ppa:fontforge/fontforge; sudo apt-get update; sudo apt-get install fontforge
17
+ ```
18
+
19
+ Mac OS X
20
+ ```
21
+ brew install fontforge
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ```rb
27
+ FontforgeRuby.convert("input_font.ttf", "output_font.svg") # Converts ttf into svg font
28
+ ```
29
+
30
+ ## Disclaimer
31
+
32
+ This is completely unofficial and is not related to FontForge in any way.
33
+
34
+ ## Contributing
35
+
36
+ 1. Fork it
37
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
38
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
39
+ 4. Push to the branch (`git push origin my-new-feature`)
40
+ 5. Create new Pull Request
41
+
42
+ ## About Tailor Brands
43
+ [Check us out!](https://www.tailorbrands.com)
@@ -0,0 +1,4 @@
1
+ #!/usr/local/bin/fontforge
2
+ Open($1);
3
+ Generate($2);
4
+ Quit(0);
@@ -0,0 +1,6 @@
1
+ class FontforgeRuby
2
+ def self.convert(input, output)
3
+ convert_path = File.join(File.dirname(File.expand_path(__FILE__)), "convert.sh")
4
+ system "fontforge -script '#{convert_path}' '#{input}' '#{output}'"
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fontforge-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kevin Smyth
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3.5'
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 3.5.0
22
+ name: rspec
23
+ prerelease: false
24
+ type: :development
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.5.0
33
+ description: Converts font files using FontForge
34
+ email: kevin@tailorbrands.com
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - LICENSE
40
+ - README.md
41
+ - lib/convert.sh
42
+ - lib/fontforge_ruby.rb
43
+ homepage: https://github.com/TailorBrands/fontforge-ruby
44
+ licenses:
45
+ - MIT
46
+ metadata: {}
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubyforge_project:
63
+ rubygems_version: 2.6.4
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: A wrapper for FontForge command line tools
67
+ test_files: []