File: classCairo_1_1ScaledFont.html

package info (click to toggle)
cairomm 1.8.4-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,952 kB
  • ctags: 1,655
  • sloc: sh: 10,132; cpp: 5,157; perl: 204; makefile: 159
file content (817 lines) | stat: -rw-r--r-- 52,051 bytes parent folder | download
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
        <title>cairomm: Cairo::ScaledFont Class Reference</title>
        <link href="cairomm.css" rel="stylesheet" type="text/css">
    </head>
<body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceCairo.html">Cairo</a>::<a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a>
  </div>
</div>
<div class="contents">
<h1>Cairo::ScaledFont Class Reference</h1><!-- doxytag: class="Cairo::ScaledFont" -->A <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> is a font scaled to a particular size and device resolution.  
<a href="#_details">More...</a>
<p>
Inherited by <a class="el" href="classCairo_1_1FtScaledFont.html">Cairo::FtScaledFont</a>, and <a class="el" href="classCairo_1_1Win32ScaledFont.html">Cairo::Win32ScaledFont</a>.
<p>

<p>
<a href="classCairo_1_1ScaledFont-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef cairo_scaled_font_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a></td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The underlying C cairo object type.  <a href="#2d6be7ee16b4cbdcff67e6fdf3682b2a"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#db6a80b560e695f10e39810bfede01b4">cobj</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides acces to the underlying C cairo object.  <a href="#db6a80b560e695f10e39810bfede01b4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#59b9ad6357e84be0e020ae163eeb7ffc">cobj</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides acces to the underlying C cairo object.  <a href="#59b9ad6357e84be0e020ae163eeb7ffc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#4407baae7eda0bf820e7c38596edcf7f">ScaledFont</a> (<a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>* cobj, bool has_reference=false)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a C++ wrapper object from the C instance.  <a href="#4407baae7eda0bf820e7c38596edcf7f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#09ca7c3ff04102bd54c3898f740eea3e">~ScaledFont</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#bd99255e4eb802e9350143ec81a197af">get_extents</a> (<a class="el" href="namespaceCairo.html#a7da46c699a67bfbdd5400af7e6b7b39">FontExtents</a>&amp; extents) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the metrics for a <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a>.  <a href="#bd99255e4eb802e9350143ec81a197af"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#a64969e519ce44fba35f2061594e6f81">extents</a> (<a class="el" href="namespaceCairo.html#a7da46c699a67bfbdd5400af7e6b7b39">FontExtents</a>&amp; extents) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#757a8effcae445a5c46bf4501424abae">get_text_extents</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a>&amp; utf8, <a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp; extents) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the extents for a string of text.  <a href="#757a8effcae445a5c46bf4501424abae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#396afc516d53234a04e81693a75b0203">text_extents</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a>&amp; utf8, <a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp; extents) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#abfe38c6ca3e1c575b85aa7094e8601d">get_glyph_extents</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs, <a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp; extents)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the extents for an array of glyphs.  <a href="#abfe38c6ca3e1c575b85aa7094e8601d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#859bbee5886b15e1d8ab599dabab9833">glyph_extents</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs, <a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp; extents)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#c20c70e78e70276842ab460bdc75513e">get_font_face</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="classCairo_1_1FontFace.html" title="A FontFace represents a particular font at a particular weight, slant, and other...">FontFace</a> with which this <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created.  <a href="#c20c70e78e70276842ab460bdc75513e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#77b387d0cd3f23a71997d3719e270fd6">get_font_options</a> (<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the <a class="el" href="classCairo_1_1FontOptions.html" title="How a font should be rendered.">FontOptions</a> with which the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created.  <a href="#77b387d0cd3f23a71997d3719e270fd6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#3f4c3924cc10b3cffb025b6f6fa2e13b">get_font_matrix</a> (<a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; font_matrix) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the font matrix with which the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created.  <a href="#3f4c3924cc10b3cffb025b6f6fa2e13b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#ba264e1844f7fe7704115a984a39f437">get_font_matrix</a> (<a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; font_matrix) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#2ecb41822d51284c2f52a83b05cede8e">get_ctm</a> (<a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; ctm) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the CTM with which the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created.  <a href="#2ecb41822d51284c2f52a83b05cede8e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#86b6d3179b10491e2c755b886ef49b9e">get_ctm</a> (<a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; ctm) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceCairo.html#23e1a9a5be49d16cf3871e841e8ab522">FontType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#eabb462f690ec9e22fc0096af38c46bc">get_type</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the type of scaled Font.  <a href="#eabb462f690ec9e22fc0096af38c46bc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#bf1bb0d07de65cc8d8f7e64d83f0be26">text_to_glyphs</a> (double x, double y, const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a>&amp; utf8, <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs, <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#3c23510889078c8a75d66add004ab288">TextCluster</a> &gt;&amp; clusters, <a class="el" href="namespaceCairo.html#61b770cf36c555a4098b5428e030542a">TextClusterFlags</a>&amp; cluster_flags)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#c31d37dc06c1a95830cb9e30425f609c">get_scale_matrix</a> (<a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; scale_matrix) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the scale matrix of this scaled font into matrix.  <a href="#c31d37dc06c1a95830cb9e30425f609c"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#dddf87ea689711ddbbee3028ed30e02b">create</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp; font_face, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; font_matrix, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options=<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>())</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> object from a font face and matrices that describe the size of the font and the environment in which it will be used.  <a href="#dddf87ea689711ddbbee3028ed30e02b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#2d422798461d1ad67d0191b71df1c25e">create</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp; font_face, const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; font_matrix, const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options=<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>())</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#ca31f49f3121d2a6673205bebe7720c0">ScaledFont</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp; font_face, const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; font_matrix, const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options=<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>())</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ScaledFont.html#a6f45de0a89807dd6678029807227757">m_cobject</a></td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The underlying C cairo object that is wrapped by this <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a>.  <a href="#a6f45de0a89807dd6678029807227757"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> is a font scaled to a particular size and device resolution. 
<p>
It is most useful for low-level font usage where a library or application wants to cache a reference to a scaled font to speed up the computation of metrics. <hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="2d6be7ee16b4cbdcff67e6fdf3682b2a"></a><!-- doxytag: member="Cairo::ScaledFont::cobject" ref="2d6be7ee16b4cbdcff67e6fdf3682b2a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef cairo_scaled_font_t <a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">Cairo::ScaledFont::cobject</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The underlying C cairo object type. 
<p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="4407baae7eda0bf820e7c38596edcf7f"></a><!-- doxytag: member="Cairo::ScaledFont::ScaledFont" ref="4407baae7eda0bf820e7c38596edcf7f" args="(cobject *cobj, bool has_reference=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::ScaledFont::ScaledFont           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>*&#160;</td>
          <td class="paramname"> <em>cobj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>has_reference</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a C++ wrapper object from the C instance. 
