broyang commited on
Commit
a58e94b
·
1 Parent(s): 0c0ebd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -83,7 +83,7 @@ def draw_scale_bar(right_img, exif_data, compass, line_img, paste_x_position, pa
83
  # Draw scale bar
84
  draw = ImageDraw.Draw(right_img)
85
  try:
86
- font = ImageFont.truetype("Arial Unicode.ttf", font_size) #DejaVuSans.ttf, Arial.ttf
87
  print("loaded font")
88
  except IOError:
89
  font = ImageFont.load_default()
@@ -113,7 +113,7 @@ def draw_scale_bar(right_img, exif_data, compass, line_img, paste_x_position, pa
113
 
114
  #feet per inch
115
  try:
116
- font = ImageFont.truetype("Arial Unicode.ttf", int(font_size * 1.3)) #DejaVuSans.ttf, Arial.ttf
117
  except IOError:
118
  font = ImageFont.load_default()
119
  dpi = calculate_dpi(pixel_scale_x, latitude)
 
83
  # Draw scale bar
84
  draw = ImageDraw.Draw(right_img)
85
  try:
86
+ font = ImageFont.truetype("DejaVuSans.ttf", font_size) #DejaVuSans.ttf, Arial.ttf
87
  print("loaded font")
88
  except IOError:
89
  font = ImageFont.load_default()
 
113
 
114
  #feet per inch
115
  try:
116
+ font = ImageFont.truetype("DejaVuSans.ttf", int(font_size * 1.3)) #DejaVuSans.ttf, Arial.ttf
117
  except IOError:
118
  font = ImageFont.load_default()
119
  dpi = calculate_dpi(pixel_scale_x, latitude)