File: classPango_1_1Context.html

package info (click to toggle)
gtkmm2.4 1%3A2.12.7-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 97,528 kB
  • ctags: 33,749
  • sloc: xml: 121,487; cpp: 17,100; sh: 8,982; makefile: 1,150; perl: 161
file content (1051 lines) | stat: -rw-r--r-- 68,239 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
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gtkmm 2.4: Pango::Context Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../index.html">Main Page</a> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>
<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespacePango.html">Pango</a>::<a class="el" href="classPango_1_1Context.html">Context</a></div>
<h1>Pango::Context Class Reference</h1><!-- doxytag: class="Pango::Context" --><!-- doxytag: inherits="Glib::Object" -->Inheritance diagram for Pango::Context:<p><center><img src="classPango_1_1Context__inherit__graph.png" border="0" usemap="#Pango_1_1Context__inherit__map" alt="Inheritance graph"></center>
<map name="Pango_1_1Context__inherit__map">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="21,161,115,188" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="5,84,131,111" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="12,7,124,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classPango_1_1Context-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classPango_1_1Context.html">Pango::Context</a> stores global information used to control the itemization process. 
<p>
You can retrieve a <a class="el" href="classPango_1_1Context.html">Pango::Context</a> object with <a class="el" href="classGtk_1_1Widget.html#037efd7a9033e4b66a17cbf3f6948256">Gtk::Widget::create_pango_context()</a> or <a class="el" href="classGtk_1_1Widget.html#0be06b45418ec17f992eb3acf89cd0b8">Gtk::Widget::get_pango_context()</a>. If you don't use gtkmm call some c function of the pango backend you intend to use and create a wrapper for the returned context, e.g. <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap</a>(pango_x_get_context()).<p>
Creating a <a class="el" href="classPango_1_1Context.html">Pango::Context</a> object is the starting point of every rendering process. You can either use it to create a high level <a class="el" href="classPango_1_1Layout.html">Pango::Layout</a> object which does all the hard work for you by passing it into <a class="el" href="classPango_1_1Layout.html#563434509d35cab69c4e85b7549a7bf9">Pango::Layout::create()</a> or to generate glyph strings from character strings with the help of <a class="el" href="classPango_1_1Context.html#dd1982bdccb054f2dc39e17b156d59bc">itemize()</a> and <a class="el" href="classPango_1_1Item.html#5de294536fc8bdf3d3be6de107c10a1d">Pango::Item::shape()</a> subsequently.<p>
Which fonts are used for rendering can be influenced by setting the default font description, language and base direction of the context.<p>
If you want to calculate the space some text will need to be displayed you might find the functions of <a class="el" href="classPango_1_1FontMetrics.html">Pango::FontMetrics</a> useful. Use <a class="el" href="classPango_1_1Context.html#a506bd1a380659fbc922347813cb7a2c">get_metrics()</a> to obtain the <a class="el" href="classPango_1_1FontMetrics.html">Pango::FontMetrics</a> object for a specific <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a>. For more detailed calculations in a rendering-system-independant manner and to determine whether specific characters can be represented by the font that would be used for a specific <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> load a <a class="el" href="classPango_1_1Fontset.html">Pango::Fontset</a> with <a class="el" href="classPango_1_1Context.html#bfca9cb1a42475143183534d09bb6be8">load_fontset()</a> (<a class="el" href="classPango_1_1Context.html#f439c9a43237d2fc4a99914306560793">load_font()</a> returns the <a class="el" href="classPango_1_1Font.html">Pango::Font</a> that is the closest match for a <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a>; however that's not necessarily the font that will be used for rendering). 
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></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="group__pangommEnums.html#g8fa031ece55a28777a84d0115829f601">Direction</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#7187329b8665fbb5ac086c5d1fb1ca64">get_base_dir</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the base direction for the context.  <a href="#7187329b8665fbb5ac086c5d1fb1ca64"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__pangommEnums.html#g64db2216c86f2ce624b9ef0489bf1df4">Gravity</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#42be767f32c15536566b2b0627b231d1">get_base_gravity</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the base gravity for the context.  <a href="#42be767f32c15536566b2b0627b231d1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#a1bdad3ae1d86d997d8fcaebdeba9226">get_font_description</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieve the default font description for the context.  <a href="#a1bdad3ae1d86d997d8fcaebdeba9226"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classPango_1_1FontMap.html">FontMap</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#ed8b689506ac9ffe1538ddc6e0ac6130">get_font_map</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the Pango::Fontmap used to look up fonts for this context.  <a href="#ed8b689506ac9ffe1538ddc6e0ac6130"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1FontMap.html">FontMap</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#56eb6d8dde7e58e820aa717214e39345">get_font_map</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the Pango::Fontmap used to look up fonts for this context.  <a href="#56eb6d8dde7e58e820aa717214e39345"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">Cairo::FontOptions&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#09a487a86b9458c7a027d0d2a0d3e3ed">get_font_options</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves any font rendering options previously set with pango_cairo_font_map_set_font_options().  <a href="#09a487a86b9458c7a027d0d2a0d3e3ed"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__pangommEnums.html#g64db2216c86f2ce624b9ef0489bf1df4">Gravity</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#7fb91175786b41e1edd560d1d39904f2">get_gravity</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the gravity for the context.  <a href="#7fb91175786b41e1edd560d1d39904f2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__pangommEnums.html#g405d1530ab8ac4993a0921a27fe035dd">GravityHint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#dbc0f80f74702be4a220ef4a8007dfc1">get_gravity_hint</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the gravity hint for the context.  <a href="#dbc0f80f74702be4a220ef4a8007dfc1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1Language.html">Language</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#c53dcbad3b801397d3168850bc6e3aee">get_language</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the global language tag for the context.  <a href="#c53dcbad3b801397d3168850bc6e3aee"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespacePango.html#5565a2f93d4fb8f943cc2d1fb2d476e1">Matrix</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#c0b2104171d02ca53bb02593fb5adaae">get_matrix</a> () const</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1FontMetrics.html">FontMetrics</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#fb26cf3e1bdaae0d920e4728e654fa42">get_metrics</a> (const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp; desc, const <a class="el" href="classPango_1_1Language.html">Language</a>&amp; language) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get overall metric information for a font particular font description.  <a href="#fb26cf3e1bdaae0d920e4728e654fa42"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1FontMetrics.html">FontMetrics</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#a506bd1a380659fbc922347813cb7a2c">get_metrics</a> (const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp; desc) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get overall metric information for a particular font description.  <a href="#a506bd1a380659fbc922347813cb7a2c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#ed78a8c0b95b43dc69d52325b13ee20e">get_resolution</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the resolution for the context.  <a href="#ed78a8c0b95b43dc69d52325b13ee20e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const PangoContext*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#d66d1b28683c6b1fb2a3cb2f9517ec28">gobj</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#d66d1b28683c6b1fb2a3cb2f9517ec28"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PangoContext*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#0be484ab187e1e8fc7be2940ec4cb615">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#0be484ab187e1e8fc7be2940ec4cb615"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PangoContext*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#a639f1fff0f0197e2f2a74ebe6cfe926">gobj_copy</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.  <a href="#a639f1fff0f0197e2f2a74ebe6cfe926"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">ListHandle_Item</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#caabc75858fee895b9685a63272e3178">itemize</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text, int start_index, int length, const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>&amp; attrs, <a class="el" href="classPango_1_1AttrIter.html">AttrIter</a>&amp; cached_iter) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Breaks a piece of text into segments with consistent directional level and shaping engine.  <a href="#caabc75858fee895b9685a63272e3178"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">ListHandle_Item</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#dd1982bdccb054f2dc39e17b156d59bc">itemize</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text, const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>&amp; attrs) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Breaks a piece of text into segments with consistent directional level and shaping engine.  <a href="#dd1982bdccb054f2dc39e17b156d59bc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt; <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<br>
 <a class="el" href="classPango_1_1FontFamily.html">FontFamily</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#0f67507a8df1f68daf9456cdac732ac6">list_families</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">List all available font families for a context.  <a href="#0f67507a8df1f68daf9456cdac732ac6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Font.html">Font</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#f439c9a43237d2fc4a99914306560793">load_font</a> (const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp; desc) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads the font in one of the fontmaps in the context that is the closest match for <em>desc</em> .  <a href="#f439c9a43237d2fc4a99914306560793"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Fontset.html">Fontset</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#bfca9cb1a42475143183534d09bb6be8">load_fontset</a> (const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp; desc, const <a class="el" href="classPango_1_1Language.html">Language</a>&amp; language) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load a set of fonts in the context that can be used to render a font matching <em>desc</em> .  <a href="#bfca9cb1a42475143183534d09bb6be8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#2f2e234bb53c20eff53ed8f1e51e460f">set_base_dir</a> (<a class="el" href="group__pangommEnums.html#g8fa031ece55a28777a84d0115829f601">Direction</a> direction)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the base direction for the context.  <a href="#2f2e234bb53c20eff53ed8f1e51e460f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#fc55b428fe56632e44c7d528eb27c037">set_base_gravity</a> (<a class="el" href="group__pangommEnums.html#g64db2216c86f2ce624b9ef0489bf1df4">Gravity</a> gravity)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the base gravity for the context.  <a href="#fc55b428fe56632e44c7d528eb27c037"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#5f80cbc5c97fb4ef0152f559096bea6c">set_cairo_font_options</a> (const Cairo::FontOptions&amp; options)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the font options used when rendering text with this context.  <a href="#5f80cbc5c97fb4ef0152f559096bea6c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#90ba5091c7a3177c4b3e49840b64192a">set_font_description</a> (const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp; desc)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the default font description for the context.  <a href="#90ba5091c7a3177c4b3e49840b64192a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#86b50228ad45a1bb81136519aea95915">set_gravity_hint</a> (<a class="el" href="group__pangommEnums.html#g405d1530ab8ac4993a0921a27fe035dd">GravityHint</a> hint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the gravity hint for the context.  <a href="#86b50228ad45a1bb81136519aea95915"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#20a1d003027b28404ae547118a1d6d80">set_language</a> (const <a class="el" href="classPango_1_1Language.html">Language</a>&amp; language)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the global language tag for the context.  <a href="#20a1d003027b28404ae547118a1d6d80"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#e3e16a984e6c1bb2d8066201b4594da5">set_matrix</a> (const <a class="el" href="namespacePango.html#5565a2f93d4fb8f943cc2d1fb2d476e1">Matrix</a>&amp; matrix)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the transformation matrix that will be applied when rendering with this context.  <a href="#e3e16a984e6c1bb2d8066201b4594da5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#e912e733915cc5b48124a4aa913c6a7f">set_resolution</a> (double dpi)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the resolution for the context.  <a href="#e912e733915cc5b48124a4aa913c6a7f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#cc6707edbfcbbe79f6e3c540ddfa6eb1">update_from_cairo_context</a> (const Cairo::RefPtr&lt;Cairo::Context&gt;&amp; context)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Updates a <a class="el" href="namespacePango.html">Pango</a> <a class="el" href="classPango_1_1Context.html">Context</a> previously created for use with Cairo to match the current transformation and target surface of a Cairo <a class="el" href="classPango_1_1Context.html">Context</a>.  <a href="#cc6707edbfcbbe79f6e3c540ddfa6eb1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#c2a31a067989f07530ecaf0907b62d12">~Context</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#4cce2632218899d3cc6e04c4c2d860af">Context</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Pango::Context</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1Context.html#c61523c7c5af185d2c5ce7ce5706c3b4">wrap</a> (PangoContext* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#c61523c7c5af185d2c5ce7ce5706c3b4"></a><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="c2a31a067989f07530ecaf0907b62d12"></a><!-- doxytag: member="Pango::Context::~Context" ref="c2a31a067989f07530ecaf0907b62d12" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Pango::Context::~Context           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="4cce2632218899d3cc6e04c4c2d860af"></a><!-- doxytag: member="Pango::Context::Context" ref="4cce2632218899d3cc6e04c4c2d860af" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Pango::Context::Context           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7187329b8665fbb5ac086c5d1fb1ca64"></a><!-- doxytag: member="Pango::Context::get_base_dir" ref="7187329b8665fbb5ac086c5d1fb1ca64" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__pangommEnums.html#g8fa031ece55a28777a84d0115829f601">Direction</a> Pango::Context::get_base_dir           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the base direction for the context. 
<p>
See pango_context_set_base_dir(). <dl class="return" compact><dt><b>Returns:</b></dt><dd>The base direction for the context. </dd></dl>

</div>
</div><p>
<a class="anchor" name="42be767f32c15536566b2b0627b231d1"></a><!-- doxytag: member="Pango::Context::get_base_gravity" ref="42be767f32c15536566b2b0627b231d1" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__pangommEnums.html#g64db2216c86f2ce624b9ef0489bf1df4">Gravity</a> Pango::Context::get_base_gravity           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the base gravity for the context. 
<p>
See pango_context_set_base_gravity(). <dl class="return" compact><dt><b>Returns:</b></dt><dd>The base gravity for the context.</dd></dl>
Since: 1.16. 
</div>
</div><p>
<a class="anchor" name="a1bdad3ae1d86d997d8fcaebdeba9226"></a><!-- doxytag: member="Pango::Context::get_font_description" ref="a1bdad3ae1d86d997d8fcaebdeba9226" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPango_1_1FontDescription.html">FontDescription</a> Pango::Context::get_font_description           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieve the default font description for the context. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the context's default font description. This value must not be modified or freed. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ed8b689506ac9ffe1538ddc6e0ac6130"></a><!-- doxytag: member="Pango::Context::get_font_map" ref="ed8b689506ac9ffe1538ddc6e0ac6130" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classPango_1_1FontMap.html">FontMap</a>&gt; Pango::Context::get_font_map           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the Pango::Fontmap used to look up fonts for this context. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The font map for the <a class="el" href="classPango_1_1Context.html">Pango::Context</a>. This value is owned by <a class="el" href="namespacePango.html">Pango</a> and should not be unreferenced.</dd></dl>
Since: 1.6. 
</div>
</div><p>
<a class="anchor" name="56eb6d8dde7e58e820aa717214e39345"></a><!-- doxytag: member="Pango::Context::get_font_map" ref="56eb6d8dde7e58e820aa717214e39345" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1FontMap.html">FontMap</a>&gt; Pango::Context::get_font_map           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the Pango::Fontmap used to look up fonts for this context. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The font map for the <a class="el" href="classPango_1_1Context.html">Pango::Context</a>. This value is owned by <a class="el" href="namespacePango.html">Pango</a> and should not be unreferenced.</dd></dl>
Since: 1.6. 
</div>
</div><p>
<a class="anchor" name="09a487a86b9458c7a027d0d2a0d3e3ed"></a><!-- doxytag: member="Pango::Context::get_font_options" ref="09a487a86b9458c7a027d0d2a0d3e3ed" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::FontOptions Pango::Context::get_font_options           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves any font rendering options previously set with pango_cairo_font_map_set_font_options(). 
<p>
This functions not report options that are derived from the target surface by pango_cairo_update_context() <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1Context.html">Pango::Context</a>, from <a class="el" href="classPango_1_1CairoFontMap.html#f0dc38a29a12d73efaf30edcec4aa99d">Pango::CairoFontMap::create_context()</a>. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The font options previously set on the context, or <code>0</code> if no options have been set. This value is owned by the context and must not be modified or freed. </dd></dl>

</div>
</div><p>
<a class="anchor" name="7fb91175786b41e1edd560d1d39904f2"></a><!-- doxytag: member="Pango::Context::get_gravity" ref="7fb91175786b41e1edd560d1d39904f2" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__pangommEnums.html#g64db2216c86f2ce624b9ef0489bf1df4">Gravity</a> Pango::Context::get_gravity           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the gravity for the context. 
<p>
This is similar to pango_context_get_base_gravity(), except for when the base gravity is <a class="el" href="group__pangommEnums.html#gg64db2216c86f2ce624b9ef0489bf1df4f179cd9862b61b8030e2d5aee4e07b40">Pango::GRAVITY_AUTO</a> for which pango_gravity_get_for_matrix() is used to return the gravity from the current context matrix. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The resolved gravity for the context.</dd></dl>
Since: 1.16. 
</div>
</div><p>
<a class="anchor" name="dbc0f80f74702be4a220ef4a8007dfc1"></a><!-- doxytag: member="Pango::Context::get_gravity_hint" ref="dbc0f80f74702be4a220ef4a8007dfc1" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__pangommEnums.html#g405d1530ab8ac4993a0921a27fe035dd">GravityHint</a> Pango::Context::get_gravity_hint           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the gravity hint for the context. 
<p>
See pango_context_set_gravity_hint() for details. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The gravity hint for the context.</dd></dl>
Since: 1.16. 
</div>
</div><p>
<a class="anchor" name="c53dcbad3b801397d3168850bc6e3aee"></a><!-- doxytag: member="Pango::Context::get_language" ref="c53dcbad3b801397d3168850bc6e3aee" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPango_1_1Language.html">Language</a> Pango::Context::get_language           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the global language tag for the context. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The global language tag. </dd></dl>

</div>
</div><p>
<a class="anchor" name="c0b2104171d02ca53bb02593fb5adaae"></a><!-- doxytag: member="Pango::Context::get_matrix" ref="c0b2104171d02ca53bb02593fb5adaae" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacePango.html#5565a2f93d4fb8f943cc2d1fb2d476e1">Matrix</a> Pango::Context::get_matrix           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="fb26cf3e1bdaae0d920e4728e654fa42"></a><!-- doxytag: member="Pango::Context::get_metrics" ref="fb26cf3e1bdaae0d920e4728e654fa42" args="(const FontDescription &amp;desc, const Language &amp;language) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPango_1_1FontMetrics.html">FontMetrics</a> Pango::Context::get_metrics           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPango_1_1Language.html">Language</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>language</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get overall metric information for a font particular font description. 
<p>
Since the metrics may be substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language.<p>
The <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> is interpreted in the same way as by pango_itemize(), and the family name may be a comma separated list of figures. If characters from multiple of these families would be used to render the string, then the returned fonts would be a composite of the metrics for the fonts loaded for the individual families. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>desc</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> structure. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td><a class="el" href="classPango_1_1Language.html">Language</a> tag used to determine which script to get the metrics for. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A Pango::Metrics object. </dd></dl>

</div>
</div><p>
<a class="anchor" name="a506bd1a380659fbc922347813cb7a2c"></a><!-- doxytag: member="Pango::Context::get_metrics" ref="a506bd1a380659fbc922347813cb7a2c" args="(const FontDescription &amp;desc) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPango_1_1FontMetrics.html">FontMetrics</a> Pango::Context::get_metrics           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get overall metric information for a particular font description. 
<p>
The metrics may be substantially different for different scripts. However this function overload returns the metrics of the entire font. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>desc</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> object. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classPango_1_1FontMetrics.html">Pango::FontMetrics</a> object. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ed78a8c0b95b43dc69d52325b13ee20e"></a><!-- doxytag: member="Pango::Context::get_resolution" ref="ed78a8c0b95b43dc69d52325b13ee20e" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Pango::Context::get_resolution           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the resolution for the context. 
<p>
See pango_cairo_context_set_resolution() <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1Context.html">Pango::Context</a>, from <a class="el" href="classPango_1_1CairoFontMap.html#f0dc38a29a12d73efaf30edcec4aa99d">Pango::CairoFontMap::create_context()</a>. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The resolution in "dots per inch". A negative value will be returned if no resolution has previously been set.</dd></dl>
Since: 1.10. 
</div>
</div><p>
<a class="anchor" name="d66d1b28683c6b1fb2a3cb2f9517ec28"></a><!-- doxytag: member="Pango::Context::gobj" ref="d66d1b28683c6b1fb2a3cb2f9517ec28" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const PangoContext* Pango::Context::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#2b7010748d60e770e9e0b3d65c100cf2">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="0be484ab187e1e8fc7be2940ec4cb615"></a><!-- doxytag: member="Pango::Context::gobj" ref="0be484ab187e1e8fc7be2940ec4cb615" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PangoContext* Pango::Context::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="a639f1fff0f0197e2f2a74ebe6cfe926"></a><!-- doxytag: member="Pango::Context::gobj_copy" ref="a639f1fff0f0197e2f2a74ebe6cfe926" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PangoContext* Pango::Context::gobj_copy           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. 
<p>

</div>
</div><p>
<a class="anchor" name="caabc75858fee895b9685a63272e3178"></a><!-- doxytag: member="Pango::Context::itemize" ref="caabc75858fee895b9685a63272e3178" args="(const Glib::ustring &amp;text, int start_index, int length, const AttrList &amp;attrs, AttrIter &amp;cached_iter) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">ListHandle_Item</a> Pango::Context::itemize           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>start_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>attrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPango_1_1AttrIter.html">AttrIter</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>cached_iter</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Breaks a piece of text into segments with consistent directional level and shaping engine. 
<p>
Each byte of <em>text</em> will be contained in exactly one of the items in the returned list. The generated list of items will be in logical order (the start offsets of the items are ascending).<p>
<em>cached_iter</em> should be an iterator over <em>attrs</em> currently positioned at a range before or containing <em>start_index</em>. <em>cached_iter</em> will be advanced to the range covering the position just after <em>start_index</em> + <em>length</em>. (i.e. if itemizing in a loop, just keep passing in the same <em>cached_iter</em>).<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>text</em>&nbsp;</td><td>The text to itemize. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>start_index</em>&nbsp;</td><td>First byte in <em>text</em> to process. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The number of bytes (not characters) to process after <em>start_index</em>. This must be &gt;= <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>attrs</em>&nbsp;</td><td>The set of attributes that apply to <em>text</em>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cached_iter</em>&nbsp;</td><td>Cached attribute iterator. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A list of <a class="el" href="classPango_1_1Item.html">Pango::Item</a> structures. </dd></dl>

</div>
</div><p>
<a class="anchor" name="dd1982bdccb054f2dc39e17b156d59bc"></a><!-- doxytag: member="Pango::Context::itemize" ref="dd1982bdccb054f2dc39e17b156d59bc" args="(const Glib::ustring &amp;text, const AttrList &amp;attrs) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">ListHandle_Item</a> Pango::Context::itemize           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>attrs</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Breaks a piece of text into segments with consistent directional level and shaping engine. 
<p>
Each byte of <em>text</em> will be contained in exactly one of the items in the returned list. The generated list of items will be in logical order (the start offsets of the items are ascending). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text to itemize. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>attrs</em>&nbsp;</td><td>The set of attributes that apply. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A list of <a class="el" href="classPango_1_1Item.html">Pango::Item</a> objects. </dd></dl>

</div>
</div><p>
<a class="anchor" name="0f67507a8df1f68daf9456cdac732ac6"></a><!-- doxytag: member="Pango::Context::list_families" ref="0f67507a8df1f68daf9456cdac732ac6" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt;<a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1FontFamily.html">FontFamily</a>&gt;&gt; Pango::Context::list_families           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
List all available font families for a context. 
<p>
You can specify one of these as your desired font family in the Pango::FontDesciption objects you use, e.g. in the default font description of the context. <dl class="return" compact><dt><b>Returns:</b></dt><dd>An array of <a class="el" href="classPango_1_1FontFamily.html">Pango::FontFamily</a> objects. </dd></dl>

</div>
</div><p>
<a class="anchor" name="f439c9a43237d2fc4a99914306560793"></a><!-- doxytag: member="Pango::Context::load_font" ref="f439c9a43237d2fc4a99914306560793" args="(const FontDescription &amp;desc) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Font.html">Font</a>&gt; Pango::Context::load_font           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Loads the font in one of the fontmaps in the context that is the closest match for <em>desc</em> . 
<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>desc</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> describing the font to load. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The font loaded, or <code>0</code> if no font matched. </dd></dl>

</div>
</div><p>
<a class="anchor" name="bfca9cb1a42475143183534d09bb6be8"></a><!-- doxytag: member="Pango::Context::load_fontset" ref="bfca9cb1a42475143183534d09bb6be8" args="(const FontDescription &amp;desc, const Language &amp;language) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Fontset.html">Fontset</a>&gt; Pango::Context::load_fontset           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPango_1_1Language.html">Language</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>language</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Load a set of fonts in the context that can be used to render a font matching <em>desc</em> . 
<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>desc</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> describing the fonts to load. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1Language.html">Pango::Language</a> the fonts will be used for. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The fontset, or <code>0</code> if no font matched. </dd></dl>

</div>
</div><p>
<a class="anchor" name="2f2e234bb53c20eff53ed8f1e51e460f"></a><!-- doxytag: member="Pango::Context::set_base_dir" ref="2f2e234bb53c20eff53ed8f1e51e460f" args="(Direction direction)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_base_dir           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__pangommEnums.html#g8fa031ece55a28777a84d0115829f601">Direction</a>&nbsp;</td>
          <td class="paramname"> <em>direction</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the base direction for the context. 
<p>
The base direction is used in applying the Unicode bidirectional algorithm; if the <em>direction</em> is <a class="el" href="group__pangommEnums.html#gg8fa031ece55a28777a84d0115829f60126ee800099154692da46924d2ba3c798">Pango::DIRECTION_LTR</a> or <a class="el" href="group__pangommEnums.html#gg8fa031ece55a28777a84d0115829f601cc8fc1dc8564449e04f264cb537699ab">Pango::DIRECTION_RTL</a>, then the value will be used as the paragraph direction in the Unicode bidirectional algorithm. A value of <a class="el" href="group__pangommEnums.html#gg8fa031ece55a28777a84d0115829f60188db3f8f0d85aceeb442f350f3db062a">Pango::DIRECTION_WEAK_LTR</a> or <a class="el" href="group__pangommEnums.html#gg8fa031ece55a28777a84d0115829f601f554c4d98ffa80fa05041ea48bbb77a5">Pango::DIRECTION_WEAK_RTL</a> is used only for paragraphs that do not contain any strong characters themselves. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>direction</em>&nbsp;</td><td>The new base direction. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="fc55b428fe56632e44c7d528eb27c037"></a><!-- doxytag: member="Pango::Context::set_base_gravity" ref="fc55b428fe56632e44c7d528eb27c037" args="(Gravity gravity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_base_gravity           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__pangommEnums.html#g64db2216c86f2ce624b9ef0489bf1df4">Gravity</a>&nbsp;</td>
          <td class="paramname"> <em>gravity</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the base gravity for the context. 
<p>
The base gravity is used in laying vertical text out.<p>
Since: 1.16 <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>gravity</em>&nbsp;</td><td>The new base gravity. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="5f80cbc5c97fb4ef0152f559096bea6c"></a><!-- doxytag: member="Pango::Context::set_cairo_font_options" ref="5f80cbc5c97fb4ef0152f559096bea6c" args="(const Cairo::FontOptions &amp;options)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_cairo_font_options           </td>
          <td>(</td>
          <td class="paramtype">const Cairo::FontOptions &amp;&nbsp;</td>
          <td class="paramname"> <em>options</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the font options used when rendering text with this context. 
<p>
These options override any options that pango_cairo_update_context() derives from the target surface. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1Context.html">Pango::Context</a>, from <a class="el" href="classPango_1_1CairoFontMap.html#f0dc38a29a12d73efaf30edcec4aa99d">Pango::CairoFontMap::create_context()</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>A cairo_font_options_t, or <code>0</code> to unset any previously set options. A copy is made. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="90ba5091c7a3177c4b3e49840b64192a"></a><!-- doxytag: member="Pango::Context::set_font_description" ref="90ba5091c7a3177c4b3e49840b64192a" args="(const FontDescription &amp;desc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_font_description           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the default font description for the context. 
<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>desc</em>&nbsp;</td><td>The new pango font description. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="86b50228ad45a1bb81136519aea95915"></a><!-- doxytag: member="Pango::Context::set_gravity_hint" ref="86b50228ad45a1bb81136519aea95915" args="(GravityHint hint)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_gravity_hint           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__pangommEnums.html#g405d1530ab8ac4993a0921a27fe035dd">GravityHint</a>&nbsp;</td>
          <td class="paramname"> <em>hint</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the gravity hint for the context. 
<p>
The gravity hint is used in laying vertical text out, and is only relevant if gravity of the context as returned by pango_context_get_gravity() is set <a class="el" href="group__pangommEnums.html#gg64db2216c86f2ce624b9ef0489bf1df4f6aca55cd113d30809b9292448d444e3">Pango::GRAVITY_EAST</a> or <a class="el" href="group__pangommEnums.html#gg64db2216c86f2ce624b9ef0489bf1df44c25e7d91fb461b35daf17b8c107381b">Pango::GRAVITY_WEST</a>.<p>
Since: 1.16 <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>hint</em>&nbsp;</td><td>The new gravity hint. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="20a1d003027b28404ae547118a1d6d80"></a><!-- doxytag: member="Pango::Context::set_language" ref="20a1d003027b28404ae547118a1d6d80" args="(const Language &amp;language)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_language           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPango_1_1Language.html">Language</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>language</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the global language tag for the context. 
<p>
The default language for the locale of the running process can be found using pango_language_get_default(). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>The new language tag. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e3e16a984e6c1bb2d8066201b4594da5"></a><!-- doxytag: member="Pango::Context::set_matrix" ref="e3e16a984e6c1bb2d8066201b4594da5" args="(const Matrix &amp;matrix)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_matrix           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacePango.html#5565a2f93d4fb8f943cc2d1fb2d476e1">Matrix</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>matrix</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the transformation matrix that will be applied when rendering with this context. 
<p>
Note that reported metrics are in the user space coordinates before the application of the matrix, not device-space coordinates after the application of the matrix. So, they don't scale with the matrix, though they may change slightly for different matrices, depending on how the text is fit to the pixel grid.<p>
Since: 1.6 <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>matrix</em>&nbsp;</td><td>A <a class="el" href="namespacePango.html#5565a2f93d4fb8f943cc2d1fb2d476e1">Pango::Matrix</a>, or <code>0</code> to unset any existing matrix. (No matrix set is the same as setting the identity matrix.). </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e912e733915cc5b48124a4aa913c6a7f"></a><!-- doxytag: member="Pango::Context::set_resolution" ref="e912e733915cc5b48124a4aa913c6a7f" args="(double dpi)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::set_resolution           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dpi</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the resolution for the context. 
<p>
This is a scale factor between points specified in a <a class="el" href="classPango_1_1FontDescription.html">Pango::FontDescription</a> and Cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10* 96. / 72. = 13.3).<p>
Since: 1.10 <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1Context.html">Pango::Context</a>, from <a class="el" href="classPango_1_1CairoFontMap.html#f0dc38a29a12d73efaf30edcec4aa99d">Pango::CairoFontMap::create_context()</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dpi</em>&nbsp;</td><td>The resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.) A 0 or negative value means to use the resolution from the font map. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="cc6707edbfcbbe79f6e3c540ddfa6eb1"></a><!-- doxytag: member="Pango::Context::update_from_cairo_context" ref="cc6707edbfcbbe79f6e3c540ddfa6eb1" args="(const Cairo::RefPtr&lt; Cairo::Context &gt; &amp;context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pango::Context::update_from_cairo_context           </td>
          <td>(</td>
          <td class="paramtype">const Cairo::RefPtr&lt; Cairo::Context &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Updates a <a class="el" href="namespacePango.html">Pango</a> <a class="el" href="classPango_1_1Context.html">Context</a> previously created for use with Cairo to match the current transformation and target surface of a Cairo <a class="el" href="classPango_1_1Context.html">Context</a>. 
<p>
If any layouts have been created for the context, it's necessary to call <a class="el" href="classPango_1_1Layout.html#b78ccca32cb57798beb743ae6778e7a8">Pango::Layout::context_changed()</a> on those layouts.<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>context</em>&nbsp;</td><td>A Cairo context, from <a class="el" href="classPango_1_1CairoFontMap.html#f0dc38a29a12d73efaf30edcec4aa99d">CairoFontMap::create_context()</a>. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="c61523c7c5af185d2c5ce7ce5706c3b4"></a><!-- doxytag: member="Pango::Context::wrap" ref="c61523c7c5af185d2c5ce7ce5706c3b4" args="(PangoContext *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Pango::Context</a>&gt; wrap           </td>
          <td>(</td>
          <td class="paramtype">PangoContext *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. 
<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>object</em>&nbsp;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&nbsp;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="context_8h.html">context.h</a></ul>
</div>
<!-- end main content -->

<hr><address><small>
Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>