sugarcube 0.18.2 → 0.18.3
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.
- data/lib/sugarcube/symbol.rb +2 -2
- data/lib/sugarcube/version.rb +1 -1
- data/spec/symbol_spec.rb +4 -2
- metadata +1 -1
data/lib/sugarcube/symbol.rb
CHANGED
@@ -673,7 +673,7 @@ class Symbol
|
|
673
673
|
if Symbol.system_fonts.has_key? self
|
674
674
|
font = look_in(Symbol.system_fonts)
|
675
675
|
if size.is_a?(Symbol)
|
676
|
-
size =
|
676
|
+
size = size.uifontsize
|
677
677
|
end
|
678
678
|
|
679
679
|
if font.is_a?(Symbol)
|
@@ -682,7 +682,7 @@ class Symbol
|
|
682
682
|
return font.uifont(size)
|
683
683
|
end
|
684
684
|
else
|
685
|
-
size =
|
685
|
+
size = size.uifontsize
|
686
686
|
return UIFont.systemFontOfSize(size)
|
687
687
|
end
|
688
688
|
end
|
data/lib/sugarcube/version.rb
CHANGED
data/spec/symbol_spec.rb
CHANGED
@@ -22,8 +22,10 @@ describe "Symbol" do
|
|
22
22
|
|
23
23
|
it "should accept point size" do
|
24
24
|
:system.uifont(40).pointSize.should == 40
|
25
|
-
|
26
|
-
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should accept symbol size" do
|
28
|
+
:system.uifont(:label).pointSize.should == UIFont.labelFontSize
|
27
29
|
end
|
28
30
|
|
29
31
|
end
|