Sha256: 662a97c3ba966af99c21a599be0da4656922f5ab84d3a853cc6bb736d2776975

Contents?: true

Size: 761 Bytes

Versions: 54

Compression:

Stored size: 761 Bytes

Contents

describe "Symbol - uifont" do

  it "should work with system fonts" do
    :system.uifont.should.be.kind_of(UIFont)
    :bold.uifont.should.be.kind_of(UIFont)
    :italic.uifont.should.be.kind_of(UIFont)
  end

  it "should work with custom fonts" do
    :monospace.uifont.should != nil
    :monospace.uifont.should.be.kind_of(UIFont)
  end

  it "should allow customization" do
    Symbol.uifont[:default] = 'Helvetica'
    :default.uifont.tap do |subject|
      subject.should.be.kind_of(UIFont)
      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

54 entries across 54 versions & 1 rubygems

Version Path
sugarcube-3.0.4 spec/ios/symbol_uifont_spec.rb
sugarcube-3.0.3 spec/ios/symbol_uifont_spec.rb
sugarcube-3.0.2 spec/ios/symbol_uifont_spec.rb
sugarcube-3.0.1 spec/ios/symbol_uifont_spec.rb
sugarcube-3.0.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.12.3 spec/ios/symbol_uifont_spec.rb
sugarcube-2.12.2 spec/ios/symbol_uifont_spec.rb
sugarcube-2.12.1 spec/ios/symbol_uifont_spec.rb
sugarcube-2.12.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.11.1 spec/ios/symbol_uifont_spec.rb
sugarcube-2.11.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.10.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.9.1 spec/ios/symbol_uifont_spec.rb
sugarcube-2.8.2 spec/ios/symbol_uifont_spec.rb
sugarcube-2.8.1 spec/ios/symbol_uifont_spec.rb
sugarcube-2.8.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.7.1 spec/ios/symbol_uifont_spec.rb
sugarcube-2.7.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.6.0 spec/ios/symbol_uifont_spec.rb
sugarcube-2.5.0 spec/ios/symbol_uifont_spec.rb