In your Rakefile add your font in the app setup.
Motion::Project::App.setup do |app|
# App Settings
app.fonts = ['st-marie.ttf']
end
Make sure your st-marie.ttf is in your resources directory
To use in your app do the following
my_font = UIFont.fontWithName 'St Marie', size: 32
To find your font family name
UIFont.familyNames.sort # Should contain 'St Marie'
To find the font names for a family name
# Returns array of font names for 'St Marie'
UIFont.fontNamesForFamilyName 'St Marie'
Categories
- agile (1)
- agile-retrospectives (1)
- agile-teams (1)
- ansible (1)
- aws (2)
- aws-cli-tools (1)
- bash (2)
- ci (1)
- ci-cd (1)
- dependency-injection (1)
- developer-tools (2)
- devops (3)
- documentation (1)
- elixir (1)
- fishshell (1)
- gitlab (1)
- go (4)
- golang (8)
- golang-pkg (1)
- golang-tabwriter (1)
- golang-testing (1)
- hugo (1)
- infrastructure-as-code (3)
- ios (1)
- js (1)
- lambda (1)
- programming-languages (1)
- refactoring (1)
- retrospectives (1)
- ruby (1)
- rubymotion (1)
- security (1)
- serverless (1)
- team-culture (1)
- terraform (2)
- testing (4)
- til (5)
- vagrant (1)
- work-culture (1)