Skip to content

uctx: Raise exception for unknown fonts

Phileas requested to merge rahix/ctx-fixes into main

Don't return None when a font is not found, but instead raise a ValueError. This is more pythonic along the lines of

  • Errors should never pass silently.
  • Ask forgiveness, not permission.
Edited by Phileas

Merge request reports

Loading