summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorBastien Orivel <eijebong@bananium.fr>2019-08-18 04:46:29 +0200
committerChristian Duerr <contact@christianduerr.com>2019-08-18 02:46:29 +0000
commita8692983f522e9bd37911d14dc441391a7ee2f50 (patch)
treedf0f987564c5a4b58933acdb5e4928990a478b8a /font
parentd9d698614ce828ba96ae101f280b37c5c80f607b (diff)
downloadalacritty-a8692983f522e9bd37911d14dc441391a7ee2f50.tar.gz
alacritty-a8692983f522e9bd37911d14dc441391a7ee2f50.zip
Update depedencies
Diffstat (limited to 'font')
-rw-r--r--font/Cargo.toml2
-rw-r--r--font/src/darwin/mod.rs6
2 files changed, 6 insertions, 2 deletions
diff --git a/font/Cargo.toml b/font/Cargo.toml
index 2159f7d6..a8460585 100644
--- a/font/Cargo.toml
+++ b/font/Cargo.toml
@@ -6,7 +6,7 @@ description = "Font rendering using the best available solution per platform"
license = "Apache-2.0"
[dependencies]
-euclid = "0.19.2"
+euclid = "0.20"
libc = "0.2"
foreign-types = "0.4"
log = "0.4"
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs
index cccae032..faef1065 100644
--- a/font/src/darwin/mod.rs
+++ b/font/src/darwin/mod.rs
@@ -384,7 +384,11 @@ impl Descriptor {
impl Font {
/// The the bounding rect of a glyph
- pub fn bounding_rect_for_glyph(&self, orientation: FontOrientation, index: u32) -> Rect<f64> {
+ pub fn bounding_rect_for_glyph(
+ &self,
+ orientation: FontOrientation,
+ index: u32,
+ ) -> Rect<f64, ()> {
let cg_rect = self
.ct_font
.get_bounding_rects_for_glyphs(orientation as CTFontOrientation, &[index as CGGlyph]);