geomerative 0.4.3-java → 2.1.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -0
  3. data/.mvn/extensions.xml +1 -1
  4. data/.mvn/wrapper/maven-wrapper.properties +1 -1
  5. data/CHANGELOG.md +19 -1
  6. data/COPYING.md +1 -1
  7. data/README.md +2 -2
  8. data/Rakefile +2 -15
  9. data/docs/_config.yml +8 -0
  10. data/docs/_includes/head.html +7 -6
  11. data/docs/_includes/header.html +6 -6
  12. data/docs/_includes/icon-github.svg +3 -1
  13. data/docs/_includes/icon-twitter.svg +3 -1
  14. data/docs/_includes/navigation.html +24 -0
  15. data/docs/_sass/_base.scss +79 -79
  16. data/docs/_sass/_layout.scss +137 -137
  17. data/docs/_sass/_syntax-highlighting.scss +64 -64
  18. data/docs/index.html +18 -18
  19. data/examples/README.md +1 -1
  20. data/examples/data/bot1.svg +1 -1
  21. data/examples/data/lion.svg +156 -156
  22. data/examples/data/ruby.svg +1 -1
  23. data/examples/jruby_merge.rb +1 -1
  24. data/examples/{f_agent.rb → library/f_agent/f_agent.rb} +0 -0
  25. data/examples/{font_agent.rb → library/font_agent/font_agent.rb} +2 -1
  26. data/examples/text_on_geomerative_path.rb +3 -2
  27. data/examples/typo_deform.rb +2 -2
  28. data/examples/typo_extra_bright.rb +1 -1
  29. data/geomerative.gemspec +3 -6
  30. data/lib/geomerative/version.rb +1 -1
  31. data/lib/geomerative.jar +0 -0
  32. data/lib/geomerative.rb +10 -10
  33. data/mvnw +234 -0
  34. data/mvnw.cmd +145 -0
  35. data/pom.rb +14 -16
  36. data/pom.xml +13 -19
  37. data/src/geomerative/FastRClip.java +2050 -2334
  38. data/src/geomerative/RClip.java +2237 -2539
  39. data/src/geomerative/RClosest.java +33 -31
  40. data/src/geomerative/RCommand.java +1750 -1758
  41. data/src/geomerative/RContour.java +290 -292
  42. data/src/geomerative/RFont.java +277 -246
  43. data/src/geomerative/RG.java +722 -727
  44. data/src/geomerative/RGeomElem.java +967 -962
  45. data/src/geomerative/RGroup.java +508 -467
  46. data/src/geomerative/RMatrix.java +304 -289
  47. data/src/geomerative/RMesh.java +241 -229
  48. data/src/geomerative/RPath.java +924 -926
  49. data/src/geomerative/RPoint.java +391 -391
  50. data/src/geomerative/RPolygon.java +1017 -1013
  51. data/src/geomerative/RRectangle.java +43 -52
  52. data/src/geomerative/RSVG.java +480 -516
  53. data/src/geomerative/RShape.java +1767 -1777
  54. data/src/geomerative/RStrip.java +173 -176
  55. data/src/geomerative/RStyle.java +197 -194
  56. data/src/module-info.java +4 -0
  57. data/src/org/apache/batik/svggen/font/Font.java +141 -142
  58. data/src/org/apache/batik/svggen/font/Glyph.java +102 -71
  59. data/src/org/apache/batik/svggen/font/Point.java +12 -12
  60. data/src/org/apache/batik/svggen/font/RandomAccessFileEmulator.java +14 -12
  61. data/src/org/apache/batik/svggen/font/table/ClassDef.java +12 -12
  62. data/src/org/apache/batik/svggen/font/table/ClassDefFormat1.java +27 -24
  63. data/src/org/apache/batik/svggen/font/table/ClassDefFormat2.java +20 -17
  64. data/src/org/apache/batik/svggen/font/table/CmapFormat.java +43 -43
  65. data/src/org/apache/batik/svggen/font/table/CmapFormat0.java +33 -26
  66. data/src/org/apache/batik/svggen/font/table/CmapFormat2.java +25 -20
  67. data/src/org/apache/batik/svggen/font/table/CmapFormat4.java +106 -96
  68. data/src/org/apache/batik/svggen/font/table/CmapFormat6.java +36 -32
  69. data/src/org/apache/batik/svggen/font/table/CmapIndexEntry.java +69 -49
  70. data/src/org/apache/batik/svggen/font/table/CmapTable.java +50 -50
  71. data/src/org/apache/batik/svggen/font/table/Coverage.java +19 -19
  72. data/src/org/apache/batik/svggen/font/table/CoverageFormat1.java +30 -27
  73. data/src/org/apache/batik/svggen/font/table/CoverageFormat2.java +26 -24
  74. data/src/org/apache/batik/svggen/font/table/CvtTable.java +16 -16
  75. data/src/org/apache/batik/svggen/font/table/Device.java +32 -32
  76. data/src/org/apache/batik/svggen/font/table/DirectoryEntry.java +39 -39
  77. data/src/org/apache/batik/svggen/font/table/Feature.java +26 -23
  78. data/src/org/apache/batik/svggen/font/table/FeatureList.java +37 -35
  79. data/src/org/apache/batik/svggen/font/table/FeatureRecord.java +22 -22
  80. data/src/org/apache/batik/svggen/font/table/FeatureTags.java +4 -3
  81. data/src/org/apache/batik/svggen/font/table/FpgmTable.java +9 -9
  82. data/src/org/apache/batik/svggen/font/table/GlyfCompositeComp.java +134 -132
  83. data/src/org/apache/batik/svggen/font/table/GlyfCompositeDescript.java +123 -122
  84. data/src/org/apache/batik/svggen/font/table/GlyfDescript.java +44 -44
  85. data/src/org/apache/batik/svggen/font/table/GlyfSimpleDescript.java +110 -109
  86. data/src/org/apache/batik/svggen/font/table/GlyfTable.java +46 -46
  87. data/src/org/apache/batik/svggen/font/table/GlyphDescription.java +25 -13
  88. data/src/org/apache/batik/svggen/font/table/GposTable.java +26 -23
  89. data/src/org/apache/batik/svggen/font/table/GsubTable.java +85 -82
  90. data/src/org/apache/batik/svggen/font/table/HeadTable.java +131 -131
  91. data/src/org/apache/batik/svggen/font/table/HheaTable.java +80 -80
  92. data/src/org/apache/batik/svggen/font/table/HmtxTable.java +50 -49
  93. data/src/org/apache/batik/svggen/font/table/KernSubtable.java +29 -27
  94. data/src/org/apache/batik/svggen/font/table/KernSubtableFormat0.java +35 -32
  95. data/src/org/apache/batik/svggen/font/table/KernSubtableFormat2.java +28 -26
  96. data/src/org/apache/batik/svggen/font/table/KernTable.java +36 -31
  97. data/src/org/apache/batik/svggen/font/table/KerningPair.java +27 -23
  98. data/src/org/apache/batik/svggen/font/table/LangSys.java +28 -26
  99. data/src/org/apache/batik/svggen/font/table/LangSysRecord.java +22 -22
  100. data/src/org/apache/batik/svggen/font/table/Ligature.java +24 -24
  101. data/src/org/apache/batik/svggen/font/table/LigatureSet.java +24 -24
  102. data/src/org/apache/batik/svggen/font/table/LigatureSubst.java +9 -9
  103. data/src/org/apache/batik/svggen/font/table/LigatureSubstFormat1.java +30 -30
  104. data/src/org/apache/batik/svggen/font/table/LocaTable.java +37 -37
  105. data/src/org/apache/batik/svggen/font/table/Lookup.java +41 -40
  106. data/src/org/apache/batik/svggen/font/table/LookupList.java +34 -34
  107. data/src/org/apache/batik/svggen/font/table/LookupSubtableFactory.java +7 -5
  108. data/src/org/apache/batik/svggen/font/table/MaxpTable.java +96 -96
  109. data/src/org/apache/batik/svggen/font/table/NameRecord.java +64 -65
  110. data/src/org/apache/batik/svggen/font/table/NameTable.java +33 -33
  111. data/src/org/apache/batik/svggen/font/table/Os2Table.java +196 -196
  112. data/src/org/apache/batik/svggen/font/table/Panose.java +14 -12
  113. data/src/org/apache/batik/svggen/font/table/PostTable.java +338 -338
  114. data/src/org/apache/batik/svggen/font/table/PrepTable.java +9 -9
  115. data/src/org/apache/batik/svggen/font/table/Program.java +15 -15
  116. data/src/org/apache/batik/svggen/font/table/RangeRecord.java +26 -25
  117. data/src/org/apache/batik/svggen/font/table/Script.java +38 -38
  118. data/src/org/apache/batik/svggen/font/table/ScriptList.java +42 -42
  119. data/src/org/apache/batik/svggen/font/table/ScriptRecord.java +22 -22
  120. data/src/org/apache/batik/svggen/font/table/ScriptTags.java +2 -1
  121. data/src/org/apache/batik/svggen/font/table/SingleSubst.java +15 -16
  122. data/src/org/apache/batik/svggen/font/table/SingleSubstFormat1.java +33 -33
  123. data/src/org/apache/batik/svggen/font/table/SingleSubstFormat2.java +32 -32
  124. data/src/org/apache/batik/svggen/font/table/Table.java +171 -170
  125. data/src/org/apache/batik/svggen/font/table/TableDirectory.java +55 -55
  126. data/src/org/apache/batik/svggen/font/table/TableFactory.java +92 -93
  127. metadata +18 -19
  128. data/.travis.yml +0 -10
  129. data/calculate_torsional_angle.rb +0 -17
