Sha256: 131b20d2cdab6f84b01be7add5fa394dda3da0713703fc1c5b67c143bfe3b262
Contents?: true
Size: 791 Bytes
Versions: 44
Compression:
Stored size: 791 Bytes
Contents
describe "Symbol" do describe "uifont" do it "should work with system fonts" do UIFont.should === :system.uifont UIFont.should === :bold.uifont UIFont.should === :italic.uifont end it "should work with custom fonts" do :monospace.uifont.should != nil UIFont.should === :monospace.uifont end it "should allow customization" do Symbol.system_fonts[:default] = 'Helvetica' :default.uifont.tap do |subject| UIFont.should === subject subject.fontName.should == 'Helvetica' end end it "should accept point size" do :system.uifont(40).pointSize.should == 40 end it "should accept symbol size" do :system.uifont(:label).pointSize.should == UIFont.labelFontSize end end end
Version data entries
44 entries across 44 versions & 1 rubygems