Debian Codegraph @

ft2docs/docs/tutorial/step3.html

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3
4 <html lang="en">
5
6 <head>
7 <meta http-equiv="Content-Type"
8 content="text/html; charset=utf-8">
9 <meta http-equiv="Content-Style-Type"
10 content="text/css">
11 <meta http-equiv="Content-Script-Type"
12 content="text/javascript">
13 <meta name="description"
14 content="FreeType Documentation">
15 <meta name="Author"
16 content="David Turner">
17
18 <link rel="icon"
19 href="../image/favicon_-90.ico">
20 <link rel="shortcut icon"
21 href="../image/favicon_-90.ico">
22 <link rel="stylesheet"
23 type="text/css"
24 href="../css/freetype2_-90.css">
25
26 <script type="text/javascript"
27 src="../../../js/freetype2.js">
28 </script>
29
30 <title>FreeType Tutorial / III</title>
31 </head>
32
33
34 <body>
35
36 <div id="top"
37 class="bar">
38 <h1><a href="http://freetype.org/index.html">FreeType</a>
39 Tutorial&nbsp;/&nbsp;III</h1>
40 </div>
41
42
43 <div id="wrapper">
44
45 <div class="colmask leftmenu">
46 <div class="colright">
47 <div class="col1wrap">
48 <div class="col1">
49
50
51 <!-- ************************************************** -->
52
53 <div id="examples">
54 <h2>III. Examples</h2>
55
56 <p>For completeness, here again a link to
57 the <a href="example1.c">example</a> used and explained in
58 the <a href="step1.html">first part of the
59 tutorial</a>.</p>
60
61 <p><a href="mailto:[email protected]">Erik Möller</a>
62 contributed a very nice C++ example that shows renderer
63 callbacks in action to draw a coloured glyph with a
64 differently coloured outline. The source code can be
65 found <a href="example2.cpp">here</a>.</p>
66
67 <p><a href="example3.cpp">Another example</a> demonstrates
68 how to use FreeType's stand-alone B/W rasterizer,
69 <tt>ftraster.c</tt>. You need files from FreeType version
70 2.3.10 or newer.</p>
71
72 <p><a href="mailto:[email protected]">Róbert Márki</a>
73 contributed a small
74 <a href="example4.cpp">Qt demonstration program</a>
75 (together with its <a href="example4.pro">qmake file</a>)
76 that shows both direct rendering with a callback and
77 rendering with a buffer, yielding the same result. You
78 need FreeType 2.4.3 or newer.</p>
79
80 <p><a href="example5.cpp">Here</a> is some simple C++ code
81 (contributed
82 by <a href="https://www.staticjobs.com">Static Jobs
83 LLC</a>) that
84 uses <a href="../reference/ft2-outline_processing.html#ft_outline_decompose"><tt>FT_Outline_Decompose</tt></a>
85 to convert a glyph outline to the SVG format. As an
86 example, here is the <a href="example5.svg">resulting
87 file</a> of the call</p>
88
89 <pre>
90 example5 LiberationSerif-Bold.ttf @ &gt; example5.svg</pre>
91
92 <p>(you can find the Liberation font
93 family <a href="https://github.com/liberationfonts">here</a>).</p>
94 </div>
95
96 <!-- ************************************************** -->
97
98 <div class="updated">
99 <p>Last update: 13-Feb-2018</p>
100 </div>
101 </div>
102 </div>
103
104
105 <!-- ************************************************** -->
106
107 <div class="col2">
108 </div>
109 </div>
110 </div>
111
112
113 <!-- ************************************************** -->
114
115 <div id="TOC">
116 <ul>
117 <li class="funding">
118 <form action="https://www.paypal.com/cgi-bin/webscr"
119 method="post"
120 target="_top">
121 <input type="hidden"
122 name="cmd"
123 value="_s-xclick">
124 <input type="hidden"
125 name="hosted_button_id"
126 value="SK827YKEALMT4">
•127 <input type="submit"
128 value="Donate"
129 name="submit"
130 alt="PayPal - The safer, easier way to pay online!">
131 </form>
132 </li>
133 <li class="primary">
134 <a href="http://freetype.org/index.html">Home</a>
135 </li>
136 <li class="primary">
137 <a href="http://freetype.org/index.html#news">News</a>
138 </li>
139 <li class="primary">
140 <a href="../index.html">Overview</a>
141 </li>
142 <li class="primary">
143 <a href="../documentation.html">Documentation</a>
144 </li>
145 <li class="primary">
146 <a href="http://freetype.org/developer.html">Development</a>
147 </li>
148 <li class="primary">
149 <a href="http://freetype.org/contact.html"
150 class="emphasis">Contact</a>
151 </li>
152
153 <li>
154 &nbsp; <!-- separate primary from secondary entries -->
155 </li>
156
157 <li class="secondary">
158 <a href="index.html">FreeType Tutorial</a>
159 </li>
160 <li class="tertiary">
161 <a href="step1.html">Simple Glyph Loading</a>
162 </li>
163 <li class="tertiary">
164 <a href="step2.html">Managing Glyphs</a>
165 </li>
166 <li class="tertiary">
167 <a href="step3.html" class="current">Examples</a>
168 </li>
169 </ul>
170 </div>
171
172 </div> <!-- id="wrapper" -->
173
174 <div id="TOC-bottom">
175 </div>
176
177 </body>
178 </html>