1: <?php
2: 3: 4: 5: 6: 7: 8:
9:
10: 11: 12: 13: 14: 15:
16: class Horde_Pdf_Font_Times
17: {
18:
19: public function getWidths()
20: {
21: return array('times' => array(
22: chr(0) => 250,
23: chr(1) => 250,
24: chr(2) => 250,
25: chr(3) => 250,
26: chr(4) => 250,
27: chr(5) => 250,
28: chr(6) => 250,
29: chr(7) => 250,
30: chr(8) => 250,
31: chr(9) => 250,
32: chr(10) => 250,
33: chr(11) => 250,
34: chr(12) => 250,
35: chr(13) => 250,
36: chr(14) => 250,
37: chr(15) => 250,
38: chr(16) => 250,
39: chr(17) => 250,
40: chr(18) => 250,
41: chr(19) => 250,
42: chr(20) => 250,
43: chr(21) => 250,
44:
45: chr(22) => 250,
46: chr(23) => 250,
47: chr(24) => 250,
48: chr(25) => 250,
49: chr(26) => 250,
50: chr(27) => 250,
51: chr(28) => 250,
52: chr(29) => 250,
53: chr(30) => 250,
54: chr(31) => 250,
55: ' ' => 250,
56: '!' => 333,
57: '"' => 408,
58: '#' => 500,
59: '$' => 500,
60: '%' => 833,
61: '&' => 778,
62: '\'' => 180,
63: '(' => 333,
64: ')' => 333,
65: '*' => 500,
66: '+' => 564,
67:
68: ',' => 250,
69: '-' => 333,
70: '.' => 250,
71: '/' => 278,
72: '0' => 500,
73: '1' => 500,
74: '2' => 500,
75: '3' => 500,
76: '4' => 500,
77: '5' => 500,
78: '6' => 500,
79: '7' => 500,
80: '8' => 500,
81: '9' => 500,
82: ':' => 278,
83: ';' => 278,
84: '<' => 564,
85: '=' => 564,
86: '>' => 564,
87: '?' => 444,
88: '@' => 921,
89: 'A' => 722,
90:
91: 'B' => 667,
92: 'C' => 667,
93: 'D' => 722,
94: 'E' => 611,
95: 'F' => 556,
96: 'G' => 722,
97: 'H' => 722,
98: 'I' => 333,
99: 'J' => 389,
100: 'K' => 722,
101: 'L' => 611,
102: 'M' => 889,
103: 'N' => 722,
104: 'O' => 722,
105: 'P' => 556,
106: 'Q' => 722,
107: 'R' => 667,
108: 'S' => 556,
109: 'T' => 611,
110: 'U' => 722,
111: 'V' => 722,
112: 'W' => 944,
113:
114: 'X' => 722,
115: 'Y' => 722,
116: 'Z' => 611,
117: '[' => 333,
118: '\\' => 278,
119: ']' => 333,
120: '^' => 469,
121: '_' => 500,
122: '`' => 333,
123: 'a' => 444,
124: 'b' => 500,
125: 'c' => 444,
126: 'd' => 500,
127: 'e' => 444,
128: 'f' => 333,
129: 'g' => 500,
130: 'h' => 500,
131: 'i' => 278,
132: 'j' => 278,
133: 'k' => 500,
134: 'l' => 278,
135: 'm' => 778,
136:
137: 'n' => 500,
138: 'o' => 500,
139: 'p' => 500,
140: 'q' => 500,
141: 'r' => 333,
142: 's' => 389,
143: 't' => 278,
144: 'u' => 500,
145: 'v' => 500,
146: 'w' => 722,
147: 'x' => 500,
148: 'y' => 500,
149: 'z' => 444,
150: '{' => 480,
151: '|' => 200,
152: '}' => 480,
153: '~' => 541,
154: chr(127) => 350,
155: chr(128) => 500,
156: chr(129) => 350,
157: chr(130) => 333,
158: chr(131) => 500,
159:
160: chr(132) => 444,
161: chr(133) => 1000,
162: chr(134) => 500,
163: chr(135) => 500,
164: chr(136) => 333,
165: chr(137) => 1000,
166: chr(138) => 556,
167: chr(139) => 333,
168: chr(140) => 889,
169: chr(141) => 350,
170: chr(142) => 611,
171: chr(143) => 350,
172: chr(144) => 350,
173: chr(145) => 333,
174: chr(146) => 333,
175: chr(147) => 444,
176: chr(148) => 444,
177: chr(149) => 350,
178: chr(150) => 500,
179: chr(151) => 1000,
180: chr(152) => 333,
181: chr(153) => 980,
182:
183: chr(154) => 389,
184: chr(155) => 333,
185: chr(156) => 722,
186: chr(157) => 350,
187: chr(158) => 444,
188: chr(159) => 722,
189: chr(160) => 250,
190: chr(161) => 333,
191: chr(162) => 500,
192: chr(163) => 500,
193: chr(164) => 500,
194: chr(165) => 500,
195: chr(166) => 200,
196: chr(167) => 500,
197: chr(168) => 333,
198: chr(169) => 760,
199: chr(170) => 276,
200: chr(171) => 500,
201: chr(172) => 564,
202: chr(173) => 333,
203: chr(174) => 760,
204: chr(175) => 333,
205:
206: chr(176) => 400,
207: chr(177) => 564,
208: chr(178) => 300,
209: chr(179) => 300,
210: chr(180) => 333,
211: chr(181) => 500,
212: chr(182) => 453,
213: chr(183) => 250,
214: chr(184) => 333,
215: chr(185) => 300,
216: chr(186) => 310,
217: chr(187) => 500,
218: chr(188) => 750,
219: chr(189) => 750,
220: chr(190) => 750,
221: chr(191) => 444,
222: chr(192) => 722,
223: chr(193) => 722,
224: chr(194) => 722,
225: chr(195) => 722,
226: chr(196) => 722,
227: chr(197) => 722,
228:
229: chr(198) => 889,
230: chr(199) => 667,
231: chr(200) => 611,
232: chr(201) => 611,
233: chr(202) => 611,
234: chr(203) => 611,
235: chr(204) => 333,
236: chr(205) => 333,
237: chr(206) => 333,
238: chr(207) => 333,
239: chr(208) => 722,
240: chr(209) => 722,
241: chr(210) => 722,
242: chr(211) => 722,
243: chr(212) => 722,
244: chr(213) => 722,
245: chr(214) => 722,
246: chr(215) => 564,
247: chr(216) => 722,
248: chr(217) => 722,
249: chr(218) => 722,
250: chr(219) => 722,
251:
252: chr(220) => 722,
253: chr(221) => 722,
254: chr(222) => 556,
255: chr(223) => 500,
256: chr(224) => 444,
257: chr(225) => 444,
258: chr(226) => 444,
259: chr(227) => 444,
260: chr(228) => 444,
261: chr(229) => 444,
262: chr(230) => 667,
263: chr(231) => 444,
264: chr(232) => 444,
265: chr(233) => 444,
266: chr(234) => 444,
267: chr(235) => 444,
268: chr(236) => 278,
269: chr(237) => 278,
270: chr(238) => 278,
271: chr(239) => 278,
272: chr(240) => 500,
273: chr(241) => 500,
274:
275: chr(242) => 500,
276: chr(243) => 500,
277: chr(244) => 500,
278: chr(245) => 500,
279: chr(246) => 500,
280: chr(247) => 564,
281: chr(248) => 500,
282: chr(249) => 500,
283: chr(250) => 500,
284: chr(251) => 500,
285: chr(252) => 500,
286: chr(253) => 500,
287: chr(254) => 500,
288: chr(255) => 500,
289: ));
290: }
291:
292: }
293: