Spaces:
Sleeping
Sleeping
Update chroma/chroma/utility/chroma.py
Browse files
chroma/chroma/utility/chroma.py
CHANGED
@@ -41,7 +41,7 @@ def letter_to_point_cloud(
|
|
41 |
depth = int(depth_ratio * width_pixels)
|
42 |
fontsize = int(fontsize_ratio * width_pixels)
|
43 |
|
44 |
-
font = ImageFont.
|
45 |
ascent, descent = font.getmetrics()
|
46 |
text_width = font.getmask(letter).getbbox()[2]
|
47 |
text_height = font.getmask(letter).getbbox()[3] + descent
|
|
|
41 |
depth = int(depth_ratio * width_pixels)
|
42 |
fontsize = int(fontsize_ratio * width_pixels)
|
43 |
|
44 |
+
font = ImageFont.truetype("arial.ttf", 15)
|
45 |
ascent, descent = font.getmetrics()
|
46 |
text_width = font.getmask(letter).getbbox()[2]
|
47 |
text_height = font.getmask(letter).getbbox()[3] + descent
|