Sha256: 8474d3030c68905c30b51f88500b49b9771f935785aad06a3822eb90832ac3d9
Contents?: true
Size: 721 Bytes
Versions: 43
Compression:
Stored size: 721 Bytes
Contents
describe "Symbol - 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.uifont[: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
Version data entries
43 entries across 43 versions & 1 rubygems