Update euclid to 0.17 and Lyon to 0.10

This commit is contained in:
Patrick Walton 2018-03-06 15:06:06 -08:00
parent b60275e5ea
commit 18121208d4
6 changed files with 19 additions and 16 deletions

View File

@ -13,13 +13,13 @@ app_units = "0.6"
base64 = "0.6" base64 = "0.6"
bincode = "0.8" bincode = "0.8"
env_logger = "0.4" env_logger = "0.4"
euclid = "0.16" euclid = "0.17"
image = "0.17" image = "0.17"
lazy_static = "0.2" lazy_static = "0.2"
log = "0.3" log = "0.3"
lru-cache = "0.1" lru-cache = "0.1"
lyon_geom = "0.9" lyon_geom = "0.10"
lyon_path = "0.9" lyon_path = "0.10"
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"
serde_json = "1.0" serde_json = "1.0"

View File

@ -9,14 +9,17 @@ freetype = ["freetype-sys"]
[dependencies] [dependencies]
app_units = "0.6" app_units = "0.6"
euclid = "0.16"
libc = "0.2" libc = "0.2"
log = "0.3" log = "0.3"
lyon_geom = "0.9" lyon_geom = "0.10"
lyon_path = "0.9" lyon_path = "0.10"
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"
[dependencies.euclid]
version = "0.17"
features = ["serde"]
[dependencies.freetype-sys] [dependencies.freetype-sys]
version = "0.6" version = "0.6"
optional = true optional = true

View File

@ -12,11 +12,11 @@ bincode = "0.8"
bit-vec = "0.4" bit-vec = "0.4"
byteorder = "1.2" byteorder = "1.2"
env_logger = "0.4" env_logger = "0.4"
euclid = "0.16" euclid = "0.17"
half = "1.0" half = "1.0"
log = "0.3" log = "0.3"
lyon_geom = "0.9" lyon_geom = "0.10"
lyon_path = "0.9" lyon_path = "0.10"
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"

View File

@ -139,7 +139,7 @@ impl PathBuilder for Builder {
// Split at X tangent. // Split at X tangent.
let mut worklist: ArrayVec<[QuadraticBezierSegment<f32>; 2]> = ArrayVec::new(); let mut worklist: ArrayVec<[QuadraticBezierSegment<f32>; 2]> = ArrayVec::new();
match segment.find_local_x_extremum() { match segment.local_x_extremum_t() {
Some(t) if t > TANGENT_PARAMETER_TOLERANCE && Some(t) if t > TANGENT_PARAMETER_TOLERANCE &&
t < 1.0 - TANGENT_PARAMETER_TOLERANCE => { t < 1.0 - TANGENT_PARAMETER_TOLERANCE => {
let subsegments = segment.split(t); let subsegments = segment.split(t);
@ -151,7 +151,7 @@ impl PathBuilder for Builder {
// Split at Y tangent. // Split at Y tangent.
for segment in worklist { for segment in worklist {
match segment.find_local_y_extremum() { match segment.local_y_extremum_t() {
Some(t) if t > TANGENT_PARAMETER_TOLERANCE && Some(t) if t > TANGENT_PARAMETER_TOLERANCE &&
t < 1.0 - TANGENT_PARAMETER_TOLERANCE => { t < 1.0 - TANGENT_PARAMETER_TOLERANCE => {
let subsegments = segment.split(t); let subsegments = segment.split(t);

View File

@ -5,8 +5,8 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
[dependencies] [dependencies]
arrayvec = "0.4" arrayvec = "0.4"
euclid = "0.16" euclid = "0.17"
lyon_geom = "0.9" lyon_geom = "0.10"
lyon_path = "0.9" lyon_path = "0.10"
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"

View File

@ -7,8 +7,8 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
app_units = "0.6" app_units = "0.6"
clap = "2.27" clap = "2.27"
freetype-sys = "0.6" freetype-sys = "0.6"
lyon_geom = "0.9" lyon_geom = "0.10"
lyon_path = "0.9" lyon_path = "0.10"
[dependencies.pathfinder_font_renderer] [dependencies.pathfinder_font_renderer]
path = "../../font-renderer" path = "../../font-renderer"