Debian Codegraph @

contrib/C#/NGraphite/AttrCode.cs

raw
1 // SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
2 // Copyright (C) 2012 SIL International
3 using System;
4
5 namespace NGraphite
6 {
7 /// <summary>
8 /// Used for looking up slot attributes. Most are already available in other functions
9 /// </summary>
10 public enum AttrCode
11 {
12 /// adjusted glyph advance in x direction in design units
13 SlatAdvX = 0,
14 /// adjusted glyph advance in y direction (usually 0) in design units
15 SlatAdvY,
16 /// returns 0. Deprecated.
17 SlatAttTo,
18 /// This slot attaches to its parent at the given design units in the x direction
19 SlatAttX,
20 /// This slot attaches to its parent at the given design units in the y direction
21 SlatAttY,
22 /// This slot attaches to its parent at the given glyph point (not implemented)
23 SlatAttGpt,
24 /// x-direction adjustment from the given glyph point (not implemented)
25 SlatAttXOff,
26 /// y-direction adjustment from the given glyph point (not implemented)
27 SlatAttYOff,
28 /// Where on this glyph should align with the attachment point on the parent glyph in the x-direction.
29 SlatAttWithX,
30 /// Where on this glyph should align with the attachment point on the parent glyph in the y-direction
31 SlatAttWithY,
32 /// Which glyph point on this glyph should align with the attachment point on the parent glyph (not implemented).
33 SlatWithGpt,
34 /// Adjustment to gr_slatWithGpt in x-direction (not implemented)
35 SlatAttWithXOff,
36 /// Adjustment to gr_slatWithGpt in y-direction (not implemented)
37 SlatAttWithYOff,
38 /// Attach at given nesting level (not implemented)
39 SlatAttLevel,
40 /// Line break breakweight for this glyph
41 SlatBreak,
42 /// Ligature component reference (not implemented)
43 SlatCompRef,
44 /// bidi directionality of this glyph (not implemented)
45 SlatDir,
46 /// Whether insertion is allowed before this glyph
47 SlatInsert,
48 /// Final positioned position of this glyph relative to its parent in x-direction in pixels
49 SlatPosX,
50 /// Final positioned position of this glyph relative to its parent in y-direction in pixels
51 SlatPosY,
52 /// Amount to shift glyph by in x-direction design units
53 SlatShiftX,
54 /// Amount to shift glyph by in y-direction design units
55 SlatShiftY,
56 /// attribute user1
57 SlatUserDefnV1,
58 /// not implemented
59 SlatMeasureSol,
60 /// not implemented
61 SlatMeasureEol,
62 /// Amount this slot can stretch (not implemented)
63 SlatJStretch,
64 /// Amount this slot can shrink (not implemented)
65 SlatJShrink,
66 /// Granularity by which this slot can stretch or shrink (not implemented)
67 SlatJStep,
68 /// Justification weight for this glyph (not implemented)
69 SlatJWeight,
70 /// Amount this slot mush shrink or stretch in design units
71 SlatJWidth,
72 /// SubSegment split point
73 SlatSegSplit = SlatJStretch + 29,
74 /// User defined attribute, see subattr for user attr number
75 SlatUserDefn,
76
77 /// not implemented
78 SlatMax,
79 /// not implemented
80 SlatNoEffect = SlatMax + 1
81 }
82 }