Skip to content

uctx: Raise exception for unknown fonts

rahix 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 rahix

Merge request reports

Loading