<p>
This C++ object should then be given to a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr&lt;&gt; is a reference-counting shared smartpointer.">RefPtr</a>. 
</div>
</div><p>
<a class="anchor" name="09ca7c3ff04102bd54c3898f740eea3e"></a><!-- doxytag: member="Cairo::ScaledFont::~ScaledFont" ref="09ca7c3ff04102bd54c3898f740eea3e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::ScaledFont::~ScaledFont           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="ca31f49f3121d2a6673205bebe7720c0"></a><!-- doxytag: member="Cairo::ScaledFont::ScaledFont" ref="ca31f49f3121d2a6673205bebe7720c0" args="(const RefPtr&lt; FontFace &gt; &amp;font_face, const cairo_matrix_t &amp;font_matrix, const cairo_matrix_t &amp;ctm, const FontOptions &amp;options=FontOptions())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::ScaledFont::ScaledFont           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>font_face</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"> <em>font_matrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"> <em>ctm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp;&#160;</td>
          <td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="59b9ad6357e84be0e020ae163eeb7ffc"></a><!-- doxytag: member="Cairo::ScaledFont::cobj" ref="59b9ad6357e84be0e020ae163eeb7ffc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>* Cairo::ScaledFont::cobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides acces to the underlying C cairo object. 
<p>

</div>
</div><p>
<a class="anchor" name="db6a80b560e695f10e39810bfede01b4"></a><!-- doxytag: member="Cairo::ScaledFont::cobj" ref="db6a80b560e695f10e39810bfede01b4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>* Cairo::ScaledFont::cobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides acces to the underlying C cairo object. 
<p>

