summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite/test/fonterrors/fonterrors.gdl
blob: 862284a2440c0c700a9ecf4d28d02b5397fc5f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

/*********************************************************************************
	File: fonterrors.gdl

	For seeing some basic Graphite behavior. This version is used to generate
	fonts that can be deliberately corrupted to test error handling in the
	engine.

	Compile with Std SILDoulos (stddr.ttf).
*********************************************************************************/

#include "stddef.gdh"

Bidi = false;


table(glyph)

	clsUpperVowel = codepoint("AEIOU");
	clsLowerVowel = codepoint("aeiou");
	
	clsUpperCons = codepoint("BCDFGHJKLMNPQRSTVWXYZ");
	clsLowerCons = codepoint("bcdfghjklmnpqrstvwxyz");
	
	clsDigit = codepoint("0123456789") {tSuper = 400m};

endtable;	// glyph


table(sub)

	clsUpperVowel  >  clsLowerVowel;
	clsLowerCons  > clsUpperCons;

endtable;


table(pos)

	clsDigit {shift.y += tSuper};

endtable;