test for bug 634556 a=test
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 28 Feb 2011 08:32:08 +1300
changeset 63155 35b6854b0159c6a2a462ac9db346a84c53456861
parent 63154 279792a400ff39cb8460ab87b2727b908e711ec2
child 63156 7f5bdbca660ebd3973db37d06fc08094d335e66b
push id19046
push userktomlinson@mozilla.com
push dateSun, 27 Feb 2011 19:33:40 +0000
treeherdermozilla-central@35b6854b0159 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest
bugs634556
milestone2.0b13pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
test for bug 634556 a=test
layout/reftests/fonts/mark-generate.py
layout/reftests/fonts/markAB-spaceliga.otf
layout/reftests/text/ligature-with-space-1.html
layout/reftests/text/reftest.list
--- a/layout/reftests/fonts/mark-generate.py
+++ b/layout/reftests/fonts/mark-generate.py
@@ -85,8 +85,31 @@ for codepoint in range(ord("A"), ord("A"
     
             g = f.createChar(codepoint, charname)
             g.importOutlines("mark" + mark + "-glyph.svg")
             g.width = width
     
             f.generate("mark" + mark + charname + "-" + uposname +
                        "underline.ttf")
     
+f = fontforge.font()
+n = "MarkAB-spaceliga"
+f.fontname = n
+f.familyname = n
+f.fullname = n
+f.copyright = "Copyright (c) 2008-2011 Mozilla Corporation"
+
+g = f.createChar(ord(" "), "space")
+g.width = 1000
+for charname in ["A", "B"]:
+    g = f.createChar(ord(charname), charname)
+    g.importOutlines("mark-glyph.svg")
+    g.width = 1500
+
+f.addLookup("liga-table", "gsub_ligature", (), (("liga",(("latn",("dflt")),)),))
+f.addLookupSubtable("liga-table", "liga-subtable")
+g = f.createChar(-1, "spaceA")
+g.glyphclass = "baseligature";
+g.addPosSub("liga-subtable", ("space", "A"))
+g.importOutlines("mark2-glyph.svg")
+g.width = 1800
+
+f.generate("markAB-spaceliga.otf")
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2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;qf<wZ&PrWSxI&1Q8OHO%%+P<h
zW;>UESXM9`!c*)DRK|J_pS}87^Wb95P1abgR=-t~Ymd3T?nljDt=626y2<*jW-=81
zGkm0;UKbyW+;yvNHR@LD>1I{CPhE7QyPkf~?PFby)YJOL@7i8eHlA3lr`_s2BQ0H7
zsi)=jh86wG(zU^c#bx#TmRk*lb#*PW(HWh8uVF1}i*5VrY5LmQ>goMN4){UxKQz!I
zjz<FDRG#|^Rf!scSB1;%BdI>HqFtG#*G3WN?D?;h*t3>E&e!I&g<4lYeT&?_U%5Rx
h%U$-iQiaMl4_1EUbo-k}?-lq<sIDQ)8@+PbzX9)Bey{)l
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/ligature-with-space-1.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+	"http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en-US">
+<head>
+	<title></title>
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+	<style type="text/css">
+
+	@font-face {
+		font-family: "MarkAB-spaceliga";
+		src: url(../fonts/markAB-spaceliga.otf);
+	}
+
+        body { font-family: MarkAB-spaceliga; }
+	</style>
+</head>
+<body>
+B A;
+</body>
+</html>
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -10,16 +10,17 @@ random-if(!cocoaWidget) == font-size-adj
 # in the "obvious" way, but it is unclear what the behavior should really be;
 # see bug #366138 for some (inconclusive) discussion
 # == font-size-adjust-03.html font-size-adjust-03-ref.html
 == justification-1.html justification-1-ref.html
 == justification-2a.html justification-2-ref.html
 == justification-2b.html justification-2-ref.html
 == justification-2c.html justification-2-ref.html
 != justification-2d.html justification-2-ref.html
+load ligature-with-space-1.html
 == line-editing-1a.html line-editing-1-ref.html
 == line-editing-1b.html line-editing-1-ref.html
 == line-editing-1c.html line-editing-1-ref.html
 == line-editing-1d.html line-editing-1-ref.html
 == line-editing-1e.html line-editing-1-ref.html
 == long-1.html long-ref.html
 == pre-line-1.html pre-line-1-ref.html
 == pre-line-2.html pre-line-2-ref.html