axlsx 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -9
- data/doc/Axlsx.html +2443 -0
- data/doc/Axlsx/App.html +2640 -0
- data/doc/Axlsx/Axis.html +1047 -0
- data/doc/Axlsx/Bar3DChart.html +1153 -0
- data/doc/Axlsx/BarSeries.html +764 -0
- data/doc/Axlsx/Border.html +775 -0
- data/doc/Axlsx/BorderPr.html +709 -0
- data/doc/Axlsx/CatAxis.html +766 -0
- data/doc/Axlsx/Cell.html +1623 -0
- data/doc/Axlsx/CellAlignment.html +1247 -0
- data/doc/Axlsx/CellProtection.html +565 -0
- data/doc/Axlsx/CellStyle.html +949 -0
- data/doc/Axlsx/Chart.html +1459 -0
- data/doc/Axlsx/Color.html +665 -0
- data/doc/Axlsx/ContentType.html +340 -0
- data/doc/Axlsx/Core.html +465 -0
- data/doc/Axlsx/DataTypeValidator.html +324 -0
- data/doc/Axlsx/Default.html +575 -0
- data/doc/Axlsx/Drawing.html +1154 -0
- data/doc/Axlsx/Fill.html +460 -0
- data/doc/Axlsx/Font.html +1554 -0
- data/doc/Axlsx/GradientFill.html +1026 -0
- data/doc/Axlsx/GradientStop.html +526 -0
- data/doc/Axlsx/GraphicFrame.html +646 -0
- data/doc/Axlsx/Line3DChart.html +921 -0
- data/doc/Axlsx/LineSeries.html +656 -0
- data/doc/Axlsx/Marker.html +857 -0
- data/doc/Axlsx/NumFmt.html +562 -0
- data/doc/Axlsx/Override.html +568 -0
- data/doc/Axlsx/Package.html +1293 -0
- data/doc/Axlsx/PatternFill.html +681 -0
- data/doc/Axlsx/Pie3DChart.html +439 -0
- data/doc/Axlsx/PieSeries.html +762 -0
- data/doc/Axlsx/RegexValidator.html +268 -0
- data/doc/Axlsx/Relationship.html +554 -0
- data/doc/Axlsx/Relationships.html +343 -0
- data/doc/Axlsx/RestrictionValidator.html +300 -0
- data/doc/Axlsx/Row.html +771 -0
- data/doc/Axlsx/Scaling.html +740 -0
- data/doc/Axlsx/SerAxis.html +624 -0
- data/doc/Axlsx/Series.html +746 -0
- data/doc/Axlsx/SeriesTitle.html +289 -0
- data/doc/Axlsx/SimpleTypedList.html +1617 -0
- data/doc/Axlsx/Styles.html +1754 -0
- data/doc/Axlsx/TableStyle.html +710 -0
- data/doc/Axlsx/TableStyleElement.html +677 -0
- data/doc/Axlsx/TableStyles.html +599 -0
- data/doc/Axlsx/Title.html +625 -0
- data/doc/Axlsx/TwoCellAnchor.html +1115 -0
- data/doc/Axlsx/ValAxis.html +539 -0
- data/doc/Axlsx/View3D.html +971 -0
- data/doc/Axlsx/Workbook.html +1347 -0
- data/doc/Axlsx/Worksheet.html +1864 -0
- data/doc/Axlsx/Xf.html +1681 -0
- data/doc/_index.html +611 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +262 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +262 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +167 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +3038 -0
- data/doc/top-level-namespace.html +103 -0
- data/lib/axlsx/util/constants.rb +1 -1
- metadata +71 -3
data/doc/Axlsx/Font.html
ADDED
|
@@ -0,0 +1,1554 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: Axlsx::Font
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.7.3
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
relpath = '..';
|
|
19
|
+
if (relpath != '') relpath += '/';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div id="header">
|
|
34
|
+
<div id="menu">
|
|
35
|
+
|
|
36
|
+
<a href="../_index.html">Index (F)</a> »
|
|
37
|
+
<span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
|
|
38
|
+
»
|
|
39
|
+
<span class="title">Font</span>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="search">
|
|
46
|
+
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
|
48
|
+
|
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
|
50
|
+
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<iframe id="search_frame"></iframe>
|
|
58
|
+
|
|
59
|
+
<div id="content"><h1>Class: Axlsx::Font
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</h1>
|
|
64
|
+
|
|
65
|
+
<dl class="box">
|
|
66
|
+
|
|
67
|
+
<dt class="r1">Inherits:</dt>
|
|
68
|
+
<dd class="r1">
|
|
69
|
+
<span class="inheritName">Object</span>
|
|
70
|
+
|
|
71
|
+
<ul class="fullTree">
|
|
72
|
+
<li>Object</li>
|
|
73
|
+
|
|
74
|
+
<li class="next">Axlsx::Font</li>
|
|
75
|
+
|
|
76
|
+
</ul>
|
|
77
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
78
|
+
|
|
79
|
+
</dd>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<dt class="r2 last">Defined in:</dt>
|
|
90
|
+
<dd class="r2 last">lib/axlsx/stylesheet/font.rb</dd>
|
|
91
|
+
|
|
92
|
+
</dl>
|
|
93
|
+
<div class="clear"></div>
|
|
94
|
+
|
|
95
|
+
<h2>Overview</h2><div class="docstring">
|
|
96
|
+
<div class="discussion">
|
|
97
|
+
|
|
98
|
+
<div class="note notetag">
|
|
99
|
+
<strong>Note:</strong>
|
|
100
|
+
<div class='inline'><p>
|
|
101
|
+
The recommended way to manage fonts, and other styles is Styles#add_style
|
|
102
|
+
</p>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<p>
|
|
107
|
+
The Font class details a font instance for use in styling cells.
|
|
108
|
+
</p>
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="tags">
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
<h3>See Also:</h3>
|
|
117
|
+
<ul class="see">
|
|
118
|
+
|
|
119
|
+
<li><span class='object_link'><a href="Styles.html#add_style-instance_method" title="Axlsx::Styles#add_style (method)">Styles#add_style</a></span></li>
|
|
120
|
+
|
|
121
|
+
</ul>
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
126
|
+
<ul class="summary">
|
|
127
|
+
|
|
128
|
+
<li class="public ">
|
|
129
|
+
<span class="summary_signature">
|
|
130
|
+
|
|
131
|
+
<a href="#b-instance_method" title="#b (instance method)">- (Boolean) <strong>b</strong> </a>
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</span>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
148
|
+
Indicates if the font should be rendered in <b>bold</b>.
|
|
149
|
+
</p>
|
|
150
|
+
</div></span>
|
|
151
|
+
|
|
152
|
+
</li>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
<li class="public ">
|
|
156
|
+
<span class="summary_signature">
|
|
157
|
+
|
|
158
|
+
<a href="#charset-instance_method" title="#charset (instance method)">- (Integer) <strong>charset</strong> </a>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</span>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
175
|
+
The charset of the font.
|
|
176
|
+
</p>
|
|
177
|
+
</div></span>
|
|
178
|
+
|
|
179
|
+
</li>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<li class="public ">
|
|
183
|
+
<span class="summary_signature">
|
|
184
|
+
|
|
185
|
+
<a href="#color-instance_method" title="#color (instance method)">- (Color) <strong>color</strong> </a>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
</span>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
202
|
+
The color of the font.
|
|
203
|
+
</p>
|
|
204
|
+
</div></span>
|
|
205
|
+
|
|
206
|
+
</li>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<li class="public ">
|
|
210
|
+
<span class="summary_signature">
|
|
211
|
+
|
|
212
|
+
<a href="#condense-instance_method" title="#condense (instance method)">- (Boolean) <strong>condense</strong> </a>
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
</span>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
229
|
+
Indicates if the font should be condensed.
|
|
230
|
+
</p>
|
|
231
|
+
</div></span>
|
|
232
|
+
|
|
233
|
+
</li>
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
<li class="public ">
|
|
237
|
+
<span class="summary_signature">
|
|
238
|
+
|
|
239
|
+
<a href="#extend-instance_method" title="#extend (instance method)">- (Boolean) <strong>extend</strong> </a>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
</span>
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
256
|
+
The font’s extend property.
|
|
257
|
+
</p>
|
|
258
|
+
</div></span>
|
|
259
|
+
|
|
260
|
+
</li>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<li class="public ">
|
|
264
|
+
<span class="summary_signature">
|
|
265
|
+
|
|
266
|
+
<a href="#family-instance_method" title="#family (instance method)">- (Integer) <strong>family</strong> </a>
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
</span>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
283
|
+
The font’s family.
|
|
284
|
+
</p>
|
|
285
|
+
</div></span>
|
|
286
|
+
|
|
287
|
+
</li>
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<li class="public ">
|
|
291
|
+
<span class="summary_signature">
|
|
292
|
+
|
|
293
|
+
<a href="#i-instance_method" title="#i (instance method)">- (Boolean) <strong>i</strong> </a>
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
</span>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
310
|
+
Indicates if the font should be rendered italicized.
|
|
311
|
+
</p>
|
|
312
|
+
</div></span>
|
|
313
|
+
|
|
314
|
+
</li>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
<li class="public ">
|
|
318
|
+
<span class="summary_signature">
|
|
319
|
+
|
|
320
|
+
<a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
</span>
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
337
|
+
The name of the font.
|
|
338
|
+
</p>
|
|
339
|
+
</div></span>
|
|
340
|
+
|
|
341
|
+
</li>
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<li class="public ">
|
|
345
|
+
<span class="summary_signature">
|
|
346
|
+
|
|
347
|
+
<a href="#outline-instance_method" title="#outline (instance method)">- (Boolean) <strong>outline</strong> </a>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
</span>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
364
|
+
Indicates if the font should be rendered with an outline.
|
|
365
|
+
</p>
|
|
366
|
+
</div></span>
|
|
367
|
+
|
|
368
|
+
</li>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
<li class="public ">
|
|
372
|
+
<span class="summary_signature">
|
|
373
|
+
|
|
374
|
+
<a href="#shadow-instance_method" title="#shadow (instance method)">- (Boolean) <strong>shadow</strong> </a>
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
</span>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
391
|
+
Indicates if the font should be rendered with a shadow.
|
|
392
|
+
</p>
|
|
393
|
+
</div></span>
|
|
394
|
+
|
|
395
|
+
</li>
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
<li class="public ">
|
|
399
|
+
<span class="summary_signature">
|
|
400
|
+
|
|
401
|
+
<a href="#strike-instance_method" title="#strike (instance method)">- (Boolean) <strong>strike</strong> </a>
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
</span>
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
418
|
+
Indicates if the font should be rendered with a strikthrough.
|
|
419
|
+
</p>
|
|
420
|
+
</div></span>
|
|
421
|
+
|
|
422
|
+
</li>
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
<li class="public ">
|
|
426
|
+
<span class="summary_signature">
|
|
427
|
+
|
|
428
|
+
<a href="#sz-instance_method" title="#sz (instance method)">- (Integer) <strong>sz</strong> </a>
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
</span>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
445
|
+
The size of the font.
|
|
446
|
+
</p>
|
|
447
|
+
</div></span>
|
|
448
|
+
|
|
449
|
+
</li>
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
</ul>
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
<h2>
|
|
459
|
+
Instance Method Summary
|
|
460
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
461
|
+
</h2>
|
|
462
|
+
|
|
463
|
+
<ul class="summary">
|
|
464
|
+
|
|
465
|
+
<li class="public ">
|
|
466
|
+
<span class="summary_signature">
|
|
467
|
+
|
|
468
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Font) <strong>initialize</strong>(options = {}) </a>
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
</span>
|
|
473
|
+
|
|
474
|
+
<span class="note title constructor">constructor</span>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
484
|
+
Creates a new Font.
|
|
485
|
+
</p>
|
|
486
|
+
</div></span>
|
|
487
|
+
|
|
488
|
+
</li>
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
<li class="public ">
|
|
492
|
+
<span class="summary_signature">
|
|
493
|
+
|
|
494
|
+
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
</span>
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
508
|
+
Serializes the fill.
|
|
509
|
+
</p>
|
|
510
|
+
</div></span>
|
|
511
|
+
|
|
512
|
+
</li>
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
</ul>
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
<div id="constructor_details" class="method_details_list">
|
|
519
|
+
<h2>Constructor Details</h2>
|
|
520
|
+
|
|
521
|
+
<div class="method_details first">
|
|
522
|
+
<p class="signature first" id="initialize-instance_method">
|
|
523
|
+
|
|
524
|
+
- (<tt><span class='object_link'><a href="" title="Axlsx::Font (class)">Font</a></span></tt>) <strong>initialize</strong>(options = {})
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
</p><div class="docstring">
|
|
529
|
+
<div class="discussion">
|
|
530
|
+
<p>
|
|
531
|
+
Creates a new Font
|
|
532
|
+
</p>
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
</div>
|
|
536
|
+
</div>
|
|
537
|
+
<div class="tags">
|
|
538
|
+
<h3>Parameters:</h3>
|
|
539
|
+
<ul class="param">
|
|
540
|
+
|
|
541
|
+
<li>
|
|
542
|
+
|
|
543
|
+
<span class='name'>options</span>
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
—
|
|
553
|
+
<div class='inline'><p>
|
|
554
|
+
a customizable set of options
|
|
555
|
+
</p>
|
|
556
|
+
</div>
|
|
557
|
+
|
|
558
|
+
</li>
|
|
559
|
+
|
|
560
|
+
</ul>
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
<h3>Options Hash (<tt>options</tt>):</h3>
|
|
566
|
+
<ul class="option">
|
|
567
|
+
|
|
568
|
+
<li>
|
|
569
|
+
<span class="name">name</span>
|
|
570
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
571
|
+
<span class="default">
|
|
572
|
+
|
|
573
|
+
</span>
|
|
574
|
+
|
|
575
|
+
</li>
|
|
576
|
+
|
|
577
|
+
<li>
|
|
578
|
+
<span class="name">charset</span>
|
|
579
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
580
|
+
<span class="default">
|
|
581
|
+
|
|
582
|
+
</span>
|
|
583
|
+
|
|
584
|
+
</li>
|
|
585
|
+
|
|
586
|
+
<li>
|
|
587
|
+
<span class="name">family</span>
|
|
588
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
589
|
+
<span class="default">
|
|
590
|
+
|
|
591
|
+
</span>
|
|
592
|
+
|
|
593
|
+
</li>
|
|
594
|
+
|
|
595
|
+
<li>
|
|
596
|
+
<span class="name">family</span>
|
|
597
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
598
|
+
<span class="default">
|
|
599
|
+
|
|
600
|
+
</span>
|
|
601
|
+
|
|
602
|
+
</li>
|
|
603
|
+
|
|
604
|
+
<li>
|
|
605
|
+
<span class="name">b</span>
|
|
606
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
607
|
+
<span class="default">
|
|
608
|
+
|
|
609
|
+
</span>
|
|
610
|
+
|
|
611
|
+
</li>
|
|
612
|
+
|
|
613
|
+
<li>
|
|
614
|
+
<span class="name">i</span>
|
|
615
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
616
|
+
<span class="default">
|
|
617
|
+
|
|
618
|
+
</span>
|
|
619
|
+
|
|
620
|
+
</li>
|
|
621
|
+
|
|
622
|
+
<li>
|
|
623
|
+
<span class="name">strike</span>
|
|
624
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
625
|
+
<span class="default">
|
|
626
|
+
|
|
627
|
+
</span>
|
|
628
|
+
|
|
629
|
+
</li>
|
|
630
|
+
|
|
631
|
+
<li>
|
|
632
|
+
<span class="name">outline</span>
|
|
633
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
634
|
+
<span class="default">
|
|
635
|
+
|
|
636
|
+
</span>
|
|
637
|
+
|
|
638
|
+
</li>
|
|
639
|
+
|
|
640
|
+
<li>
|
|
641
|
+
<span class="name">shadow</span>
|
|
642
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
643
|
+
<span class="default">
|
|
644
|
+
|
|
645
|
+
</span>
|
|
646
|
+
|
|
647
|
+
</li>
|
|
648
|
+
|
|
649
|
+
<li>
|
|
650
|
+
<span class="name">condense</span>
|
|
651
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
652
|
+
<span class="default">
|
|
653
|
+
|
|
654
|
+
</span>
|
|
655
|
+
|
|
656
|
+
</li>
|
|
657
|
+
|
|
658
|
+
<li>
|
|
659
|
+
<span class="name">extend</span>
|
|
660
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
661
|
+
<span class="default">
|
|
662
|
+
|
|
663
|
+
</span>
|
|
664
|
+
|
|
665
|
+
</li>
|
|
666
|
+
|
|
667
|
+
<li>
|
|
668
|
+
<span class="name">color</span>
|
|
669
|
+
<span class="type">(<tt><span class='object_link'><a href="Color.html" title="Axlsx::Color (class)">Color</a></span></tt>)</span>
|
|
670
|
+
<span class="default">
|
|
671
|
+
|
|
672
|
+
</span>
|
|
673
|
+
|
|
674
|
+
</li>
|
|
675
|
+
|
|
676
|
+
<li>
|
|
677
|
+
<span class="name">sz</span>
|
|
678
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
679
|
+
<span class="default">
|
|
680
|
+
|
|
681
|
+
</span>
|
|
682
|
+
|
|
683
|
+
</li>
|
|
684
|
+
|
|
685
|
+
</ul>
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
</div><table class="source_code">
|
|
690
|
+
<tr>
|
|
691
|
+
<td>
|
|
692
|
+
<pre class="lines">
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
98
|
|
696
|
+
99
|
|
697
|
+
100
|
|
698
|
+
101
|
|
699
|
+
102</pre>
|
|
700
|
+
</td>
|
|
701
|
+
<td>
|
|
702
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 98</span>
|
|
703
|
+
|
|
704
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
|
705
|
+
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
|
|
706
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
|
|
707
|
+
<span class='end end kw'>end</span>
|
|
708
|
+
<span class='end end kw'>end</span>
|
|
709
|
+
</pre>
|
|
710
|
+
</td>
|
|
711
|
+
</tr>
|
|
712
|
+
</table>
|
|
713
|
+
</div>
|
|
714
|
+
|
|
715
|
+
</div>
|
|
716
|
+
|
|
717
|
+
<div id="instance_attr_details" class="attr_details">
|
|
718
|
+
<h2>Instance Attribute Details</h2>
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
<span id="b=-instance_method"></span>
|
|
722
|
+
<span id="b-instance_method"></span>
|
|
723
|
+
<div class="method_details first">
|
|
724
|
+
<p class="signature first" id="b-instance_method">
|
|
725
|
+
|
|
726
|
+
- (<tt>Boolean</tt>) <strong>b</strong>
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
</p><div class="docstring">
|
|
731
|
+
<div class="discussion">
|
|
732
|
+
<p>
|
|
733
|
+
Indicates if the font should be rendered in <b>bold</b>
|
|
734
|
+
</p>
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
</div>
|
|
738
|
+
</div>
|
|
739
|
+
<div class="tags">
|
|
740
|
+
|
|
741
|
+
<h3>Returns:</h3>
|
|
742
|
+
<ul class="return">
|
|
743
|
+
|
|
744
|
+
<li>
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
</li>
|
|
752
|
+
|
|
753
|
+
</ul>
|
|
754
|
+
|
|
755
|
+
</div><table class="source_code">
|
|
756
|
+
<tr>
|
|
757
|
+
<td>
|
|
758
|
+
<pre class="lines">
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
50
|
|
762
|
+
51
|
|
763
|
+
52</pre>
|
|
764
|
+
</td>
|
|
765
|
+
<td>
|
|
766
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 50</span>
|
|
767
|
+
|
|
768
|
+
<span class='def def kw'>def</span> <span class='b identifier id'>b</span>
|
|
769
|
+
<span class='@b ivar id'>@b</span>
|
|
770
|
+
<span class='end end kw'>end</span>
|
|
771
|
+
</pre>
|
|
772
|
+
</td>
|
|
773
|
+
</tr>
|
|
774
|
+
</table>
|
|
775
|
+
</div>
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
<span id="charset=-instance_method"></span>
|
|
779
|
+
<span id="charset-instance_method"></span>
|
|
780
|
+
<div class="method_details ">
|
|
781
|
+
<p class="signature " id="charset-instance_method">
|
|
782
|
+
|
|
783
|
+
- (<tt>Integer</tt>) <strong>charset</strong>
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
</p><div class="docstring">
|
|
788
|
+
<div class="discussion">
|
|
789
|
+
|
|
790
|
+
<div class="note notetag">
|
|
791
|
+
<strong>Note:</strong>
|
|
792
|
+
<div class='inline'><p>
|
|
793
|
+
The following values are defined in the OOXML specification and are OS
|
|
794
|
+
dependant values
|
|
795
|
+
</p>
|
|
796
|
+
<pre class="code">
|
|
797
|
+
<span class='integer val'>0</span> <span class='ANSI_CHARSET constant id'>ANSI_CHARSET</span>
|
|
798
|
+
<span class='integer val'>1</span> <span class='DEFAULT_CHARSET constant id'>DEFAULT_CHARSET</span>
|
|
799
|
+
<span class='integer val'>2</span> <span class='SYMBOL_CHARSET constant id'>SYMBOL_CHARSET</span>
|
|
800
|
+
<span class='integer val'>77</span> <span class='MAC_CHARSET constant id'>MAC_CHARSET</span>
|
|
801
|
+
<span class='integer val'>128</span> <span class='SHIFTJIS_CHARSET constant id'>SHIFTJIS_CHARSET</span>
|
|
802
|
+
<span class='integer val'>129</span> <span class='HANGUL_CHARSET constant id'>HANGUL_CHARSET</span>
|
|
803
|
+
<span class='integer val'>130</span> <span class='JOHAB_CHARSET constant id'>JOHAB_CHARSET</span>
|
|
804
|
+
<span class='integer val'>134</span> <span class='GB2312_CHARSET constant id'>GB2312_CHARSET</span>
|
|
805
|
+
<span class='integer val'>136</span> <span class='CHINESEBIG5_CHARSET constant id'>CHINESEBIG5_CHARSET</span>
|
|
806
|
+
<span class='integer val'>161</span> <span class='GREEK_CHARSET constant id'>GREEK_CHARSET</span>
|
|
807
|
+
<span class='integer val'>162</span> <span class='TURKISH_CHARSET constant id'>TURKISH_CHARSET</span>
|
|
808
|
+
<span class='integer val'>163</span> <span class='VIETNAMESE_CHARSET constant id'>VIETNAMESE_CHARSET</span>
|
|
809
|
+
<span class='integer val'>177</span> <span class='HEBREW_CHARSET constant id'>HEBREW_CHARSET</span>
|
|
810
|
+
<span class='integer val'>178</span> <span class='ARABIC_CHARSET constant id'>ARABIC_CHARSET</span>
|
|
811
|
+
<span class='integer val'>186</span> <span class='BALTIC_CHARSET constant id'>BALTIC_CHARSET</span>
|
|
812
|
+
<span class='integer val'>204</span> <span class='RUSSIAN_CHARSET constant id'>RUSSIAN_CHARSET</span>
|
|
813
|
+
<span class='integer val'>222</span> <span class='THAI_CHARSET constant id'>THAI_CHARSET</span>
|
|
814
|
+
<span class='integer val'>238</span> <span class='EASTEUROPE_CHARSET constant id'>EASTEUROPE_CHARSET</span>
|
|
815
|
+
<span class='integer val'>255</span> <span class='OEM_CHARSET constant id'>OEM_CHARSET</span>
|
|
816
|
+
</pre>
|
|
817
|
+
</div>
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
<p>
|
|
821
|
+
The charset of the font
|
|
822
|
+
</p>
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
</div>
|
|
826
|
+
</div>
|
|
827
|
+
<div class="tags">
|
|
828
|
+
|
|
829
|
+
<h3>Returns:</h3>
|
|
830
|
+
<ul class="return">
|
|
831
|
+
|
|
832
|
+
<li>
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
</li>
|
|
840
|
+
|
|
841
|
+
</ul>
|
|
842
|
+
|
|
843
|
+
</div><table class="source_code">
|
|
844
|
+
<tr>
|
|
845
|
+
<td>
|
|
846
|
+
<pre class="lines">
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
33
|
|
850
|
+
34
|
|
851
|
+
35</pre>
|
|
852
|
+
</td>
|
|
853
|
+
<td>
|
|
854
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 33</span>
|
|
855
|
+
|
|
856
|
+
<span class='def def kw'>def</span> <span class='charset identifier id'>charset</span>
|
|
857
|
+
<span class='@charset ivar id'>@charset</span>
|
|
858
|
+
<span class='end end kw'>end</span>
|
|
859
|
+
</pre>
|
|
860
|
+
</td>
|
|
861
|
+
</tr>
|
|
862
|
+
</table>
|
|
863
|
+
</div>
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
<span id="color=-instance_method"></span>
|
|
867
|
+
<span id="color-instance_method"></span>
|
|
868
|
+
<div class="method_details ">
|
|
869
|
+
<p class="signature " id="color-instance_method">
|
|
870
|
+
|
|
871
|
+
- (<tt><span class='object_link'><a href="Color.html" title="Axlsx::Color (class)">Color</a></span></tt>) <strong>color</strong>
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
</p><div class="docstring">
|
|
876
|
+
<div class="discussion">
|
|
877
|
+
<p>
|
|
878
|
+
The color of the font
|
|
879
|
+
</p>
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
</div>
|
|
883
|
+
</div>
|
|
884
|
+
<div class="tags">
|
|
885
|
+
|
|
886
|
+
<h3>Returns:</h3>
|
|
887
|
+
<ul class="return">
|
|
888
|
+
|
|
889
|
+
<li>
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
<span class='type'>(<tt><span class='object_link'><a href="Color.html" title="Axlsx::Color (class)">Color</a></span></tt>)</span>
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
</li>
|
|
897
|
+
|
|
898
|
+
</ul>
|
|
899
|
+
|
|
900
|
+
</div><table class="source_code">
|
|
901
|
+
<tr>
|
|
902
|
+
<td>
|
|
903
|
+
<pre class="lines">
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
78
|
|
907
|
+
79
|
|
908
|
+
80</pre>
|
|
909
|
+
</td>
|
|
910
|
+
<td>
|
|
911
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 78</span>
|
|
912
|
+
|
|
913
|
+
<span class='def def kw'>def</span> <span class='color identifier id'>color</span>
|
|
914
|
+
<span class='@color ivar id'>@color</span>
|
|
915
|
+
<span class='end end kw'>end</span>
|
|
916
|
+
</pre>
|
|
917
|
+
</td>
|
|
918
|
+
</tr>
|
|
919
|
+
</table>
|
|
920
|
+
</div>
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
<span id="condense=-instance_method"></span>
|
|
924
|
+
<span id="condense-instance_method"></span>
|
|
925
|
+
<div class="method_details ">
|
|
926
|
+
<p class="signature " id="condense-instance_method">
|
|
927
|
+
|
|
928
|
+
- (<tt>Boolean</tt>) <strong>condense</strong>
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
</p><div class="docstring">
|
|
933
|
+
<div class="discussion">
|
|
934
|
+
<p>
|
|
935
|
+
Indicates if the font should be condensed
|
|
936
|
+
</p>
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
</div>
|
|
940
|
+
</div>
|
|
941
|
+
<div class="tags">
|
|
942
|
+
|
|
943
|
+
<h3>Returns:</h3>
|
|
944
|
+
<ul class="return">
|
|
945
|
+
|
|
946
|
+
<li>
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
</li>
|
|
954
|
+
|
|
955
|
+
</ul>
|
|
956
|
+
|
|
957
|
+
</div><table class="source_code">
|
|
958
|
+
<tr>
|
|
959
|
+
<td>
|
|
960
|
+
<pre class="lines">
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
70
|
|
964
|
+
71
|
|
965
|
+
72</pre>
|
|
966
|
+
</td>
|
|
967
|
+
<td>
|
|
968
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 70</span>
|
|
969
|
+
|
|
970
|
+
<span class='def def kw'>def</span> <span class='condense identifier id'>condense</span>
|
|
971
|
+
<span class='@condense ivar id'>@condense</span>
|
|
972
|
+
<span class='end end kw'>end</span>
|
|
973
|
+
</pre>
|
|
974
|
+
</td>
|
|
975
|
+
</tr>
|
|
976
|
+
</table>
|
|
977
|
+
</div>
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
<span id="extend=-instance_method"></span>
|
|
981
|
+
<span id="extend-instance_method"></span>
|
|
982
|
+
<div class="method_details ">
|
|
983
|
+
<p class="signature " id="extend-instance_method">
|
|
984
|
+
|
|
985
|
+
- (<tt>Boolean</tt>) <strong>extend</strong>
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
</p><div class="docstring">
|
|
990
|
+
<div class="discussion">
|
|
991
|
+
<p>
|
|
992
|
+
The font’s extend property
|
|
993
|
+
</p>
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
</div>
|
|
997
|
+
</div>
|
|
998
|
+
<div class="tags">
|
|
999
|
+
|
|
1000
|
+
<h3>Returns:</h3>
|
|
1001
|
+
<ul class="return">
|
|
1002
|
+
|
|
1003
|
+
<li>
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
</li>
|
|
1011
|
+
|
|
1012
|
+
</ul>
|
|
1013
|
+
|
|
1014
|
+
</div><table class="source_code">
|
|
1015
|
+
<tr>
|
|
1016
|
+
<td>
|
|
1017
|
+
<pre class="lines">
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
74
|
|
1021
|
+
75
|
|
1022
|
+
76</pre>
|
|
1023
|
+
</td>
|
|
1024
|
+
<td>
|
|
1025
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 74</span>
|
|
1026
|
+
|
|
1027
|
+
<span class='def def kw'>def</span> <span class='extend identifier id'>extend</span>
|
|
1028
|
+
<span class='@extend ivar id'>@extend</span>
|
|
1029
|
+
<span class='end end kw'>end</span>
|
|
1030
|
+
</pre>
|
|
1031
|
+
</td>
|
|
1032
|
+
</tr>
|
|
1033
|
+
</table>
|
|
1034
|
+
</div>
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
<span id="family=-instance_method"></span>
|
|
1038
|
+
<span id="family-instance_method"></span>
|
|
1039
|
+
<div class="method_details ">
|
|
1040
|
+
<p class="signature " id="family-instance_method">
|
|
1041
|
+
|
|
1042
|
+
- (<tt>Integer</tt>) <strong>family</strong>
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
</p><div class="docstring">
|
|
1047
|
+
<div class="discussion">
|
|
1048
|
+
|
|
1049
|
+
<div class="note notetag">
|
|
1050
|
+
<strong>Note:</strong>
|
|
1051
|
+
<div class='inline'><p>
|
|
1052
|
+
The following are defined OOXML specification
|
|
1053
|
+
</p>
|
|
1054
|
+
<pre class="code">
|
|
1055
|
+
<span class='integer val'>0</span> <span class='Not constant id'>Not</span> <span class='applicable identifier id'>applicable</span><span class='dot token'>.</span>
|
|
1056
|
+
<span class='integer val'>1</span> <span class='Roman constant id'>Roman</span>
|
|
1057
|
+
<span class='integer val'>2</span> <span class='Swiss constant id'>Swiss</span>
|
|
1058
|
+
<span class='integer val'>3</span> <span class='Modern constant id'>Modern</span>
|
|
1059
|
+
<span class='integer val'>4</span> <span class='Script constant id'>Script</span>
|
|
1060
|
+
<span class='integer val'>5</span> <span class='Decorative constant id'>Decorative</span>
|
|
1061
|
+
<span class='float val'>6</span><span class='dot2 op'>..</span><span class='integer val'>14</span> <span class='Reserved constant id'>Reserved</span> <span class='for for kw'>for</span> <span class='future identifier id'>future</span> <span class='use identifier id'>use</span>
|
|
1062
|
+
</pre>
|
|
1063
|
+
</div>
|
|
1064
|
+
</div>
|
|
1065
|
+
|
|
1066
|
+
<p>
|
|
1067
|
+
The font’s family
|
|
1068
|
+
</p>
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
</div>
|
|
1072
|
+
</div>
|
|
1073
|
+
<div class="tags">
|
|
1074
|
+
|
|
1075
|
+
<h3>Returns:</h3>
|
|
1076
|
+
<ul class="return">
|
|
1077
|
+
|
|
1078
|
+
<li>
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
</li>
|
|
1086
|
+
|
|
1087
|
+
</ul>
|
|
1088
|
+
|
|
1089
|
+
</div><table class="source_code">
|
|
1090
|
+
<tr>
|
|
1091
|
+
<td>
|
|
1092
|
+
<pre class="lines">
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
46
|
|
1096
|
+
47
|
|
1097
|
+
48</pre>
|
|
1098
|
+
</td>
|
|
1099
|
+
<td>
|
|
1100
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 46</span>
|
|
1101
|
+
|
|
1102
|
+
<span class='def def kw'>def</span> <span class='family identifier id'>family</span>
|
|
1103
|
+
<span class='@family ivar id'>@family</span>
|
|
1104
|
+
<span class='end end kw'>end</span>
|
|
1105
|
+
</pre>
|
|
1106
|
+
</td>
|
|
1107
|
+
</tr>
|
|
1108
|
+
</table>
|
|
1109
|
+
</div>
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
<span id="i=-instance_method"></span>
|
|
1113
|
+
<span id="i-instance_method"></span>
|
|
1114
|
+
<div class="method_details ">
|
|
1115
|
+
<p class="signature " id="i-instance_method">
|
|
1116
|
+
|
|
1117
|
+
- (<tt>Boolean</tt>) <strong>i</strong>
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
</p><div class="docstring">
|
|
1122
|
+
<div class="discussion">
|
|
1123
|
+
<p>
|
|
1124
|
+
Indicates if the font should be rendered italicized
|
|
1125
|
+
</p>
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
</div>
|
|
1129
|
+
</div>
|
|
1130
|
+
<div class="tags">
|
|
1131
|
+
|
|
1132
|
+
<h3>Returns:</h3>
|
|
1133
|
+
<ul class="return">
|
|
1134
|
+
|
|
1135
|
+
<li>
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
</li>
|
|
1143
|
+
|
|
1144
|
+
</ul>
|
|
1145
|
+
|
|
1146
|
+
</div><table class="source_code">
|
|
1147
|
+
<tr>
|
|
1148
|
+
<td>
|
|
1149
|
+
<pre class="lines">
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
54
|
|
1153
|
+
55
|
|
1154
|
+
56</pre>
|
|
1155
|
+
</td>
|
|
1156
|
+
<td>
|
|
1157
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 54</span>
|
|
1158
|
+
|
|
1159
|
+
<span class='def def kw'>def</span> <span class='i identifier id'>i</span>
|
|
1160
|
+
<span class='@i ivar id'>@i</span>
|
|
1161
|
+
<span class='end end kw'>end</span>
|
|
1162
|
+
</pre>
|
|
1163
|
+
</td>
|
|
1164
|
+
</tr>
|
|
1165
|
+
</table>
|
|
1166
|
+
</div>
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
<span id="name=-instance_method"></span>
|
|
1170
|
+
<span id="name-instance_method"></span>
|
|
1171
|
+
<div class="method_details ">
|
|
1172
|
+
<p class="signature " id="name-instance_method">
|
|
1173
|
+
|
|
1174
|
+
- (<tt>String</tt>) <strong>name</strong>
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
</p><div class="docstring">
|
|
1179
|
+
<div class="discussion">
|
|
1180
|
+
<p>
|
|
1181
|
+
The name of the font
|
|
1182
|
+
</p>
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
</div>
|
|
1186
|
+
</div>
|
|
1187
|
+
<div class="tags">
|
|
1188
|
+
|
|
1189
|
+
<h3>Returns:</h3>
|
|
1190
|
+
<ul class="return">
|
|
1191
|
+
|
|
1192
|
+
<li>
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
</li>
|
|
1200
|
+
|
|
1201
|
+
</ul>
|
|
1202
|
+
|
|
1203
|
+
</div><table class="source_code">
|
|
1204
|
+
<tr>
|
|
1205
|
+
<td>
|
|
1206
|
+
<pre class="lines">
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
8
|
|
1210
|
+
9
|
|
1211
|
+
10</pre>
|
|
1212
|
+
</td>
|
|
1213
|
+
<td>
|
|
1214
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 8</span>
|
|
1215
|
+
|
|
1216
|
+
<span class='def def kw'>def</span> <span class='name identifier id'>name</span>
|
|
1217
|
+
<span class='@name ivar id'>@name</span>
|
|
1218
|
+
<span class='end end kw'>end</span>
|
|
1219
|
+
</pre>
|
|
1220
|
+
</td>
|
|
1221
|
+
</tr>
|
|
1222
|
+
</table>
|
|
1223
|
+
</div>
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
<span id="outline=-instance_method"></span>
|
|
1227
|
+
<span id="outline-instance_method"></span>
|
|
1228
|
+
<div class="method_details ">
|
|
1229
|
+
<p class="signature " id="outline-instance_method">
|
|
1230
|
+
|
|
1231
|
+
- (<tt>Boolean</tt>) <strong>outline</strong>
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
</p><div class="docstring">
|
|
1236
|
+
<div class="discussion">
|
|
1237
|
+
<p>
|
|
1238
|
+
Indicates if the font should be rendered with an outline
|
|
1239
|
+
</p>
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
</div>
|
|
1243
|
+
</div>
|
|
1244
|
+
<div class="tags">
|
|
1245
|
+
|
|
1246
|
+
<h3>Returns:</h3>
|
|
1247
|
+
<ul class="return">
|
|
1248
|
+
|
|
1249
|
+
<li>
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
</li>
|
|
1257
|
+
|
|
1258
|
+
</ul>
|
|
1259
|
+
|
|
1260
|
+
</div><table class="source_code">
|
|
1261
|
+
<tr>
|
|
1262
|
+
<td>
|
|
1263
|
+
<pre class="lines">
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
62
|
|
1267
|
+
63
|
|
1268
|
+
64</pre>
|
|
1269
|
+
</td>
|
|
1270
|
+
<td>
|
|
1271
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 62</span>
|
|
1272
|
+
|
|
1273
|
+
<span class='def def kw'>def</span> <span class='outline identifier id'>outline</span>
|
|
1274
|
+
<span class='@outline ivar id'>@outline</span>
|
|
1275
|
+
<span class='end end kw'>end</span>
|
|
1276
|
+
</pre>
|
|
1277
|
+
</td>
|
|
1278
|
+
</tr>
|
|
1279
|
+
</table>
|
|
1280
|
+
</div>
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
<span id="shadow=-instance_method"></span>
|
|
1284
|
+
<span id="shadow-instance_method"></span>
|
|
1285
|
+
<div class="method_details ">
|
|
1286
|
+
<p class="signature " id="shadow-instance_method">
|
|
1287
|
+
|
|
1288
|
+
- (<tt>Boolean</tt>) <strong>shadow</strong>
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
</p><div class="docstring">
|
|
1293
|
+
<div class="discussion">
|
|
1294
|
+
<p>
|
|
1295
|
+
Indicates if the font should be rendered with a shadow
|
|
1296
|
+
</p>
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
</div>
|
|
1300
|
+
</div>
|
|
1301
|
+
<div class="tags">
|
|
1302
|
+
|
|
1303
|
+
<h3>Returns:</h3>
|
|
1304
|
+
<ul class="return">
|
|
1305
|
+
|
|
1306
|
+
<li>
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
</li>
|
|
1314
|
+
|
|
1315
|
+
</ul>
|
|
1316
|
+
|
|
1317
|
+
</div><table class="source_code">
|
|
1318
|
+
<tr>
|
|
1319
|
+
<td>
|
|
1320
|
+
<pre class="lines">
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
66
|
|
1324
|
+
67
|
|
1325
|
+
68</pre>
|
|
1326
|
+
</td>
|
|
1327
|
+
<td>
|
|
1328
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 66</span>
|
|
1329
|
+
|
|
1330
|
+
<span class='def def kw'>def</span> <span class='shadow identifier id'>shadow</span>
|
|
1331
|
+
<span class='@shadow ivar id'>@shadow</span>
|
|
1332
|
+
<span class='end end kw'>end</span>
|
|
1333
|
+
</pre>
|
|
1334
|
+
</td>
|
|
1335
|
+
</tr>
|
|
1336
|
+
</table>
|
|
1337
|
+
</div>
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
<span id="strike=-instance_method"></span>
|
|
1341
|
+
<span id="strike-instance_method"></span>
|
|
1342
|
+
<div class="method_details ">
|
|
1343
|
+
<p class="signature " id="strike-instance_method">
|
|
1344
|
+
|
|
1345
|
+
- (<tt>Boolean</tt>) <strong>strike</strong>
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
</p><div class="docstring">
|
|
1350
|
+
<div class="discussion">
|
|
1351
|
+
<p>
|
|
1352
|
+
Indicates if the font should be rendered with a strikthrough
|
|
1353
|
+
</p>
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
</div>
|
|
1357
|
+
</div>
|
|
1358
|
+
<div class="tags">
|
|
1359
|
+
|
|
1360
|
+
<h3>Returns:</h3>
|
|
1361
|
+
<ul class="return">
|
|
1362
|
+
|
|
1363
|
+
<li>
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
</li>
|
|
1371
|
+
|
|
1372
|
+
</ul>
|
|
1373
|
+
|
|
1374
|
+
</div><table class="source_code">
|
|
1375
|
+
<tr>
|
|
1376
|
+
<td>
|
|
1377
|
+
<pre class="lines">
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
58
|
|
1381
|
+
59
|
|
1382
|
+
60</pre>
|
|
1383
|
+
</td>
|
|
1384
|
+
<td>
|
|
1385
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 58</span>
|
|
1386
|
+
|
|
1387
|
+
<span class='def def kw'>def</span> <span class='strike identifier id'>strike</span>
|
|
1388
|
+
<span class='@strike ivar id'>@strike</span>
|
|
1389
|
+
<span class='end end kw'>end</span>
|
|
1390
|
+
</pre>
|
|
1391
|
+
</td>
|
|
1392
|
+
</tr>
|
|
1393
|
+
</table>
|
|
1394
|
+
</div>
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
<span id="sz=-instance_method"></span>
|
|
1398
|
+
<span id="sz-instance_method"></span>
|
|
1399
|
+
<div class="method_details ">
|
|
1400
|
+
<p class="signature " id="sz-instance_method">
|
|
1401
|
+
|
|
1402
|
+
- (<tt>Integer</tt>) <strong>sz</strong>
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
</p><div class="docstring">
|
|
1407
|
+
<div class="discussion">
|
|
1408
|
+
<p>
|
|
1409
|
+
The size of the font.
|
|
1410
|
+
</p>
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
</div>
|
|
1414
|
+
</div>
|
|
1415
|
+
<div class="tags">
|
|
1416
|
+
|
|
1417
|
+
<h3>Returns:</h3>
|
|
1418
|
+
<ul class="return">
|
|
1419
|
+
|
|
1420
|
+
<li>
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
</li>
|
|
1428
|
+
|
|
1429
|
+
</ul>
|
|
1430
|
+
|
|
1431
|
+
</div><table class="source_code">
|
|
1432
|
+
<tr>
|
|
1433
|
+
<td>
|
|
1434
|
+
<pre class="lines">
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
82
|
|
1438
|
+
83
|
|
1439
|
+
84</pre>
|
|
1440
|
+
</td>
|
|
1441
|
+
<td>
|
|
1442
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 82</span>
|
|
1443
|
+
|
|
1444
|
+
<span class='def def kw'>def</span> <span class='sz identifier id'>sz</span>
|
|
1445
|
+
<span class='@sz ivar id'>@sz</span>
|
|
1446
|
+
<span class='end end kw'>end</span>
|
|
1447
|
+
</pre>
|
|
1448
|
+
</td>
|
|
1449
|
+
</tr>
|
|
1450
|
+
</table>
|
|
1451
|
+
</div>
|
|
1452
|
+
|
|
1453
|
+
</div>
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
<div id="instance_method_details" class="method_details_list">
|
|
1457
|
+
<h2>Instance Method Details</h2>
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
<div class="method_details first">
|
|
1461
|
+
<p class="signature first" id="to_xml-instance_method">
|
|
1462
|
+
|
|
1463
|
+
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
</p><div class="docstring">
|
|
1468
|
+
<div class="discussion">
|
|
1469
|
+
<p>
|
|
1470
|
+
Serializes the fill
|
|
1471
|
+
</p>
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
</div>
|
|
1475
|
+
</div>
|
|
1476
|
+
<div class="tags">
|
|
1477
|
+
<h3>Parameters:</h3>
|
|
1478
|
+
<ul class="param">
|
|
1479
|
+
|
|
1480
|
+
<li>
|
|
1481
|
+
|
|
1482
|
+
<span class='name'>xml</span>
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
<span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
—
|
|
1490
|
+
<div class='inline'><p>
|
|
1491
|
+
The document builder instance this objects xml will be added to.
|
|
1492
|
+
</p>
|
|
1493
|
+
</div>
|
|
1494
|
+
|
|
1495
|
+
</li>
|
|
1496
|
+
|
|
1497
|
+
</ul>
|
|
1498
|
+
|
|
1499
|
+
<h3>Returns:</h3>
|
|
1500
|
+
<ul class="return">
|
|
1501
|
+
|
|
1502
|
+
<li>
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
</li>
|
|
1510
|
+
|
|
1511
|
+
</ul>
|
|
1512
|
+
|
|
1513
|
+
</div><table class="source_code">
|
|
1514
|
+
<tr>
|
|
1515
|
+
<td>
|
|
1516
|
+
<pre class="lines">
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
120
|
|
1520
|
+
121
|
|
1521
|
+
122
|
|
1522
|
+
123
|
|
1523
|
+
124
|
|
1524
|
+
125
|
|
1525
|
+
126</pre>
|
|
1526
|
+
</td>
|
|
1527
|
+
<td>
|
|
1528
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/font.rb', line 120</span>
|
|
1529
|
+
|
|
1530
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
|
1531
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='font identifier id'>font</span> <span class='lbrace token'>{</span>
|
|
1532
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='bitor op'>|</span>
|
|
1533
|
+
<span class='v identifier id'>v</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Color constant id'>Color</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='k identifier id'>k</span><span class='comma token'>,</span> <span class='lbrace token'>{</span><span class='symbol val'>:val</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='v identifier id'>v</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
|
1534
|
+
<span class='end end kw'>end</span>
|
|
1535
|
+
<span class='rbrace token'>}</span>
|
|
1536
|
+
<span class='end end kw'>end</span>
|
|
1537
|
+
</pre>
|
|
1538
|
+
</td>
|
|
1539
|
+
</tr>
|
|
1540
|
+
</table>
|
|
1541
|
+
</div>
|
|
1542
|
+
|
|
1543
|
+
</div>
|
|
1544
|
+
|
|
1545
|
+
</div>
|
|
1546
|
+
|
|
1547
|
+
<div id="footer">
|
|
1548
|
+
Generated on Tue Nov 22 00:27:55 2011 by
|
|
1549
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1550
|
+
0.7.3 (ruby-1.8.7).
|
|
1551
|
+
</div>
|
|
1552
|
+
|
|
1553
|
+
</body>
|
|
1554
|
+
</html>
|