Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 2, 2024
1 parent 8bf08b5 commit 850653a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/text.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ end

@test glyph_collection isa Makie.GlyphCollection
@test glyph_collection.glyphs == FreeTypeAbstraction.glyph_index.(font, chars)
@test glyph_collection.fonts == [font for _ in 1:4]
@test all(isapprox.(glyph_collection.origins, [Point3f(x, 0, 0) for x in origins], atol = 1e-10))
@test glyph_collection.scales.sv == [Vec2f(p.fontsize[]) for _ in 1:4]
@test glyph_collection.rotations.sv == [Quaternionf(0,0,0,1) for _ in 1:4]
@test glyph_collection.colors.sv == [RGBAf(0,0,0,1) for _ in 1:4]
@test glyph_collection.strokecolors.sv == [RGBAf(0,0,0,0) for _ in 1:4]
@test glyph_collection.strokewidths.sv == Float32[0, 0, 0, 0]
@test glyph_collection.fonts.sv == [font for _ in 1:4]
@test all(isapprox.(glyph_collection.origins, [Point3f(x, 0, 0) for x in origins], atol=1e-10))
@test glyph_collection.scales.sv == Vec2f(p.fontsize[])
@test glyph_collection.rotations.sv == Quaternionf(0, 0, 0, 1)
@test glyph_collection.colors.sv == RGBAf(0, 0, 0, 1)
@test glyph_collection.strokecolors.sv == RGBAf(0, 0, 0, 0)
@test glyph_collection.strokewidths.sv == 0

makie_hi_bb = Makie.height_insensitive_boundingbox.(glyph_collection.extents)
makie_hi_bb_wa = Makie.height_insensitive_boundingbox_with_advance.(glyph_collection.extents)
Expand Down

0 comments on commit 850653a

Please sign in to comment.