diff --git a/assets/fonts/helvetica.ttf b/assets/fonts/helvetica.ttf deleted file mode 100644 index 4d99761..0000000 Binary files a/assets/fonts/helvetica.ttf and /dev/null differ diff --git a/src/primitives/envelopes.jl b/src/primitives/envelopes.jl index 4460a21..a6070cd 100644 --- a/src/primitives/envelopes.jl +++ b/src/primitives/envelopes.jl @@ -119,11 +119,7 @@ end @memoize function load_font(fontfamily) face = FreeTypeAbstraction.findfont(fontfamily) - if isnothing(face) - fontname = "helvetica.ttf" - fpath = joinpath(FONTS, fontname) - face = FreeTypeAbstraction.try_load(fpath) - end + isnothing(face) && throw(DomainError(fontfamily, "font family could not be loaded")) return face end