--HG--
extra : transplant_source : %F919%0D%5C%FC%06%87%21.%7C9%A2%A5%14%CCe%EC%9A%C0
This commit is contained in:
Karl Tomlinson 2011-02-28 08:32:08 +13:00
Родитель d14ca44d44
Коммит 3fda4e70dd
4 изменённых файлов: 44 добавлений и 0 удалений

Просмотреть файл

@ -90,3 +90,26 @@ for codepoint in range(ord("A"), ord("A") + 1):
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")

Двоичные данные
layout/reftests/fonts/markAB-spaceliga.otf Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -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>

Просмотреть файл

@ -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