Skip to content

Commit

Permalink
test for bug 634556 a=test
Browse files Browse the repository at this point in the history
--HG--
extra : transplant_source : %F919%0D%5C%FC%06%87%21.%7C9%A2%A5%14%CCe%EC%9A%C0
  • Loading branch information
karlt committed Feb 27, 2011
1 parent d14ca44 commit 3fda4e7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
23 changes: 23 additions & 0 deletions layout/reftests/fonts/mark-generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,26 @@
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")
Binary file added layout/reftests/fonts/markAB-spaceliga.otf
Binary file not shown.
20 changes: 20 additions & 0 deletions layout/reftests/text/ligature-with-space-1.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions layout/reftests/text/reftest.list
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ random-if(!cocoaWidget) == font-size-adjust-02.html font-size-adjust-02-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
Expand Down

0 comments on commit 3fda4e7

Please sign in to comment.