dejavu-fonts 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # DejaVu fonts
2
+
3
+ This gem just include the DejaVu fonts, to be used with Prawn or anything else similar.
4
+
5
+ You can get more information about DejaVu in the [DejaVu site](http://dejavu-fonts.org)
6
+
7
+ ## Usage
8
+
9
+ In your `Gemfile`
10
+
11
+ ```ruby
12
+ gem "dejavu-fonts"
13
+ ```
14
+
15
+ In your Prawn object,
16
+
17
+ ```ruby
18
+ font_families.update("dejavu" => DejaVu::Fonts::Paths)
19
+
20
+ # ...
21
+
22
+ font("dejavu") do
23
+ # ...
24
+ end
25
+ ```
@@ -0,0 +1,10 @@
1
+ module DejaVu
2
+ module Fonts
3
+ Paths = {
4
+ :normal => "#{File.dirname(__FILE__)}/fonts/DejaVuSans.ttf",
5
+ :italic => "#{File.dirname(__FILE__)}/fonts/DejaVuSans-Oblique.ttf",
6
+ :bold => "#{File.dirname(__FILE__)}/fonts/DejaVuSans-Bold.ttf",
7
+ :bold_italic => "#{File.dirname(__FILE__)}/fonts/DejaVuSans-BoldItalic.ttf"
8
+ }.freeze
9
+ end
10
+ end
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dejavu-fonts
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ayose Cazorla
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: This gem includes the DejaVu fonts, from http://dejavu-fonts.org
15
+ email:
16
+ - ayosec@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/fonts/DejaVuSans-Bold.ttf
22
+ - lib/fonts/DejaVuSans-BoldOblique.ttf
23
+ - lib/fonts/DejaVuSans.ttf
24
+ - lib/fonts/DejaVuSans-ExtraLight.ttf
25
+ - lib/fonts/DejaVuSans-Oblique.ttf
26
+ - lib/dejavu-fonts.rb
27
+ - README.md
28
+ homepage: https://github.com/ayosec/dejavu-fonts
29
+ licenses: []
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 1.8.24
49
+ signing_key:
50
+ specification_version: 3
51
+ summary: DejaVu Fonts
52
+ test_files: []