Skip to content

Instantly share code, notes, and snippets.

@beakr
Created May 13, 2012 15:21
Show Gist options
  • Save beakr/2688904 to your computer and use it in GitHub Desktop.
Save beakr/2688904 to your computer and use it in GitHub Desktop.
Custom fonts in Rubymotion
# Rakefile
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'helloapp'
app.fonts = ['consolas.ttf']
end
# Put consolas.ttf in resources/
# your_controller.rb
UIFont.fontWithName('Consolas', size:30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment