MCPcopy Create free account
hub / github.com/coldtype/st2 / font

Method font

ST2/properties.py:447–463  ·  view source on GitHub ↗
(self, none_ok=False)

Source from the content-addressed store, hash-verified

445 other.frozen = False
446
447 def font(self, none_ok=False):
448 from ST2.importer import ct
449
450 font = None
451 if self.font_path:
452 try:
453 font = ct.Font.Cacheable(self.font_path)
454 except Exception as e:
455 print(">>>", e)
456
457 if font:
458 return font
459 else:
460 if none_ok:
461 return None
462 else:
463 return ct.Font.RecursiveMono()
464
465 def visible_variation_axes(self, font):
466 variations = {}

Callers 15

meshMethod · 0.95
executeMethod · 0.80
build_meshFunction · 0.80
__init__Method · 0.80
executeMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
executeMethod · 0.80
pollMethod · 0.80
drawMethod · 0.80
pollMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected