chunky_text 0.2.3 → 0.2.4
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 +4 -4
- data/README +8 -0
- data/chunky_text.gemspec +2 -2
- data/font/default_font.rb +27 -2
- data/font/default_font.rb~ +136 -0
- metadata +7 -14
- data/README.md +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 381757815585a88bbc19db49c15f3b862573e5a1
|
4
|
+
data.tar.gz: a3d347d1419fd89e8db94daf76f13a10a6429e3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31afce95b8e3edb820bee09f90fc0480d2c8c6461e7590db706f9db8d90e2d38c20b81872b2e88ff3291ea3ed292b3ddee3355aa7e4664d72aa76f732b7cd255
|
7
|
+
data.tar.gz: 93cc0686d4ed468e15bd21fd1049224a1e87163d15e721a608515c271d39cf7f2274a3f0bf13657b12e98addbc2cc46a1c159a4c2bfec2c02b9462c49cf74054
|
data/README
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
chunky_text is a gem for writing vector text over png images (depends on chunky_png).
|
2
|
+
|
3
|
+
Actually it's possible to write a single line of text of any size and color.
|
4
|
+
Accented italian/english chars, uppercase and lowercase, special charactes in
|
5
|
+
a default font are included.
|
6
|
+
|
7
|
+
-Marco Bagnaresi
|
8
|
+
|
data/chunky_text.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "chunky_text"
|
3
3
|
s.summary = "Draw vector text on chunky_png images."
|
4
|
-
s.description = File.read(File.join(File.dirname(__FILE__), 'README
|
4
|
+
s.description = File.read(File.join(File.dirname(__FILE__), 'README'))
|
5
5
|
s.license = "MIT"
|
6
6
|
s.requirements= ['chunky_png gem must be installed.']
|
7
|
-
s.version = "0.2.
|
7
|
+
s.version = "0.2.4"
|
8
8
|
s.author = "Marco Bagnaresi"
|
9
9
|
s.email = "info@mbcraft.it"
|
10
10
|
s.homepage = "http://www.mbcraft.it/products/chunky_text.php"
|
data/font/default_font.rb
CHANGED
@@ -127,8 +127,33 @@ module ChunkyText::Font
|
|
127
127
|
'Ò' => [[[51.0,80.0],[41.0,77.0],[26.0,64.0],[24.0,56.0],[26.0,43.0],[36.0,34.0],[55.0,28.0],[67.0,34.0],[73.0,44.0],[75.0,55.0],[70.0,77.0],[50.0,82.0],],[[62.0,24.0],[36.0,8.0],],],
|
128
128
|
'À' => [[[26.0,82.0],[51.0,25.0],[70.0,81.0],],[[40.0,56.0],[62.0,56.0],],[[63.0,23.0],[34.0,6.0],],],
|
129
129
|
'Ù' => [[[27.0,30.0],[28.0,42.0],[27.0,60.0],[35.0,74.0],[48.0,81.0],[58.0,82.0],[70.0,76.0],[73.0,65.0],[73.0,39.0],[74.0,30.0],],[[61.0,28.0],[38.0,7.0],],],
|
130
|
-
'
|
131
|
-
|
130
|
+
'¬' => [[[23.0,45.0],[79.0,44.0],[78.0,63.0],],],
|
131
|
+
'¹' => [[[23.0,31.0],[35.0,23.0],[36.0,42.0],],],
|
132
|
+
'²' => [[[45.0,42.0],[28.0,42.0],[42.0,34.0],[46.0,28.0],[45.0,25.0],[41.0,21.0],[34.0,21.0],[29.0,26.0],],],
|
133
|
+
'³' => [[[32.0,26.0],[35.0,23.0],[39.0,22.0],[42.0,24.0],[45.0,28.0],[40.0,32.0],[43.0,34.0],[46.0,38.0],[42.0,42.0],[38.0,43.0],[33.0,41.0],[32.0,38.0],],],
|
134
|
+
'¼' => [[[30.0,43.0],[45.0,43.0],],[[38.0,45.0],[38.0,23.0],[38.0,23.0],[29.0,31.0],],[[34.0,73.0],[67.0,33.0],],[[61.0,53.0],[60.0,74.0],[76.0,75.0],],[[69.0,81.0],[69.0,69.0],],],
|
135
|
+
'½' => [[[28.0,43.0],[50.0,42.0],],[[41.0,44.0],[42.0,22.0],[33.0,31.0],],[[31.0,69.0],[75.0,35.0],],[[78.0,76.0],[58.0,76.0],[74.0,66.0],[76.0,60.0],[76.0,56.0],[71.0,53.0],[64.0,53.0],[60.0,59.0],],],
|
136
|
+
'ł' => [[[36.0,81.0],[67.0,80.0],],[[51.0,82.0],[51.0,24.0],[39.0,26.0],],[[41.0,60.0],[62.0,45.0],],],
|
137
|
+
'¶' => [[[46.0,82.0],[49.0,23.0],[29.0,26.0],[24.0,33.0],[24.0,41.0],[28.0,46.0],[41.0,48.0],[48.0,50.0],],[[55.0,81.0],[57.0,25.0],[49.0,24.0],],[[43.0,46.0],[44.0,30.0],[39.0,30.0],[35.0,32.0],[31.0,36.0],[31.0,40.0],[35.0,42.0],[39.0,44.0],[44.0,46.0],],],
|
138
|
+
'ŧ' => [[[36.0,28.0],[37.0,64.0],[41.0,71.0],[48.0,77.0],[56.0,76.0],[63.0,73.0],],[[24.0,39.0],[56.0,40.0],],[[28.0,59.0],[49.0,59.0],],],
|
139
|
+
'←' => [[[48.0,31.0],[49.0,80.0],],[[36.0,70.0],[50.0,79.0],[61.0,71.0],],],
|
140
|
+
'↓' => [[[24.0,48.0],[80.0,48.0],],[[69.0,37.0],[80.0,49.0],[70.0,59.0],],],
|
141
|
+
'→' => [[[57.0,78.0],[50.0,78.0],[37.0,72.0],[31.0,65.0],[29.0,57.0],[29.0,47.0],[32.0,40.0],[41.0,35.0],[50.0,35.0],[58.0,35.0],[68.0,43.0],[76.0,63.0],[75.0,70.0],[69.0,77.0],[59.0,80.0],],[[28.0,80.0],[77.0,33.0],],],
|
142
|
+
'æ' => [[[28.0,40.0],[41.0,33.0],[48.0,35.0],[54.0,66.0],[53.0,73.0],[51.0,78.0],[43.0,82.0],[33.0,76.0],[31.0,69.0],[34.0,62.0],[39.0,56.0],[45.0,57.0],[53.0,62.0],],[[76.0,80.0],[70.0,78.0],[64.0,77.0],[57.0,72.0],[55.0,63.0],[55.0,57.0],[54.0,48.0],[54.0,44.0],[56.0,39.0],[62.0,35.0],[71.0,33.0],[81.0,49.0],[82.0,56.0],[56.0,56.0],],],
|
143
|
+
'ß' => [[[37.0,82.0],[36.0,27.0],[40.0,22.0],[53.0,18.0],[62.0,19.0],[68.0,28.0],[63.0,44.0],[57.0,48.0],[44.0,50.0],[43.0,54.0],[44.0,58.0],[48.0,60.0],[52.0,61.0],[59.0,63.0],[67.0,65.0],[75.0,70.0],[68.0,86.0],[57.0,86.0],[43.0,84.0],],],
|
144
|
+
'ð' => [[[57.0,52.0],[54.0,48.0],[48.0,48.0],[41.0,47.0],[32.0,57.0],[32.0,69.0],[35.0,78.0],[44.0,83.0],[56.0,82.0],[62.0,79.0],[63.0,69.0],[63.0,53.0],[63.0,45.0],[59.0,34.0],[51.0,27.0],[41.0,22.0],],[[35.0,29.0],[48.0,17.0],],[[47.0,31.0],[39.0,17.0],],[],],
|
145
|
+
'đ' => [[[56.0,49.0],[47.0,42.0],[37.0,42.0],[31.0,48.0],[30.0,54.0],[28.0,63.0],[31.0,69.0],[37.0,76.0],[42.0,79.0],[48.0,78.0],[53.0,75.0],[56.0,71.0],],[[58.0,80.0],[57.0,21.0],],[[65.0,28.0],[45.0,29.0],],],
|
146
|
+
'ŋ' => [[[38.0,80.0],[37.0,27.0],],[[38.0,40.0],[43.0,36.0],[51.0,33.0],[62.0,32.0],[73.0,47.0],[72.0,58.0],[69.0,69.0],[70.0,78.0],[69.0,88.0],[66.0,91.0],[60.0,93.0],],],
|
147
|
+
'ħ' => [[[37.0,83.0],[39.0,20.0],],[[39.0,45.0],[44.0,42.0],[56.0,41.0],[63.0,44.0],[67.0,69.0],[66.0,80.0],[66.0,84.0],],[[33.0,28.0],[50.0,28.0],],],
|
148
|
+
'«' => [[[44.0,40.0],[34.0,57.0],[50.0,75.0],],[[62.0,41.0],[49.0,55.0],[63.0,71.0],],],
|
149
|
+
'»' => [[[36.0,44.0],[52.0,63.0],[37.0,76.0],],[[52.0,44.0],[65.0,63.0],[51.0,79.0],],],
|
150
|
+
'µ' => [[[36.0,31.0],[39.0,80.0],],[[38.0,62.0],[48.0,64.0],[54.0,64.0],[61.0,63.0],],[[63.0,72.0],[62.0,32.0],],],
|
151
|
+
'ø' => [[[50.0,82.0],[45.0,82.0],[36.0,79.0],[26.0,58.0],[27.0,48.0],[34.0,39.0],[39.0,35.0],[51.0,31.0],[67.0,38.0],[75.0,54.0],[76.0,62.0],[71.0,72.0],[65.0,78.0],[53.0,83.0],[50.0,83.0],],[[25.0,80.0],[81.0,33.0],],[],],
|
152
|
+
'þ' => [[[42.0,81.0],[39.0,23.0],],[[41.0,43.0],[47.0,36.0],[58.0,33.0],[66.0,40.0],[71.0,63.0],[65.0,69.0],[55.0,70.0],[41.0,60.0],],],
|
153
|
+
'¢' => [[[62.0,28.0],[52.0,28.0],[42.0,28.0],[32.0,34.0],[28.0,53.0],[30.0,61.0],[42.0,68.0],[49.0,71.0],[61.0,70.0],],[[52.0,74.0],[44.0,78.0],],],
|
154
|
+
'“' => [[[39.0,42.0],[52.0,26.0],[50.0,43.0],],[[58.0,45.0],[68.0,30.0],[68.0,47.0],],[],],
|
155
|
+
'”' => [[[42.0,26.0],[41.0,45.0],[54.0,29.0],],[[62.0,31.0],[60.0,47.0],[72.0,33.0],],],
|
156
|
+
' ' => [],
|
132
157
|
}
|
133
158
|
|
134
159
|
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
|
2
|
+
module ChunkyText::Font
|
3
|
+
|
4
|
+
class DefaultFont
|
5
|
+
|
6
|
+
DEFAULT_FONT_SIZE = 60.0
|
7
|
+
|
8
|
+
DESCRIPTION = "Default font provided with chunky_text.";
|
9
|
+
|
10
|
+
DEFAULT_CHAR_SPACING = 10.0
|
11
|
+
|
12
|
+
MIN_WIDTH = 10.0
|
13
|
+
MAX_WIDTH = 100.0
|
14
|
+
MIN_HEIGHT = 10.0
|
15
|
+
MAX_HEIGHT = 100.0
|
16
|
+
|
17
|
+
FONT_DATA = {
|
18
|
+
'1' => [[[81.0,81.0],[23.0,81.0],],[[52.0,82.0],[50.0,23.0],[22.0,43.0],],],
|
19
|
+
'2' => [[[81.0,81.0],[21.0,81.0],[63.0,57.0],[78.0,42.0],[79.0,31.0],[64.0,23.0],[42.0,22.0],[23.0,32.0],],],
|
20
|
+
'3' => [[[39.0,34.0],[47.0,28.0],[56.0,24.0],[68.0,24.0],[78.0,33.0],[79.0,41.0],[76.0,47.0],[66.0,52.0],[57.0,52.0],[67.0,57.0],[73.0,66.0],[73.0,72.0],[69.0,78.0],[60.0,80.0],[47.0,80.0],[38.0,71.0],],],
|
21
|
+
'4' => [[[28.0,23.0],[28.0,74.0],[80.0,72.0],],[[51.0,88.0],[54.0,58.0],],],
|
22
|
+
'5' => [[[78.0,24.0],[25.0,23.0],[23.0,42.0],[48.0,45.0],[67.0,54.0],[71.0,67.0],[64.0,77.0],[53.0,81.0],[25.0,80.0],],],
|
23
|
+
'6' => [[[68.0,23.0],[44.0,26.0],[24.0,37.0],[22.0,54.0],[27.0,72.0],[36.0,81.0],[49.0,81.0],[60.0,81.0],[69.0,74.0],[75.0,62.0],[63.0,51.0],[44.0,47.0],[30.0,56.0],[26.0,62.0],],],
|
24
|
+
'7' => [[[36.0,80.0],[78.0,24.0],[28.0,28.0],],[[44.0,51.0],[71.0,55.0],],],
|
25
|
+
'8' => [[[50.0,50.0],[37.0,41.0],[28.0,34.0],[36.0,25.0],[51.0,23.0],[65.0,30.0],[71.0,40.0],[50.0,53.0],[31.0,71.0],[34.0,82.0],[46.0,82.0],[59.0,82.0],[69.0,77.0],[67.0,66.0],[53.0,55.0],],],
|
26
|
+
'9' => [[[59.0,50.0],[51.0,52.0],[35.0,50.0],[29.0,40.0],[34.0,27.0],[45.0,22.0],[61.0,25.0],[68.0,37.0],[66.0,52.0],[61.0,60.0],[54.0,73.0],[46.0,78.0],[34.0,78.0],[25.0,65.0],],],
|
27
|
+
'0' => [[[51.0,82.0],[44.0,79.0],[35.0,74.0],[24.0,65.0],[20.0,53.0],[23.0,39.0],[30.0,30.0],[42.0,24.0],[52.0,22.0],[64.0,26.0],[75.0,34.0],[78.0,46.0],[76.0,59.0],[72.0,70.0],[67.0,78.0],[53.0,83.0],],],
|
28
|
+
'a' => [[[50.0,81.0],[42.0,80.0],[35.0,73.0],[37.0,68.0],[42.0,63.0],[49.0,60.0],[56.0,64.0],[61.0,72.0],[57.0,78.0],[51.0,81.0],],[[36.0,48.0],[41.0,46.0],[51.0,42.0],[57.0,47.0],[62.0,63.0],[62.0,70.0],[64.0,77.0],[69.0,79.0],[72.0,77.0],],[[211.0,181.0],],],
|
29
|
+
'b' => [[[40.0,22.0],[41.0,82.0],],[[42.0,50.0],[53.0,50.0],[60.0,54.0],[64.0,68.0],[55.0,79.0],[41.0,82.0],],[],],
|
30
|
+
'c' => [[[58.0,43.0],[50.0,42.0],[38.0,51.0],[36.0,57.0],[37.0,67.0],[39.0,73.0],[45.0,78.0],[60.0,79.0],],],
|
31
|
+
'd' => [[[59.0,82.0],[58.0,21.0],],[[59.0,81.0],[50.0,79.0],[46.0,78.0],[42.0,76.0],[39.0,70.0],[39.0,61.0],[41.0,57.0],[47.0,55.0],[54.0,55.0],[58.0,55.0],],],
|
32
|
+
'e' => [[[39.0,61.0],[64.0,61.0],[65.0,59.0],[63.0,55.0],[61.0,52.0],[54.0,46.0],[44.0,46.0],[41.0,52.0],[37.0,60.0],[38.0,69.0],[43.0,76.0],[47.0,77.0],[55.0,78.0],[60.0,78.0],[63.0,74.0],],],
|
33
|
+
'f' => [[[42.0,82.0],[43.0,75.0],[45.0,69.0],[45.0,61.0],[45.0,53.0],[45.0,44.0],[46.0,34.0],[47.0,25.0],[53.0,21.0],[60.0,24.0],],[[39.0,52.0],[43.0,56.0],[52.0,53.0],],[],],
|
34
|
+
'g' => [[[62.0,64.0],[61.0,70.0],[55.0,78.0],[50.0,81.0],[46.0,81.0],[42.0,77.0],[37.0,65.0],[39.0,57.0],[47.0,52.0],[54.0,53.0],[61.0,60.0],[64.0,67.0],],[[63.0,52.0],[63.0,59.0],[63.0,66.0],[63.0,76.0],[63.0,87.0],[62.0,91.0],[56.0,97.0],[45.0,97.0],[40.0,94.0],[38.0,91.0],],],
|
35
|
+
'h' => [[[43.0,80.0],[43.0,22.0],],[[45.0,55.0],[50.0,57.0],[59.0,57.0],[64.0,62.0],[65.0,71.0],[65.0,80.0],],[],],
|
36
|
+
'i' => [[[43.0,82.0],[57.0,82.0],],[[50.0,84.0],[50.0,52.0],],[[44.0,55.0],[57.0,54.0],],[[54.0,44.0],[50.0,43.0],[49.0,43.0],[47.0,40.0],[50.0,37.0],[54.0,38.0],[55.0,42.0],],[],],
|
37
|
+
'j' => [[[54.0,49.0],[68.0,51.0],],[[62.0,52.0],[62.0,59.0],[60.0,67.0],[58.0,77.0],[55.0,82.0],[50.0,87.0],[43.0,92.0],[37.0,90.0],],[[63.0,43.0],[60.0,41.0],[59.0,37.0],[63.0,38.0],[64.0,41.0],],],
|
38
|
+
'k' => [[[42.0,81.0],[42.0,44.0],],[[44.0,62.0],[55.0,50.0],],[[44.0,62.0],[60.0,80.0],],],
|
39
|
+
'l' => [[[54.0,36.0],[54.0,73.0],[56.0,79.0],[61.0,81.0],],],
|
40
|
+
'm' => [[[35.0,81.0],[35.0,45.0],],[[36.0,56.0],[41.0,51.0],[51.0,49.0],[54.0,56.0],[54.0,69.0],[55.0,80.0],],[[55.0,56.0],[62.0,52.0],[69.0,52.0],[76.0,60.0],[76.0,80.0],],[],],
|
41
|
+
'n' => [[[40.0,81.0],[39.0,44.0],],[[40.0,57.0],[47.0,54.0],[54.0,51.0],[63.0,57.0],[66.0,65.0],[66.0,80.0],],],
|
42
|
+
'o' => [[[49.0,80.0],[45.0,80.0],[38.0,74.0],[34.0,71.0],[32.0,65.0],[34.0,58.0],[41.0,55.0],[50.0,54.0],[57.0,56.0],[64.0,67.0],[63.0,72.0],[57.0,80.0],[48.0,81.0],],],
|
43
|
+
'p' => [[[42.0,99.0],[42.0,44.0],],[[43.0,51.0],[51.0,51.0],[62.0,51.0],[68.0,58.0],[69.0,66.0],[65.0,73.0],[56.0,79.0],[42.0,79.0],],],
|
44
|
+
'q' => [[[61.0,47.0],[61.0,98.0],],[[61.0,53.0],[49.0,52.0],[40.0,55.0],[36.0,63.0],[37.0,71.0],[42.0,76.0],[46.0,79.0],[61.0,81.0],],],
|
45
|
+
'r' => [[[38.0,80.0],[37.0,43.0],],[[38.0,52.0],[45.0,48.0],[55.0,48.0],[62.0,51.0],[65.0,57.0],],],
|
46
|
+
's' => [[[62.0,51.0],[58.0,48.0],[50.0,44.0],[42.0,43.0],[37.0,48.0],[36.0,56.0],[39.0,61.0],[46.0,64.0],[50.0,65.0],[56.0,66.0],[60.0,77.0],[52.0,81.0],[44.0,81.0],[35.0,75.0],],],
|
47
|
+
't' => [[[42.0,32.0],[42.0,38.0],[42.0,49.0],[42.0,66.0],[46.0,75.0],[52.0,79.0],[60.0,80.0],[63.0,75.0],],[[37.0,43.0],[49.0,43.0],],],
|
48
|
+
'u' => [[[30.0,41.0],[32.0,52.0],[33.0,61.0],[36.0,75.0],[42.0,78.0],[50.0,80.0],[62.0,77.0],[63.0,71.0],[64.0,60.0],[64.0,51.0],[67.0,43.0],[68.0,81.0],],],
|
49
|
+
'v' => [[[31.0,44.0],[49.0,80.0],[64.0,45.0],],],
|
50
|
+
'w' => [[[26.0,45.0],[44.0,79.0],[58.0,46.0],],[[41.0,48.0],[63.0,79.0],[76.0,50.0],],],
|
51
|
+
'x' => [[[35.0,82.0],[65.0,46.0],],[[35.0,47.0],[64.0,82.0],],],
|
52
|
+
'y' => [[[37.0,98.0],[45.0,99.0],[54.0,97.0],[57.0,92.0],[61.0,84.0],[64.0,71.0],[66.0,56.0],[69.0,44.0],],[[63.0,74.0],[53.0,73.0],[40.0,55.0],[38.0,49.0],],],
|
53
|
+
'z' => [[[34.0,44.0],[68.0,45.0],[38.0,81.0],[66.0,81.0],],[[47.0,61.0],[61.0,63.0],],],
|
54
|
+
'A' => [[[21.0,81.0],[50.0,22.0],[80.0,82.0],],[[37.0,54.0],[66.0,54.0],],],
|
55
|
+
'B' => [[[24.0,81.0],[26.0,22.0],[49.0,22.0],[67.0,31.0],[70.0,43.0],[66.0,52.0],[28.0,53.0],[60.0,56.0],[68.0,63.0],[69.0,74.0],[64.0,82.0],[25.0,83.0],],],
|
56
|
+
'C' => [[[69.0,31.0],[57.0,23.0],[33.0,22.0],[25.0,32.0],[21.0,46.0],[21.0,70.0],[32.0,77.0],[44.0,82.0],[58.0,80.0],[69.0,68.0],],],
|
57
|
+
'D' => [[[26.0,81.0],[27.0,23.0],[47.0,24.0],[65.0,34.0],[71.0,47.0],[70.0,57.0],[65.0,70.0],[52.0,79.0],[28.0,81.0],],],
|
58
|
+
'E' => [[[74.0,23.0],[27.0,22.0],[30.0,81.0],[72.0,82.0],],[[30.0,54.0],[47.0,54.0],],],
|
59
|
+
'F' => [[[30.0,81.0],[29.0,23.0],[69.0,24.0],],[[31.0,51.0],[45.0,51.0],],],
|
60
|
+
'G' => [[[67.0,28.0],[49.0,22.0],[30.0,23.0],[22.0,38.0],[21.0,51.0],[24.0,71.0],[36.0,78.0],[47.0,81.0],[61.0,79.0],[64.0,70.0],[63.0,58.0],[43.0,60.0],],],
|
61
|
+
'H' => [[[26.0,81.0],[27.0,22.0],],[[73.0,82.0],[71.0,22.0],],[[28.0,51.0],[73.0,52.0],],],
|
62
|
+
'I' => [[[38.0,22.0],[60.0,22.0],],[[42.0,82.0],[56.0,82.0],],[[50.0,84.0],[49.0,24.0],],],
|
63
|
+
'J' => [[[31.0,23.0],[69.0,22.0],],[[51.0,24.0],[50.0,65.0],[46.0,74.0],[37.0,80.0],[27.0,74.0],[20.0,61.0],],],
|
64
|
+
'K' => [[[28.0,82.0],[29.0,21.0],],[[29.0,54.0],[58.0,25.0],],[[30.0,53.0],[61.0,82.0],],],
|
65
|
+
'L' => [[[27.0,23.0],[26.0,82.0],[75.0,83.0],],],
|
66
|
+
'M' => [[[22.0,82.0],[22.0,22.0],[50.0,44.0],[79.0,23.0],[80.0,82.0],],],
|
67
|
+
'N' => [[[26.0,82.0],[25.0,21.0],[73.0,81.0],[73.0,24.0],],],
|
68
|
+
'O' => [[[45.0,82.0],[34.0,76.0],[22.0,60.0],[22.0,36.0],[36.0,22.0],[52.0,21.0],[66.0,25.0],[77.0,39.0],[80.0,51.0],[79.0,66.0],[72.0,79.0],[58.0,84.0],[46.0,83.0],],],
|
69
|
+
'P' => [[[28.0,81.0],[28.0,23.0],[53.0,25.0],[68.0,33.0],[71.0,44.0],[60.0,50.0],[47.0,54.0],[29.0,54.0],],],
|
70
|
+
'Q' => [[[80.0,53.0],[77.0,65.0],[63.0,73.0],[47.0,80.0],[35.0,80.0],[28.0,72.0],[22.0,57.0],[21.0,43.0],[26.0,32.0],[46.0,25.0],[63.0,23.0],[70.0,32.0],[79.0,51.0],],[[75.0,80.0],[60.0,62.0],],],
|
71
|
+
'R' => [[[26.0,81.0],[26.0,21.0],[57.0,23.0],[69.0,34.0],[70.0,44.0],[64.0,54.0],[28.0,56.0],[67.0,81.0],],],
|
72
|
+
'S' => [[[70.0,22.0],[33.0,24.0],[24.0,35.0],[24.0,43.0],[32.0,50.0],[45.0,52.0],[59.0,53.0],[69.0,61.0],[74.0,70.0],[68.0,79.0],[53.0,82.0],[24.0,82.0],],],
|
73
|
+
'T' => [[[50.0,21.0],[53.0,81.0],],[[22.0,23.0],[80.0,23.0],],],
|
74
|
+
'U' => [[[22.0,23.0],[22.0,61.0],[31.0,74.0],[43.0,79.0],[57.0,81.0],[69.0,77.0],[76.0,69.0],[79.0,60.0],[79.0,23.0],],],
|
75
|
+
'V' => [[[21.0,21.0],[52.0,81.0],[80.0,23.0],],],
|
76
|
+
'W' => [[[21.0,20.0],[39.0,80.0],[60.0,22.0],],[[40.0,23.0],[61.0,80.0],[79.0,23.0],],],
|
77
|
+
'X' => [[[25.0,21.0],[75.0,81.0],],[[30.0,81.0],[73.0,22.0],],],
|
78
|
+
'Y' => [[[27.0,82.0],[75.0,22.0],],[[55.0,50.0],[25.0,21.0],],],
|
79
|
+
'Z' => [[[24.0,21.0],[78.0,22.0],[27.0,81.0],[76.0,81.0],],],
|
80
|
+
'!' => [[[49.0,23.0],[51.0,66.0],],[[48.0,80.0],[56.0,75.0],],[[56.0,80.0],[49.0,75.0],],],
|
81
|
+
'"' => [[[34.0,23.0],[35.0,39.0],[43.0,24.0],],[[55.0,24.0],[55.0,37.0],[65.0,23.0],],],
|
82
|
+
'£' => [[[66.0,24.0],[42.0,24.0],[34.0,31.0],[34.0,72.0],[27.0,81.0],[70.0,81.0],],[[28.0,51.0],[49.0,52.0],],],
|
83
|
+
'$' => [[[66.0,29.0],[56.0,24.0],[41.0,21.0],[31.0,27.0],[25.0,38.0],[26.0,48.0],[35.0,52.0],[45.0,52.0],[55.0,54.0],[63.0,60.0],[63.0,65.0],[62.0,73.0],[51.0,78.0],[41.0,80.0],[30.0,81.0],[22.0,74.0],],[[41.0,85.0],[38.0,20.0],],[[48.0,84.0],[47.0,20.0],],],
|
84
|
+
'%' => [[[24.0,81.0],[75.0,21.0],],[[42.0,37.0],[34.0,37.0],[27.0,34.0],[27.0,27.0],[35.0,22.0],[42.0,25.0],[46.0,33.0],[42.0,38.0],],[[65.0,76.0],[54.0,77.0],[51.0,70.0],[55.0,63.0],[63.0,60.0],[68.0,65.0],[70.0,70.0],[66.0,76.0],],],
|
85
|
+
'&' => [[[66.0,75.0],[35.0,42.0],[30.0,30.0],[37.0,19.0],[54.0,21.0],[62.0,27.0],[58.0,39.0],[50.0,48.0],[31.0,60.0],[24.0,70.0],[30.0,78.0],[47.0,81.0],[56.0,79.0],[68.0,57.0],],],
|
86
|
+
'/' => [[[27.0,80.0],[70.0,22.0],],],
|
87
|
+
'(' => [[[57.0,19.0],[43.0,26.0],[36.0,35.0],[29.0,47.0],[29.0,59.0],[36.0,71.0],[45.0,77.0],[58.0,85.0],],],
|
88
|
+
')' => [[[36.0,16.0],[48.0,26.0],[57.0,31.0],[63.0,54.0],[59.0,65.0],[53.0,76.0],[38.0,90.0],],],
|
89
|
+
'=' => [[[21.0,39.0],[80.0,39.0],],[[22.0,57.0],[80.0,58.0],],],
|
90
|
+
'?' => [[[45.0,81.0],[53.0,76.0],],[[53.0,84.0],[45.0,74.0],],[[50.0,68.0],[49.0,61.0],[51.0,57.0],[59.0,50.0],[65.0,44.0],[65.0,36.0],[58.0,26.0],[53.0,22.0],[40.0,22.0],[33.0,28.0],[31.0,33.0],[34.0,38.0],[38.0,40.0],],],
|
91
|
+
'\'' => [[[49.0,22.0],[49.0,40.0],[44.0,23.0],],],
|
92
|
+
'^' => [[[34.0,36.0],[51.0,23.0],[67.0,38.0],],],
|
93
|
+
'ì' => [[[49.0,81.0],[47.0,37.0],],[[52.0,30.0],[41.0,15.0],],],
|
94
|
+
'>' => [[[23.0,25.0],[81.0,50.0],[23.0,64.0],],],
|
95
|
+
'<' => [[[80.0,29.0],[21.0,49.0],[80.0,63.0],],],
|
96
|
+
';' => [[[46.0,34.0],[40.0,29.0],[40.0,21.0],[47.0,20.0],[53.0,23.0],[54.0,29.0],[47.0,34.0],],[[48.0,44.0],[49.0,54.0],[50.0,66.0],[43.0,78.0],[33.0,88.0],],],
|
97
|
+
',' => [[[49.0,55.0],[47.0,72.0],[40.0,90.0],[33.0,91.0],],],
|
98
|
+
':' => [[[44.0,29.0],[51.0,37.0],],[[43.0,38.0],[51.0,31.0],],[[43.0,75.0],[49.0,68.0],],[[51.0,76.0],[42.0,68.0],],],
|
99
|
+
'.' => [[[46.0,81.0],[54.0,75.0],],[[54.0,83.0],[47.0,75.0],],],
|
100
|
+
'-' => [[[23.0,48.0],[80.0,51.0],],],
|
101
|
+
'_' => [[[21.0,81.0],[81.0,81.0],],],
|
102
|
+
'+' => [[[22.0,51.0],[82.0,52.0],],[[49.0,23.0],[50.0,81.0],],],
|
103
|
+
'*' => [[[22.0,49.0],[80.0,51.0],],[[50.0,81.0],[49.0,22.0],],[[71.0,72.0],[33.0,34.0],],[[31.0,69.0],[64.0,34.0],],],
|
104
|
+
'|' => [[[49.0,82.0],[48.0,22.0],],],
|
105
|
+
'\\' => [[[29.0,21.0],[71.0,82.0],],],
|
106
|
+
'[' => [[[63.0,21.0],[36.0,20.0],[39.0,82.0],[64.0,82.0],],],
|
107
|
+
']' => [[[36.0,21.0],[62.0,22.0],[61.0,82.0],[39.0,82.0],],],
|
108
|
+
'{' => [[[64.0,22.0],[54.0,24.0],[49.0,26.0],[47.0,34.0],[49.0,43.0],[47.0,51.0],[36.0,53.0],[45.0,56.0],[48.0,60.0],[48.0,70.0],[45.0,75.0],[46.0,81.0],[50.0,84.0],[60.0,84.0],],],
|
109
|
+
'}' => [[[43.0,23.0],[49.0,24.0],[55.0,27.0],[58.0,33.0],[56.0,44.0],[58.0,48.0],[63.0,49.0],[69.0,51.0],[59.0,54.0],[55.0,58.0],[58.0,64.0],[60.0,72.0],[54.0,81.0],[47.0,84.0],[41.0,84.0],],],
|
110
|
+
'@' => [[[61.0,62.0],[58.0,66.0],[49.0,72.0],[40.0,69.0],[36.0,63.0],[35.0,51.0],[39.0,44.0],[50.0,43.0],[58.0,48.0],[62.0,61.0],],[[61.0,40.0],[62.0,53.0],[62.0,62.0],[62.0,68.0],[65.0,71.0],[68.0,73.0],[72.0,70.0],[72.0,65.0],[72.0,55.0],[72.0,48.0],[70.0,39.0],[64.0,29.0],[57.0,26.0],[45.0,24.0],[38.0,27.0],[27.0,33.0],[24.0,42.0],[24.0,56.0],[27.0,70.0],[33.0,75.0],[42.0,79.0],[54.0,80.0],[64.0,81.0],[76.0,76.0],],],
|
111
|
+
'#' => [[[21.0,39.0],[82.0,43.0],],[[23.0,56.0],[81.0,59.0],],[[42.0,81.0],[44.0,22.0],],[[63.0,81.0],[64.0,21.0],],],
|
112
|
+
'ç' => [[[67.0,26.0],[60.0,23.0],[37.0,24.0],[24.0,27.0],[18.0,42.0],[19.0,58.0],[24.0,66.0],[38.0,68.0],[46.0,70.0],[61.0,68.0],[68.0,67.0],],[[37.0,70.0],[48.0,74.0],[54.0,77.0],[51.0,82.0],[41.0,83.0],[36.0,84.0],],],
|
113
|
+
'°' => [[[46.0,38.0],[39.0,36.0],[36.0,31.0],[37.0,26.0],[45.0,20.0],[52.0,22.0],[56.0,27.0],[57.0,33.0],[53.0,36.0],[47.0,39.0],],],
|
114
|
+
'§' => [[[58.0,17.0],[48.0,22.0],[41.0,26.0],[41.0,33.0],[46.0,39.0],[50.0,43.0],[56.0,47.0],[59.0,55.0],[57.0,62.0],[47.0,66.0],[40.0,65.0],[37.0,62.0],[37.0,56.0],[40.0,50.0],[48.0,44.0],],[[48.0,67.0],[56.0,72.0],[59.0,76.0],[59.0,82.0],[54.0,87.0],[44.0,88.0],[38.0,91.0],],],
|
115
|
+
'€' => [[[72.0,36.0],[67.0,31.0],[58.0,27.0],[47.0,29.0],[38.0,33.0],[29.0,42.0],[30.0,65.0],[34.0,73.0],[43.0,78.0],[52.0,79.0],[61.0,80.0],[69.0,74.0],[73.0,70.0],],[[22.0,59.0],[51.0,59.0],],[[22.0,48.0],[49.0,49.0],],],
|
116
|
+
'`' => [[[54.0,41.0],[40.0,22.0],],],
|
117
|
+
'~' => [[[22.0,54.0],[28.0,47.0],[35.0,44.0],[43.0,43.0],[51.0,49.0],[56.0,56.0],[60.0,61.0],[69.0,63.0],[75.0,59.0],[80.0,53.0],],],
|
118
|
+
'ñ' => [[[34.0,81.0],[35.0,42.0],],[[36.0,54.0],[43.0,49.0],[50.0,45.0],[61.0,45.0],[69.0,53.0],[70.0,82.0],],[[35.0,32.0],[38.0,29.0],[42.0,28.0],[52.0,33.0],[53.0,34.0],[56.0,37.0],[60.0,36.0],[66.0,32.0],[69.0,30.0],],],
|
119
|
+
'é' => [[[63.0,66.0],[59.0,73.0],[50.0,79.0],[43.0,79.0],[37.0,73.0],[32.0,65.0],[29.0,52.0],[31.0,43.0],[41.0,40.0],[54.0,40.0],[63.0,47.0],[64.0,53.0],[30.0,54.0],],[[42.0,31.0],[56.0,22.0],],],
|
120
|
+
'è' => [[[62.0,69.0],[59.0,75.0],[52.0,80.0],[47.0,80.0],[41.0,80.0],[35.0,74.0],[30.0,66.0],[31.0,59.0],[34.0,50.0],[40.0,44.0],[51.0,41.0],[59.0,46.0],[63.0,55.0],[33.0,54.0],],[[55.0,35.0],[39.0,25.0],],],
|
121
|
+
'ò' => [[[55.0,80.0],[50.0,80.0],[42.0,79.0],[34.0,70.0],[31.0,64.0],[31.0,56.0],[38.0,46.0],[52.0,45.0],[69.0,62.0],[67.0,71.0],[60.0,79.0],[50.0,80.0],],[[59.0,35.0],[37.0,22.0],],],
|
122
|
+
'à' => [[[33.0,46.0],[39.0,43.0],[46.0,43.0],[55.0,42.0],[63.0,57.0],[62.0,66.0],[60.0,75.0],[64.0,79.0],[71.0,81.0],],[[61.0,69.0],[59.0,73.0],[53.0,77.0],[48.0,80.0],[40.0,80.0],[38.0,80.0],[33.0,74.0],[33.0,68.0],[41.0,62.0],[51.0,61.0],[57.0,66.0],[62.0,69.0],],[[55.0,32.0],[38.0,23.0],],],
|
123
|
+
'ù' => [[[33.0,44.0],[33.0,52.0],[35.0,63.0],[40.0,72.0],[44.0,78.0],[49.0,79.0],[54.0,80.0],[61.0,77.0],[64.0,72.0],[67.0,62.0],[68.0,47.0],],[[68.0,80.0],[68.0,53.0],],[[60.0,40.0],[41.0,25.0],],],
|
124
|
+
'ì' => [[[48.0,81.0],[47.0,42.0],],[[55.0,35.0],[41.0,26.0],],],
|
125
|
+
'É' => [[[79.0,28.0],[21.0,28.0],[21.0,80.0],[76.0,81.0],],[[21.0,52.0],[49.0,55.0],],[[30.0,22.0],[63.0,7.0],],],
|
126
|
+
'È' => [[[79.0,31.0],[20.0,32.0],[22.0,80.0],[80.0,82.0],],[[23.0,54.0],[48.0,56.0],],[[62.0,25.0],[36.0,7.0],],],
|
127
|
+
'Ò' => [[[51.0,80.0],[41.0,77.0],[26.0,64.0],[24.0,56.0],[26.0,43.0],[36.0,34.0],[55.0,28.0],[67.0,34.0],[73.0,44.0],[75.0,55.0],[70.0,77.0],[50.0,82.0],],[[62.0,24.0],[36.0,8.0],],],
|
128
|
+
'À' => [[[26.0,82.0],[51.0,25.0],[70.0,81.0],],[[40.0,56.0],[62.0,56.0],],[[63.0,23.0],[34.0,6.0],],],
|
129
|
+
'Ù' => [[[27.0,30.0],[28.0,42.0],[27.0,60.0],[35.0,74.0],[48.0,81.0],[58.0,82.0],[70.0,76.0],[73.0,65.0],[73.0,39.0],[74.0,30.0],],[[61.0,28.0],[38.0,7.0],],],
|
130
|
+
' ' => [],
|
131
|
+
|
132
|
+
}
|
133
|
+
|
134
|
+
end
|
135
|
+
|
136
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chunky_text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Bagnaresi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -55,17 +55,9 @@ dependencies:
|
|
55
55
|
description: |+
|
56
56
|
chunky_text is a gem for writing vector text over png images (depends on chunky_png).
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
FEATURES :
|
63
|
-
|
64
|
-
- Write a single line of text of any size and color.
|
65
|
-
- Accented italian/english chars, uppercase and lowercase, special charactes.
|
66
|
-
|
67
|
-
|
68
|
-
I hope it can be useful. I'll add some more useful features in my spare time.
|
58
|
+
Actually it's possible to write a single line of text of any size and color.
|
59
|
+
Accented italian/english chars, uppercase and lowercase, special charactes in
|
60
|
+
a default font are included.
|
69
61
|
|
70
62
|
-Marco Bagnaresi
|
71
63
|
|
@@ -75,10 +67,11 @@ extensions: []
|
|
75
67
|
extra_rdoc_files: []
|
76
68
|
files:
|
77
69
|
- LICENSE
|
78
|
-
- README
|
70
|
+
- README
|
79
71
|
- chunky_text.gemspec
|
80
72
|
- chunky_text.rb
|
81
73
|
- font/default_font.rb
|
74
|
+
- font/default_font.rb~
|
82
75
|
- font_metrics.rb
|
83
76
|
homepage: http://www.mbcraft.it/products/chunky_text.php
|
84
77
|
licenses:
|
data/README.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
chunky_text is a gem for writing vector text over png images (depends on chunky_png).
|
2
|
-
|
3
|
-
This library is useful for :
|
4
|
-
|
5
|
-
- Writing vector text on png images (annotations)
|
6
|
-
|
7
|
-
FEATURES :
|
8
|
-
|
9
|
-
- Write a single line of text of any size and color.
|
10
|
-
- Accented italian/english chars, uppercase and lowercase, special charactes.
|
11
|
-
|
12
|
-
|
13
|
-
I hope it can be useful. I'll add some more useful features in my spare time.
|
14
|
-
|
15
|
-
-Marco Bagnaresi
|
16
|
-
|