</div>
</div><p>
<a class="anchor" name="2d422798461d1ad67d0191b71df1c25e"></a><!-- doxytag: member="Cairo::ScaledFont::create" ref="2d422798461d1ad67d0191b71df1c25e" args="(const RefPtr&lt; FontFace &gt; &amp;font_face, const cairo_matrix_t &amp;font_matrix, const cairo_matrix_t &amp;ctm, const FontOptions &amp;options=FontOptions())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a>&gt; Cairo::ScaledFont::create           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>font_face</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"> <em>font_matrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"> <em>ctm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp;&#160;</td>
          <td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="dddf87ea689711ddbbee3028ed30e02b"></a><!-- doxytag: member="Cairo::ScaledFont::create" ref="dddf87ea689711ddbbee3028ed30e02b" args="(const RefPtr&lt; FontFace &gt; &amp;font_face, const Matrix &amp;font_matrix, const Matrix &amp;ctm, const FontOptions &amp;options=FontOptions())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a>&gt; Cairo::ScaledFont::create           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>font_face</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"> <em>font_matrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"> <em>ctm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp;&#160;</td>
          <td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> object from a font face and matrices that describe the size of the font and the environment in which it will be used. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>font_face</em>&#160;</td><td>A font face. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>font_matrix</em>&#160;</td><td>font space to user space transformation matrix for the font. In the simplest case of a N point font, this matrix is just a scale by N, but it can also be used to shear the font or stretch it unequally along the two axes. See <a class="el" href="classCairo_1_1Context.html#7981bd1109ec5538fb505b36ec377757">Context::set_font_matrix()</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ctm</em>&#160;</td><td>user to device transformation matrix with which the font will be used. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&#160;</td><td>options to use when getting metrics for the font and rendering with it. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="a64969e519ce44fba35f2061594e6f81"></a><!-- doxytag: member="Cairo::ScaledFont::extents" ref="a64969e519ce44fba35f2061594e6f81" args="(FontExtents &amp;extents) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::extents           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a7da46c699a67bfbdd5400af7e6b7b39">FontExtents</a>&amp;&#160;</td>
          <td class="paramname"> <em>extents</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Use <a class="el" href="classCairo_1_1ScaledFont.html#bd99255e4eb802e9350143ec81a197af" title="Gets the metrics for a ScaledFont.">get_extents()</a> instead </dd></dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="86b6d3179b10491e2c755b886ef49b9e"></a><!-- doxytag: member="Cairo::ScaledFont::get_ctm" ref="86b6d3179b10491e2c755b886ef49b9e" args="(cairo_matrix_t &amp;ctm) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_ctm           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"> <em>ctm</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="2ecb41822d51284c2f52a83b05cede8e"></a><!-- doxytag: member="Cairo::ScaledFont::get_ctm" ref="2ecb41822d51284c2f52a83b05cede8e" args="(Matrix &amp;ctm) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_ctm           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"> <em>ctm</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the CTM with which the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="bd99255e4eb802e9350143ec81a197af"></a><!-- doxytag: member="Cairo::ScaledFont::get_extents" ref="bd99255e4eb802e9350143ec81a197af" args="(FontExtents &amp;extents) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_extents           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a7da46c699a67bfbdd5400af7e6b7b39">FontExtents</a>&amp;&#160;</td>
          <td class="paramname"> <em>extents</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the metrics for a <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a>. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c20c70e78e70276842ab460bdc75513e"></a><!-- doxytag: member="Cairo::ScaledFont::get_font_face" ref="c20c70e78e70276842ab460bdc75513e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1FontFace.html">FontFace</a>&gt; Cairo::ScaledFont::get_font_face           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The <a class="el" href="classCairo_1_1FontFace.html" title="A FontFace represents a particular font at a particular weight, slant, and other...">FontFace</a> with which this <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ba264e1844f7fe7704115a984a39f437"></a><!-- doxytag: member="Cairo::ScaledFont::get_font_matrix" ref="ba264e1844f7fe7704115a984a39f437" args="(cairo_matrix_t &amp;font_matrix) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_font_matrix           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"> <em>font_matrix</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="3f4c3924cc10b3cffb025b6f6fa2e13b"></a><!-- doxytag: member="Cairo::ScaledFont::get_font_matrix" ref="3f4c3924cc10b3cffb025b6f6fa2e13b" args="(Matrix &amp;font_matrix) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_font_matrix           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"> <em>font_matrix</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the font matrix with which the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="77b387d0cd3f23a71997d3719e270fd6"></a><!-- doxytag: member="Cairo::ScaledFont::get_font_options" ref="77b387d0cd3f23a71997d3719e270fd6" args="(FontOptions &amp;options) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_font_options           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp;&#160;</td>
          <td class="paramname"> <em>options</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the <a class="el" href="classCairo_1_1FontOptions.html" title="How a font should be rendered.">FontOptions</a> with which the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> was created. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="abfe38c6ca3e1c575b85aa7094e8601d"></a><!-- doxytag: member="Cairo::ScaledFont::get_glyph_extents" ref="abfe38c6ca3e1c575b85aa7094e8601d" args="(const std::vector&lt; Glyph &gt; &amp;glyphs, TextExtents &amp;extents)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_glyph_extents           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>glyphs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp;&#160;</td>
          <td class="paramname"> <em>extents</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the extents for an array of glyphs. 
