aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/geometry.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-12-10 14:00:12 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-12-12 11:43:43 -0800
commit07bc97e3e2d217cfd36021e63698b76579c99af1 (patch)
treee1d12e1c226a8f8b3f7f5f860e6a4475dbb42f6b /components/util/geometry.rs
parent758d79fff45a9fadd76fe4b20c1af27e17c460af (diff)
downloadservo-07bc97e3e2d217cfd36021e63698b76579c99af1.tar.gz
servo-07bc97e3e2d217cfd36021e63698b76579c99af1.zip
gfx: Implement `letter-spacing` per CSS 2.1 § 16.4.
The ligature disabling code has been manually verified, but I was unable to reftest it. (The only way I could think of would be to create an Ahem-like font with a ligature table, but that would be an awful lot of work.) Near as I can tell, the method used to apply the spacing (manually inserting extra advance post-shaping) matches Gecko.
Diffstat (limited to 'components/util/geometry.rs')
-rw-r--r--components/util/geometry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/geometry.rs b/components/util/geometry.rs
index 06b74c7c3a0..1dfa1fe0f9d 100644
--- a/components/util/geometry.rs
+++ b/components/util/geometry.rs
@@ -64,7 +64,7 @@ pub enum PagePx {}
// See https://bugzilla.mozilla.org/show_bug.cgi?id=177805 for more info.
//
// FIXME: Implement Au using Length and ScaleFactor instead of a custom type.
-#[deriving(Clone, PartialEq, PartialOrd, Eq, Ord, Zero)]
+#[deriving(Clone, Hash, PartialEq, PartialOrd, Eq, Ord, Zero)]
pub struct Au(pub i32);
impl Default for Au {