Spaces:
Running
Running
Update app.py
Browse files
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("
|
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("
|
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)
|