Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove bundled fonts #67

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Memoize = "c03570c3-d221-55d1-a50c-7939bbd78826"
NamedTupleTools = "d9ec5142-1e00-5aa0-9d6a-321866360f50"
PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720"
Query = "1a8c2f83-1ff3-5112-b086-8aa67b057ba1"
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc"
Showoff = "992d4aef-0814-514b-bc4d-f2e9a6c4116f"
Expand All @@ -46,7 +45,6 @@ Memoize = "0.4.4"
NamedTupleTools = "0.14.3"
PooledArrays = "1.4"
Query = "1.0.0"
RelocatableFolders = "1.0.1"
Requires = "1.3.0"
Rotations = "1.7"
Showoff = "1.0.3"
Expand Down
Binary file removed assets/fonts/helvetica.ttf
Binary file not shown.
3 changes: 0 additions & 3 deletions src/Vizagrams.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ using LaTeXStrings
using MathTeXEngine
using UUIDs

using RelocatableFolders
const FONTS = @path joinpath(@__DIR__, "..", "assets", "fonts")

include("auxiliar/auxiliary_geometric_functions.jl")
export uniformscaling, U, R, T, M, angle_between_vectors
include("auxiliar/generate_ticks_ext_wilkinson.jl")
Expand Down
6 changes: 1 addition & 5 deletions src/primitives/envelopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down