@@ -18,7 +18,7 @@
18
18
  package org.apache.batik.svggen.font.table;
19
19
 
20
20
  import java.io.IOException;
21
- import org.apache.batik.svggen.font.*;
21
+ import org.apache.batik.svggen.font.RandomAccessFileEmulator;
22
22
 
23
23
  /**
24
24
  * @version $Id: NameTable.java,v 1.3 2004/08/18 07:15:22 vhardy Exp $
@@ -26,42 +26,42 @@ import org.apache.batik.svggen.font.*;
26
26
  */
27
27
  public class NameTable implements Table {
28
28
 
29
- private final short formatSelector;
30
- private final short numberOfNameRecords;
31
- private final short stringStorageOffset;
32
- private final NameRecord[] records;
29
+ private final short formatSelector;
30
+ private final short numberOfNameRecords;
31
+ private final short stringStorageOffset;
32
+ private final NameRecord[] records;
33
33
 
34
- protected NameTable(DirectoryEntry de,RandomAccessFileEmulator raf) throws IOException {
35
- raf.seek(de.getOffset());
36
- formatSelector = raf.readShort();
37
- numberOfNameRecords = raf.readShort();
38
- stringStorageOffset = raf.readShort();
39
- records = new NameRecord[numberOfNameRecords];
40
-
41
- // Load the records, which contain the encoding information and string offsets
42
- for (int i = 0; i < numberOfNameRecords; i++) {
43
- records[i] = new NameRecord(raf);
44
- }
45
-
46
- // Now load the strings
47
- for (int i = 0; i < numberOfNameRecords; i++) {
48
- records[i].loadString(raf, de.getOffset() + stringStorageOffset);
49
- }
50
- }
34
+ protected NameTable(DirectoryEntry de, RandomAccessFileEmulator raf) throws IOException {
35
+ raf.seek(de.getOffset());
36
+ formatSelector = raf.readShort();
37
+ numberOfNameRecords = raf.readShort();
38
+ stringStorageOffset = raf.readShort();
39
+ records = new NameRecord[numberOfNameRecords];
51
40
 
52
- public String getRecord(short nameId) {
41
+ // Load the records, which contain the encoding information and string offsets
42
+ for (int i = 0; i < numberOfNameRecords; i++) {
43
+ records[i] = new NameRecord(raf);
44
+ }
53
45
 
54
- // Search for the first instance of this name ID
55
- for (int i = 0; i < numberOfNameRecords; i++) {
56
- if (records[i].getNameId() == nameId) {
57
- return records[i].getRecordString();
58
- }
59
- }
60
- return "";
46
+ // Now load the strings
47
+ for (int i = 0; i < numberOfNameRecords; i++) {
48
+ records[i].loadString(raf, de.getOffset() + stringStorageOffset);
61
49
  }
50
+ }
62
51
 
63
- @Override
64
- public int getType() {
65
- return name;
52
+ public String getRecord(short nameId) {
53
+
54
+ // Search for the first instance of this name ID
55
+ for (int i = 0; i < numberOfNameRecords; i++) {
56
+ if (records[i].getNameId() == nameId) {
57
+ return records[i].getRecordString();
58
+ }
66
59
  }
60
+ return "";
61
+ }
62
+
63
+ @Override
64
+ public int getType() {
65
+ return NAME;
66
+ }
67
67
  }
@@ -18,7 +18,7 @@
18
18
  package org.apache.batik.svggen.font.table;
19
19
 
20
20
  import java.io.IOException;
21
- import org.apache.batik.svggen.font.*;
21
+ import org.apache.batik.svggen.font.RandomAccessFileEmulator;
22
22
 
23
23
  /**
24
24
  * @version $Id: Os2Table.java,v 1.3 2004/08/18 07:15:22 vhardy Exp $
@@ -26,207 +26,207 @@ import org.apache.batik.svggen.font.*;
26
26
  */
27
27
  public class Os2Table implements Table {
28
28
 
29
- private final int version;
30
- private final short xAvgCharWidth;
31
- private final int usWeightClass;
32
- private final int usWidthClass;
33
- private final short fsType;
34
- private final short ySubscriptXSize;
35
- private final short ySubscriptYSize;
36
- private final short ySubscriptXOffset;
37
- private final short ySubscriptYOffset;
38
- private final short ySuperscriptXSize;
39
- private final short ySuperscriptYSize;
40
- private final short ySuperscriptXOffset;
41
- private final short ySuperscriptYOffset;
42
- private final short yStrikeoutSize;
43
- private final short yStrikeoutPosition;
44
- private final short sFamilyClass;
45
- private final Panose panose;
46
- private final int ulUnicodeRange1;
47
- private final int ulUnicodeRange2;
48
- private final int ulUnicodeRange3;
49
- private final int ulUnicodeRange4;
50
- private final int achVendorID;
51
- private final short fsSelection;
52
- private final int usFirstCharIndex;
53
- private final int usLastCharIndex;
54
- private final short sTypoAscender;
55
- private final short sTypoDescender;
56
- private final short sTypoLineGap;
57
- private final int usWinAscent;
58
- private final int usWinDescent;
59
- private final int ulCodePageRange1;
60
- private final int ulCodePageRange2;
61
-
62
- protected Os2Table(DirectoryEntry de,RandomAccessFileEmulator raf) throws IOException {
63
- raf.seek(de.getOffset());
64
- version = raf.readUnsignedShort();
65
- xAvgCharWidth = raf.readShort();
66
- usWeightClass = raf.readUnsignedShort();
67
- usWidthClass = raf.readUnsignedShort();
68
- fsType = raf.readShort();
69
- ySubscriptXSize = raf.readShort();
70
- ySubscriptYSize = raf.readShort();
71
- ySubscriptXOffset = raf.readShort();
72
- ySubscriptYOffset = raf.readShort();
73
- ySuperscriptXSize = raf.readShort();
74
- ySuperscriptYSize = raf.readShort();
75
- ySuperscriptXOffset = raf.readShort();
76
- ySuperscriptYOffset = raf.readShort();
77
- yStrikeoutSize = raf.readShort();
78
- yStrikeoutPosition = raf.readShort();
79
- sFamilyClass = raf.readShort();
80
- byte[] buf = new byte[10];
81
- raf.read(buf);
82
- panose = new Panose(buf);
83
- ulUnicodeRange1 = raf.readInt();
84
- ulUnicodeRange2 = raf.readInt();
85
- ulUnicodeRange3 = raf.readInt();
86
- ulUnicodeRange4 = raf.readInt();
87
- achVendorID = raf.readInt();
88
- fsSelection = raf.readShort();
89
- usFirstCharIndex = raf.readUnsignedShort();
90
- usLastCharIndex = raf.readUnsignedShort();
91
- sTypoAscender = raf.readShort();
92
- sTypoDescender = raf.readShort();
93
- sTypoLineGap = raf.readShort();
94
- usWinAscent = raf.readUnsignedShort();
95
- usWinDescent = raf.readUnsignedShort();
96
- ulCodePageRange1 = raf.readInt();
97
- ulCodePageRange2 = raf.readInt();
98
- }
99
-
100
- public int getVersion() {
101
- return version;
102
- }
103
-
104
- public short getAvgCharWidth() {
105
- return xAvgCharWidth;
106
- }
107
-
108
- public int getWeightClass() {
109
- return usWeightClass;
110
- }
111
-
112
- public int getWidthClass() {
113
- return usWidthClass;
114
- }
115
-
116
- public short getLicenseType() {
117
- return fsType;
118
- }
119
-
120
- public short getSubscriptXSize() {
121
- return ySubscriptXSize;
122
- }
123
-
124
- public short getSubscriptYSize() {
125
- return ySubscriptYSize;
126
- }
127
-
128
- public short getSubscriptXOffset() {
129
- return ySubscriptXOffset;
130
- }
131
-
132
- public short getSubscriptYOffset() {
133
- return ySubscriptYOffset;
134
- }
135
-
136
- public short getSuperscriptXSize() {
137
- return ySuperscriptXSize;
138
- }
139
-
140
- public short getSuperscriptYSize() {
141
- return ySuperscriptYSize;
142
- }
143
-
144
- public short getSuperscriptXOffset() {
145
- return ySuperscriptXOffset;
146
- }
147
-
148
- public short getSuperscriptYOffset() {
149
- return ySuperscriptYOffset;
150
- }
151
-
152
- public short getStrikeoutSize() {
153
- return yStrikeoutSize;
154
- }
155
-
156
- public short getStrikeoutPosition() {
157
- return yStrikeoutPosition;
158
- }
159
-
160
- public short getFamilyClass() {
161
- return sFamilyClass;
162
- }
163
-
164
- public Panose getPanose() {
165
- return panose;
166
- }
167
-
168
- public int getUnicodeRange1() {
169
- return ulUnicodeRange1;
170
- }
171
-
172
- public int getUnicodeRange2() {
173
- return ulUnicodeRange2;
174
- }
175
-
176
- public int getUnicodeRange3() {
177
- return ulUnicodeRange3;
178
- }
179
-
180
- public int getUnicodeRange4() {
181
- return ulUnicodeRange4;
182
- }
183
-
184
- public int getVendorID() {
185
- return achVendorID;
186
- }
187
-
188
- public short getSelection() {
189
- return fsSelection;
190
- }
191
-
192
- public int getFirstCharIndex() {
193
- return usFirstCharIndex;
194
- }
195
-
196
- public int getLastCharIndex() {
197
- return usLastCharIndex;
198
- }
29
+ private final int version;
30
+ private final short xAvgCharWidth;
31
+ private final int usWeightClass;
32
+ private final int usWidthClass;
33
+ private final short fsType;
34
+ private final short ySubscriptXSize;
35
+ private final short ySubscriptYSize;
36
+ private final short ySubscriptXOffset;
37
+ private final short ySubscriptYOffset;
38
+ private final short ySuperscriptXSize;
39
+ private final short ySuperscriptYSize;
40
+ private final short ySuperscriptXOffset;
41
+ private final short ySuperscriptYOffset;
42
+ private final short yStrikeoutSize;
43
+ private final short yStrikeoutPosition;
44
+ private final short sFamilyClass;
45
+ private final Panose panose;
46
+ private final int ulUnicodeRange1;
47
+ private final int ulUnicodeRange2;
48
+ private final int ulUnicodeRange3;
49
+ private final int ulUnicodeRange4;
50
+ private final int achVendorID;
51
+ private final short fsSelection;
52
+ private final int usFirstCharIndex;
53
+ private final int usLastCharIndex;
54
+ private final short sTypoAscender;
55
+ private final short sTypoDescender;
56
+ private final short sTypoLineGap;
57
+ private final int usWinAscent;
58
+ private final int usWinDescent;
59
+ private final int ulCodePageRange1;
60
+ private final int ulCodePageRange2;
61
+
62
+ protected Os2Table(DirectoryEntry de, RandomAccessFileEmulator raf) throws IOException {
63
+ raf.seek(de.getOffset());
64
+ version = raf.readUnsignedShort();
65
+ xAvgCharWidth = raf.readShort();
66
+ usWeightClass = raf.readUnsignedShort();
67
+ usWidthClass = raf.readUnsignedShort();
68
+ fsType = raf.readShort();
69
+ ySubscriptXSize = raf.readShort();
70
+ ySubscriptYSize = raf.readShort();
71
+ ySubscriptXOffset = raf.readShort();
72
+ ySubscriptYOffset = raf.readShort();
73
+ ySuperscriptXSize = raf.readShort();
74
+ ySuperscriptYSize = raf.readShort();
75
+ ySuperscriptXOffset = raf.readShort();
76
+ ySuperscriptYOffset = raf.readShort();
77
+ yStrikeoutSize = raf.readShort();
78
+ yStrikeoutPosition = raf.readShort();
79
+ sFamilyClass = raf.readShort();
80
+ byte[] buf = new byte[10];
81
+ raf.read(buf);
82
+ panose = new Panose(buf);
83
+ ulUnicodeRange1 = raf.readInt();
84
+ ulUnicodeRange2 = raf.readInt();
85
+ ulUnicodeRange3 = raf.readInt();
86
+ ulUnicodeRange4 = raf.readInt();
87
+ achVendorID = raf.readInt();
88
+ fsSelection = raf.readShort();
89
+ usFirstCharIndex = raf.readUnsignedShort();
90
+ usLastCharIndex = raf.readUnsignedShort();
91
+ sTypoAscender = raf.readShort();
92
+ sTypoDescender = raf.readShort();
93
+ sTypoLineGap = raf.readShort();
94
+ usWinAscent = raf.readUnsignedShort();
95
+ usWinDescent = raf.readUnsignedShort();
96
+ ulCodePageRange1 = raf.readInt();
97
+ ulCodePageRange2 = raf.readInt();
98
+ }
99
+
100
+ public int getVersion() {
101
+ return version;
102
+ }
103
+
104
+ public short getAvgCharWidth() {
105
+ return xAvgCharWidth;
106
+ }
107
+
108
+ public int getWeightClass() {
109
+ return usWeightClass;
110
+ }
111
+
112
+ public int getWidthClass() {
113
+ return usWidthClass;
114
+ }
115
+
116
+ public short getLicenseType() {
117
+ return fsType;
118
+ }
119
+
120
+ public short getSubscriptXSize() {
121
+ return ySubscriptXSize;
122
+ }
123
+
124
+ public short getSubscriptYSize() {
125
+ return ySubscriptYSize;
126
+ }
127
+
128
+ public short getSubscriptXOffset() {
129
+ return ySubscriptXOffset;
130
+ }
131
+
132
+ public short getSubscriptYOffset() {
133
+ return ySubscriptYOffset;
134
+ }
135
+
136
+ public short getSuperscriptXSize() {
137
+ return ySuperscriptXSize;
138
+ }
139
+
140
+ public short getSuperscriptYSize() {
141
+ return ySuperscriptYSize;
142
+ }
143
+
144
+ public short getSuperscriptXOffset() {
145
+ return ySuperscriptXOffset;
146
+ }
147
+
148
+ public short getSuperscriptYOffset() {
149
+ return ySuperscriptYOffset;
150
+ }
151
+
152
+ public short getStrikeoutSize() {
153
+ return yStrikeoutSize;
154
+ }
155
+
156
+ public short getStrikeoutPosition() {
157
+ return yStrikeoutPosition;
158
+ }
159
+
160
+ public short getFamilyClass() {
161
+ return sFamilyClass;
162
+ }
163
+
164
+ public Panose getPanose() {
165
+ return panose;
166
+ }
167
+
168
+ public int getUnicodeRange1() {
169
+ return ulUnicodeRange1;
170
+ }
171
+
172
+ public int getUnicodeRange2() {
173
+ return ulUnicodeRange2;
174
+ }
175
+
176
+ public int getUnicodeRange3() {
177
+ return ulUnicodeRange3;
178
+ }
179
+
180
+ public int getUnicodeRange4() {
181
+ return ulUnicodeRange4;
182
+ }
183
+
184
+ public int getVendorID() {
185
+ return achVendorID;
186
+ }
187
+
188
+ public short getSelection() {
189
+ return fsSelection;
190
+ }
191
+
192
+ public int getFirstCharIndex() {
193
+ return usFirstCharIndex;
194
+ }
195
+
196
+ public int getLastCharIndex() {
197
+ return usLastCharIndex;
198
+ }
199
199
 
200
- public short getTypoAscender() {
201
- return sTypoAscender;
202
- }
200
+ public short getTypoAscender() {
201
+ return sTypoAscender;
202
+ }
203
203
 
204
- public short getTypoDescender() {
205
- return sTypoDescender;
206
- }
204
+ public short getTypoDescender() {
205
+ return sTypoDescender;
206
+ }
207
207
 
208
- public short getTypoLineGap() {
209
- return sTypoLineGap;
210
- }
208
+ public short getTypoLineGap() {
209
+ return sTypoLineGap;
210
+ }
211
211
 
212
- public int getWinAscent() {
213
- return usWinAscent;
214
- }
212
+ public int getWinAscent() {
213
+ return usWinAscent;
214
+ }
215
215
 
216
- public int getWinDescent() {
217
- return usWinDescent;
218
- }
216
+ public int getWinDescent() {
217
+ return usWinDescent;
218
+ }
219
219
 
220
- public int getCodePageRange1() {
221
- return ulCodePageRange1;
222
- }
220
+ public int getCodePageRange1() {
221
+ return ulCodePageRange1;
222
+ }
223
223
 
224
- public int getCodePageRange2() {
225
- return ulCodePageRange2;
226
- }
224
+ public int getCodePageRange2() {
225
+ return ulCodePageRange2;
226
+ }
227
227
 
228
- @Override
229
- public int getType() {
230
- return OS_2;
231
- }
228
+ @Override
229
+ public int getType() {
230
+ return OS_2;
231
+ }
232
232
  }
@@ -34,9 +34,11 @@ public class Panose {
34
34
  byte bMidline = 0;
35
35
  byte bXHeight = 0;
36
36
 
37
- /** Creates new Panose
38
- * @param panose
39
- */
37
+ /**
38
+ * Creates new Panose
39
+ *
40
+ * @param panose
41
+ */
40
42
  public Panose(byte[] panose) {
41
43
  bFamilyType = panose[0];
42
44
  bSerifStyle = panose[1];
@@ -53,11 +55,11 @@ public class Panose {
53
55
  public byte getFamilyType() {
54
56
  return bFamilyType;
55
57
  }
56
-
58
+
57
59
  public byte getSerifStyle() {
58
60
  return bSerifStyle;
59
61
  }
60
-
62
+
61
63
  public byte getWeight() {
62
64
  return bWeight;
63
65
  }
@@ -65,31 +67,31 @@ public class Panose {
65
67
  public byte getProportion() {
66
68
  return bProportion;
67
69
  }
68
-
70
+
69
71
  public byte getContrast() {
70
72
  return bContrast;
71
73
  }
72
-
74
+
73
75
  public byte getStrokeVariation() {
74
76
  return bStrokeVariation;
75
77
  }
76
-
78
+
77
79
  public byte getArmStyle() {
78
80
  return bArmStyle;
79
81
  }
80
-
82
+
81
83
  public byte getLetterForm() {
82
84
  return bLetterform;
83
85
  }
84
-
86
+
85
87
  public byte getMidline() {
86
88
  return bMidline;
87
89
  }
88
-
90
+
89
91
  public byte getXHeight() {
90
92
  return bXHeight;
91
93
  }
92
-
94
+
93
95
  @Override
94
96
  public String toString() {
95
97
  StringBuilder sb = new StringBuilder();