Hukuna commited on
Commit
aa4fd82
·
verified ·
1 Parent(s): bf81aa4

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.truetype(font, fontsize)
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.load_default()
45
  ascent, descent = font.getmetrics()
46
  text_width = font.getmask(letter).getbbox()[2]
47
  text_height = font.getmask(letter).getbbox()[3] + descent