Skip to content

Commit

Permalink
remove a few newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
ederag committed Feb 21, 2022
1 parent f661957 commit a9dbfc8
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions src/outputs/textconfig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,29 +124,26 @@ _rendertime!(img, config::TextConfig, t::Nothing) = img
_rendertime!(img, config::Nothing, t::Nothing) = img


@noinline _fontwrongtype(font) =
throw(ArgumentError(
"""
font must be either a String or a FreeTypeAbstraction.FTFont,
got `$font` which is a `$(typeof(font))`.
"""
))

@noinline _fontnotfounderror(font) =
throw(ArgumentError(
"""
Font "$font" wasn't found in this system.
Specify an existing font with the `font` keyword,
or call DynamicGrids.set_default_font first,
or use `text=nothing` to display no text.
"""
))

@noinline _nodefaultfonterror(font) =
error(
"""
Your system does not contain any of the default fonts
$font.
Use DynamicGrids.set_default_font first.
"""
)
@noinline _fontwrongtype(font) = throw(ArgumentError(
"""
font must be either a String or a FreeTypeAbstraction.FTFont,
got `$font` which is a `$(typeof(font))`.
"""
))

@noinline _fontnotfounderror(font) = throw(ArgumentError(
"""
Font "$font" wasn't found in this system.
Specify an existing font with the `font` keyword,
or call DynamicGrids.set_default_font first,
or use `text=nothing` to display no text.
"""
))

@noinline _nodefaultfonterror(font) = error(
"""
Your system does not contain any of the default fonts
$font.
Use DynamicGrids.set_default_font first.
"""
)

0 comments on commit a9dbfc8

Please sign in to comment.