Hukuna commited on
Commit
39c5094
·
verified ·
1 Parent(s): bf9a483

Update chroma/chroma/utility/chroma.py

Browse files
Files changed (1) hide show
  1. chroma/chroma/utility/chroma.py +1 -1
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.load_default()
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