Skip to content

Commit 2804aae

Browse files
authored
Merge pull request #35 from JuliaGraphics/sd/geometrybasics
switch to geometrybasics
2 parents 44e0df5 + 67a1a18 commit 2804aae

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name = "FreeTypeAbstraction"
22
uuid = "663a7486-cb36-511b-a19d-713bb74d65c9"
3-
version = "0.6.6"
3+
version = "0.7.0"
44

55
[deps]
66
ColorVectorSpace = "c3611d14-8923-5661-9e6a-0046d554d3a4"
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
88
FreeType = "b38be410-82b0-50bf-ab77-7b57e271db43"
9-
GeometryTypes = "4d00f742-c7ba-57c2-abde-4428a4b178cb"
9+
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
1010
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1111

1212
[compat]
1313
ColorVectorSpace = "0.8"
14+
GeometryBasics = "0.2"
1415
Colors = "0.11, 0.12"
1516
FreeType = "3"
16-
GeometryTypes = "0.7, 0.8"
1717
StaticArrays = "0.12"
1818
julia = "1"
1919

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[![codecov](https://codecov.io/gh/JuliaGraphics/FreeTypeAbstraction.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGraphics/FreeTypeAbstraction.jl)
2+
23
[![Build Status](https://travis-ci.org/JuliaGraphics/FreeTypeAbstraction.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphics/FreeTypeAbstraction.jl)
4+
35
# FreeTypeAbstraction
46

57
Draw text into a Matrix.
@@ -19,4 +21,4 @@ myarray = zeros(UInt8,100,100)
1921
renderstring!(myarray, "hello", face, (10,10), 90, 10, halign=:hright)
2022
```
2123

22-
credits to @aaalexandrov from whom most of the code stems.
24+
credits to @aaalexandrov from whom most of the early code comes.

src/FreeTypeAbstraction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module FreeTypeAbstraction
22

3-
using FreeType, StaticArrays, Colors, ColorVectorSpace, GeometryTypes
3+
using FreeType, StaticArrays, Colors, ColorVectorSpace, GeometryBasics
44
using Base.Iterators: Repeated, repeated
55
import Base: /, *, ==
66
import Base.Broadcast: BroadcastStyle, Style, broadcasted

src/layout.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const Rect2D = HyperRectangle{2, Float32}
2-
31
iter_or_array(x) = repeated(x)
42
iter_or_array(x::Repeated) = x
53
iter_or_array(x::AbstractArray) = x

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using FreeTypeAbstraction, Colors, ColorVectorSpace, GeometryTypes
1+
using FreeTypeAbstraction, Colors, ColorVectorSpace, GeometryBasics
22
using Test
33
using FreeTypeAbstraction: boundingbox, Vec, glyph_rects, get_extent, FTFont, kerning
44
using FreeType
@@ -39,6 +39,7 @@ a = renderstring!(
3939
50,
4040
valign = :vtop,
4141
)
42+
4243
@test all(a[1:10, :] .== 0)
4344
@test any(a[11:20, :] .!= 0)
4445
a = renderstring!(

0 commit comments

Comments
 (0)