Skip to content

Commit

Permalink
Lato
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypoydar committed Mar 16, 2015
1 parent 8687885 commit c32d5b7
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.rb
Expand Up @@ -7,7 +7,7 @@ class InitialsAvatar < Sinatra::Base
FONT_RATIO = 0.30

# Shift down text 4% from the center, since we're using caps
Y_OFFSET = 0.01
Y_OFFSET = -0.01

# Resize filter and sharpness settings
# See http://stackoverflow.com/a/13243833/102542 for samples
Expand Down Expand Up @@ -43,7 +43,7 @@ class InitialsAvatar < Sinatra::Base

# Create the text annotation
Magick::Draw.new.annotate(img, canvas_size,canvas_size,0,canvas_size*Y_OFFSET, params[:initials][0..2].upcase) do
self.font = 'ProximaNova-Sbold.ttf'
self.font = 'fonts/Lato-Bold.ttf'
self.fill = fill
self.gravity = Magick::CenterGravity
self.pointsize = canvas_size*FONT_RATIO
Expand Down
Binary file added fonts/Lato-Black.ttf
Binary file not shown.
Binary file added fonts/Lato-BlackItalic.ttf
Binary file not shown.
Binary file added fonts/Lato-Bold.ttf
Binary file not shown.
Binary file added fonts/Lato-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/Lato-Hairline.ttf
Binary file not shown.
Binary file added fonts/Lato-HairlineItalic.ttf
Binary file not shown.
Binary file added fonts/Lato-Italic.ttf
Binary file not shown.
Binary file added fonts/Lato-Light.ttf
Binary file not shown.
Binary file added fonts/Lato-LightItalic.ttf
Binary file not shown.
Binary file added fonts/Lato-Regular.ttf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c32d5b7

Please sign in to comment.