~ubuntu-branches/debian/sid/pango1.0/sid

« back to all changes in this revision

Viewing changes to docs/html/PangoMarkupFormat.html

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-03-20 18:01:45 UTC
  • mfrom: (1.9.3)
  • Revision ID: package-import@ubuntu.com-20140320180145-y2zs0pzp6390a6y9
Tags: 1.36.3-1
* Add xauth test-dep, needed for xvfb-run
* New upstream release
  - Fix builddir != srdir builds
    + Drop 0001-Fix-tests-for-builddir-srcdir-by-setting-G_TEST_-SRC.patch,
      which was a cherry-pick of this fix.
  - Avoid a crash when FT_Face is NULL
  - Update pango_color_parse docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="pango.html" title="Basic Pango Interfaces">
9
9
<link rel="prev" href="pango-Tab-Stops.html" title="Tab Stops">
10
10
<link rel="next" href="pango-Layout-Objects.html" title="Layout Objects">
11
 
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
 
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
 
<td width="100%" align="left"></td>
 
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
 
16
<td width="100%" align="left" class="shortcuts"></td>
17
17
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
18
<td><a accesskey="u" href="pango.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
19
<td><a accesskey="p" href="pango-Tab-Stops.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
27
27
<p>Text Attribute Markup — Simple
28
28
markup language to encode text with attributes</p>
29
29
</td>
30
 
<td valign="top" align="right"></td>
 
30
<td class="gallery_image" valign="top" align="right"></td>
31
31
</tr></table></div>
32
32
<div class="refsect1">
33
33
<a name="PangoMarkupFormatLanguage"></a><h2>Pango Text Attribute Markup Language</h2>
47
47
translated. Pango provides this feature with a small markup language.
48
48
You can parse a marked-up string into the string text plus a
49
49
<a class="link" href="pango-Text-Attributes.html#PangoAttrList">PangoAttrList</a> using either of
50
 
<a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()">pango_parse_markup()</a> or
51
 
<a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()">pango_markup_parser_new()</a>.
 
50
<a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()">pango_parse_markup()</a> or
 
51
<a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()">pango_markup_parser_new()</a>.
52
52
</p>
53
53
<p>
54
54
A simple example of a marked-up string might be:
60
60
be used too.
61
61
</p>
62
62
<p>
63
 
The root tag of a marked-up document is &lt;markup&gt;, but <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()">pango_parse_markup()</a> allows you to
 
63
The root tag of a marked-up document is &lt;markup&gt;, but <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()">pango_parse_markup()</a> allows you to
64
64
omit this tag, so you will most likely never need to use it. The most
65
65
general markup tag is &lt;span&gt;, then there are some convenience
66
66
tags. &lt;span&gt; has the following attributes:
77
77
<td><p><span class="term">font<a href="#ftn.since_1_21" class="footnote" name="since_1_21"><sup class="footnote">[1]</sup></a>, </span><span class="term">font_desc</span></p></td>
78
78
<td><p>
79
79
A font description string, such as "Sans Italic 12". See
80
 
<a class="link" href="pango-Fonts.html#pango-font-description-from-string" title="pango_font_description_from_string ()">pango_font_description_from_string()</a>
 
80
<a class="link" href="pango-Fonts.html#pango-font-description-from-string" title="pango_font_description_from_string ()">pango_font_description_from_string()</a>
81
81
for a description of the format of the string representation . Note that any 
82
82
other span attributes will override this description. So if you have 
83
83
"Sans Italic" and also a style="normal" attribute, you will get Sans normal, 
296
296
</div>
297
297
<div class="footer">
298
298
<hr>
299
 
          Generated by GTK-Doc V1.19.1</div>
 
299
          Generated by GTK-Doc V1.20.1</div>
300
300
</body>
301
301
</html>
 
 
b'\\ No newline at end of file'