<p>
The extents describe a user-space rectangle that encloses the "inked" portion of the glyphs, (as they would be drawn by <a class="el" href="classCairo_1_1Context.html#f51f2c2ff72e8af66abeea3d15d25553">Context::show_glyphs()</a> if the cairo graphics state were set to the same font_face, font_matrix, ctm, and font_options as the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> object). Additionally, the x_advance and y_advance values indicate the amount by which the current point would be advanced by <a class="el" href="classCairo_1_1Context.html#f51f2c2ff72e8af66abeea3d15d25553">Context::show_glyphs()</a>.<p>
Note that whitespace glyphs do not contribute to the size of the rectangle (extents.width and extents.height).<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>glyphs</em>&#160;</td><td>A vector of glyphs to calculate the extents of. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>extents</em>&#160;</td><td>Returns the extents for the array of glyphs.</td></tr>
  </table>
</dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c31d37dc06c1a95830cb9e30425f609c"></a><!-- doxytag: member="Cairo::ScaledFont::get_scale_matrix" ref="c31d37dc06c1a95830cb9e30425f609c" args="(Matrix &amp;scale_matrix) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_scale_matrix           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"> <em>scale_matrix</em>          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Stores the scale matrix of this scaled font into matrix. 
<p>
The scale matrix is product of the font matrix and the ctm associated with the scaled font, and hence is the matrix mapping from font space to device space.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>scale_matrix</em>&#160;</td><td>return value for the matrix.</td></tr>
  </table>
</dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="757a8effcae445a5c46bf4501424abae"></a><!-- doxytag: member="Cairo::ScaledFont::get_text_extents" ref="757a8effcae445a5c46bf4501424abae" args="(const std::string &amp;utf8, TextExtents &amp;extents) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::get_text_extents           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>utf8</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp;&#160;</td>
          <td class="paramname"> <em>extents</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the extents for a string of text. 
<p>
The extents describe a user-space rectangle that encloses the "inked" portion of the text drawn at the origin (0,0) (as it would be drawn by <a class="el" href="classCairo_1_1Context.html#584596d6f12dbea30519b908cacce038">Context::show_text()</a> if the cairo graphics state were set to the same font_face, font_matrix, ctm, and font_options as the <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> object). Additionally, the x_advance and y_advance values indicate the amount by which the current point would be advanced by <a class="el" href="classCairo_1_1Context.html#584596d6f12dbea30519b908cacce038">Context::show_text()</a>.<p>
Note that whitespace characters do not directly contribute to the size of the rectangle (extents.width and extents.height). They do contribute indirectly by changing the position of non-whitespace characters. In particular, trailing whitespace characters are likely to not affect the size of the rectangle, though they will affect the x_advance and y_advance values.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>utf8</em>&#160;</td><td>a string of text, encoded in UTF-8. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>extents</em>&#160;</td><td>Returns the extents of the given string.</td></tr>
  </table>
</dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="eabb462f690ec9e22fc0096af38c46bc"></a><!-- doxytag: member="Cairo::ScaledFont::get_type" ref="eabb462f690ec9e22fc0096af38c46bc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#23e1a9a5be49d16cf3871e841e8ab522">FontType</a> Cairo::ScaledFont::get_type           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the type of scaled Font. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="859bbee5886b15e1d8ab599dabab9833"></a><!-- doxytag: member="Cairo::ScaledFont::glyph_extents" ref="859bbee5886b15e1d8ab599dabab9833" args="(const std::vector&lt; Glyph &gt; &amp;glyphs, TextExtents &amp;extents)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::glyph_extents           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>glyphs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp;&#160;</td>
          <td class="paramname"> <em>extents</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>Use <a class="el" href="classCairo_1_1ScaledFont.html#abfe38c6ca3e1c575b85aa7094e8601d" title="Gets the extents for an array of glyphs.">get_glyph_extents()</a> instead </dd></dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="396afc516d53234a04e81693a75b0203"></a><!-- doxytag: member="Cairo::ScaledFont::text_extents" ref="396afc516d53234a04e81693a75b0203" args="(const std::string &amp;utf8, TextExtents &amp;extents) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::text_extents           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>utf8</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#f6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp;&#160;</td>
          <td class="paramname"> <em>extents</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Use <a class="el" href="classCairo_1_1ScaledFont.html#757a8effcae445a5c46bf4501424abae" title="Gets the extents for a string of text.">get_text_extents()</a> instead </dd></dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="bf1bb0d07de65cc8d8f7e64d83f0be26"></a><!-- doxytag: member="Cairo::ScaledFont::text_to_glyphs" ref="bf1bb0d07de65cc8d8f7e64d83f0be26" args="(double x, double y, const std::string &amp;utf8, std::vector&lt; Glyph &gt; &amp;glyphs, std::vector&lt; TextCluster &gt; &amp;clusters, TextClusterFlags &amp;cluster_flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::ScaledFont::text_to_glyphs           </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>utf8</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>glyphs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#3c23510889078c8a75d66add004ab288">TextCluster</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>clusters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#61b770cf36c555a4098b5428e030542a">TextClusterFlags</a>&amp;&#160;</td>
          <td class="paramname"> <em>cluster_flags</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&#160;</td><td>X position to place first glyph. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&#160;</td><td>Y position to place first glyph. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>utf8</em>&#160;</td><td>a string of text encoded in UTF-8. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>glyphs</em>&#160;</td><td>pointer to array of glyphs to fill. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>clusters</em>&#160;</td><td>pointer to array of cluster mapping information to fill.  cluster mapping flags</td></tr>
  </table>
</dl>
Converts UTF-8 text to an array of glyphs, with cluster mapping, that can be used to render later.<p>
For details of how (<em>clusters</em> and <em>cluster_flags</em> map input UTF-8 text to the output glyphs see <a class="el" href="classCairo_1_1Context.html#45723fd605cc2343ab46cf603d330002">Context::show_text_glyphs()</a>.<p>
The output values can be readily passed to <a class="el" href="classCairo_1_1Context.html#45723fd605cc2343ab46cf603d330002">Context::show_text_glyphs()</a> <a class="el" href="classCairo_1_1Context.html#f51f2c2ff72e8af66abeea3d15d25553">Context::show_glyphs()</a>, or related functions, assuming that the exact same scaled font is used for the operation.<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a6f45de0a89807dd6678029807227757"></a><!-- doxytag: member="Cairo::ScaledFont::m_cobject" ref="a6f45de0a89807dd6678029807227757" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1ScaledFont.html#2d6be7ee16b4cbdcff67e6fdf3682b2a">cobject</a>* <a class="el" href="classCairo_1_1ScaledFont.html#a6f45de0a89807dd6678029807227757">Cairo::ScaledFont::m_cobject</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The underlying C cairo object that is wrapped by this <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a>. 
<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>cairomm/scaledfont.h</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Aug 13 11:40:14 2009 for cairomm by&#160;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>