| 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 Overview"> |
| 15 |
|
| 16 |
<link rel="icon" |
| 17 |
href="image/favicon_-60.ico"> |
| 18 |
<link rel="shortcut icon" |
| 19 |
href="image/favicon_-60.ico"> |
| 20 |
<link rel="stylesheet" |
| 21 |
type="text/css" |
| 22 |
href="css/freetype2_-60.css"> |
| 23 |
|
| 24 |
<script type="text/javascript" |
| 25 |
src="../../js/freetype2.js"> |
| 26 |
</script> |
| 27 |
|
| 28 |
<title>FreeType Overview</title> |
| 29 |
</head> |
| 30 |
|
| 31 |
|
| 32 |
<body> |
| 33 |
|
| 34 |
<div id="top" |
| 35 |
class="bar"> |
| 36 |
<h1><a href="http://freetype.org/index.html">FreeType</a> Overview</h1> |
| 37 |
</div> |
| 38 |
|
| 39 |
|
| 40 |
<div id="wrapper"> |
| 41 |
|
| 42 |
<div class="colmask leftmenu"> |
| 43 |
<div class="colright"> |
| 44 |
<div class="col1wrap"> |
| 45 |
<div class="col1"> |
| 46 |
|
| 47 |
|
| 48 |
<!-- ************************************************** --> |
| 49 |
|
| 50 |
<div id="what-is-freetype"> |
| 51 |
<h2>What is FreeType?</h2> |
| 52 |
|
| 53 |
<p>FreeType is a software font engine that is designed to |
| 54 |
be small, efficient, highly customizable, and portable |
| 55 |
while capable of producing high-quality output (glyph |
| 56 |
images). It can be used in graphics libraries, display |
| 57 |
servers, font conversion tools, text image generation |
| 58 |
tools, and many other products as well.</p> |
| 59 |
|
| 60 |
<p>Note that FreeType is a <em>font service</em> and doesn't |
| 61 |
provide APIs to perform higher-level features like text |
| 62 |
layout or graphics processing (e.g., colored text |
| 63 |
rendering, ‘hollowing’, etc.). However, it |
| 64 |
greatly simplifies these tasks by providing a simple, easy |
| 65 |
to use, and uniform interface to access the content of |
| 66 |
font files.</p> |
| 67 |
|
| 68 |
<p>FreeType is released under two open-source licenses: our |
| 69 |
own |
| 70 |
BSD-like <a href="https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/FTL.TXT">FreeType |
| 71 |
License</a> and |
| 72 |
the <a href="https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/GPLv2.TXT">GNU |
| 73 |
Public License, Version 2</a>. It can thus be used |
| 74 |
by any kind of projects, be they proprietary or not.</p> |
| 75 |
|
| 76 |
<p>Please note that ‘FreeType’ is also called |
| 77 |
‘FreeType 2’, to distinguish it from the |
| 78 |
old, deprecated ‘FreeType 1’ library, a |
| 79 |
predecessor no longer maintained and supported.</p> |
| 80 |
</div> |
| 81 |
|
| 82 |
|
| 83 |
<!-- ************************************************** --> |
| 84 |
|
| 85 |
<div id="features"> |
| 86 |
<h2>Features</h2> |
| 87 |
|
| 88 |
<p>The following is a non-exhaustive list of features |
| 89 |
provided by FreeType.</p> |
| 90 |
|
| 91 |
<ul> |
| 92 |
<li> |
| 93 |
<p>FreeType provides a simple and easy-to-use API to |
| 94 |
access font content in a uniform way, independently of |
| 95 |
the file format. Additionally, some format-specific |
| 96 |
APIs can be used to access special data in the font |
| 97 |
file.</p> |
| 98 |
</li> |
| 99 |
<li> |
| 100 |
<p>The design of FreeType is based on modules that can |
| 101 |
be either linked statically to the library at compile |
| 102 |
time, or loaded on demand at runtime. Modules are |
| 103 |
used to support specific font formats, or even new |
| 104 |
glyph image formats!</p> |
| 105 |
</li> |
| 106 |
<li> |
| 107 |
<p>FreeType was written with embedded systems in mind. |
| 108 |
This means that it doesn't use static writable data |
| 109 |
(i.e., it can be run from ROM directly), and that |
| 110 |
client applications can provide their own memory |
| 111 |
manager and I/O stream implementation. The latter |
| 112 |
allows you to easily read from ROM-based, compressed |
| 113 |
or remote font files with the same API. Several |
| 114 |
stream implementations can be used concurrently with a |
| 115 |
single FreeType instance.</p> |
| 116 |
|
| 117 |
<p>You can also reduce the size of the FreeType code by |
| 118 |
only compiling the modules you need for your embedded |
| 119 |
project or environment.</p> |
| 120 |
</li> |
| 121 |
<li> |
| 122 |
<p>By default, FreeType supports the following font |
| 123 |
formats.</p> |
| 124 |
|
| 125 |
<ul> |
| 126 |
<li>TrueType fonts (TTF) and TrueType collections |
| 127 |
(TTC)</li> |
| 128 |
<li>CFF fonts</li> |
| 129 |
<li>WOFF fonts</li> |
| 130 |
<li>OpenType fonts (OTF, both TrueType and CFF |
| 131 |
variants) and OpenType collections (OTC)</li> |
| 132 |
<li>Type 1 fonts (PFA and PFB)</li> |
| 133 |
<li>CID-keyed Type 1 fonts</li> |
| 134 |
<li>SFNT-based bitmap fonts, including color Emoji</li> |
| 135 |
<li>X11 PCF fonts</li> |
| 136 |
<li>Windows FNT fonts</li> |
| 137 |
<li>BDF fonts (including anti-aliased ones)</li> |
| 138 |
<li>PFR fonts</li> |
| 139 |
<li>Type 42 fonts (limited support)</li> |
| 140 |
</ul> |
| 141 |
</li> |
| 142 |
<li> |
| 143 |
<p>From a given glyph outline, FreeType is capable of |
| 144 |
producing a high-quality monochrome bitmap, or |
| 145 |
anti-aliased pixmap, using 256 levels of |
| 146 |
‘gray’.</p> |
| 147 |
</li> |
| 148 |
<li> |
| 149 |
<p>FreeType supports all the character mappings defined |
| 150 |
by the TrueType and OpenType specifications. It is |
| 151 |
also capable of automatically synthetizing a Unicode |
| 152 |
charmap from Type 1 fonts, avoiding painful |
| 153 |
‘encoding translation’ problems common |
| 154 |
with this format (of course, original encodings are |
| 155 |
also available if necessary).</p> |
| 156 |
</li> |
| 157 |
<li> |
| 158 |
<p>The FreeType core API provides simple functions to |
| 159 |
access advanced information like glyph names or basic |
| 160 |
kerning data.</p> |
| 161 |
</li> |
| 162 |
<li> |
| 163 |
<p>A full-featured and efficient TrueType bytecode |
| 164 |
interpreter, trying to match the results of the |
| 165 |
Windows bytecode engine. There is also the |
| 166 |
possibility to activate subpixel hinting |
| 167 |
(a.k.a. <em>ClearType</em>, still under |
| 168 |
development).</p> |
| 169 |
</li> |
| 170 |
<li> |
| 171 |
<p>For those who don't need or want to use the bytecode |
| 172 |
interpreter for TrueType fonts, we developed our |
| 173 |
own <em>automatic hinter</em> module. It is also used |
| 174 |
by other scalable formats.</p> |
| 175 |
</li> |
| 176 |
<li> |
| 177 |
<p>Due to its modular design, it is easy to enhance the |
| 178 |
library, providing additional format-specific |
| 179 |
information through optional APIs (as an example, an |
| 180 |
optional API is provided to retrieve SFNT tables from |
| 181 |
TrueType and OpenType fonts).</p> |
| 182 |
</li> |
| 183 |
<li> |
| 184 |
<p>FreeType provides its own caching subsystem. It can |
| 185 |
be used to cache either face instances or glyph images |
| 186 |
efficiently.</p> |
| 187 |
</li> |
| 188 |
<li> |
| 189 |
<p>A bundle of demo programs demonstrate the usage of |
| 190 |
FreeType; look for the |
| 191 |
‘ft2demos-<i>x.x.x</i>’ archive (or |
| 192 |
‘ftdmo<i>xxx</i>’ in case you are on a |
| 193 |
Windows platform) at the locations |
| 194 |
given <a href="http://freetype.org/download.html">here</a>. |
| 195 |
‘<i>x.x.x</i>’ (or |
| 196 |
‘<i>xxx</i>’) gives the version number, |
| 197 |
for example ‘2.4.10’ or |
| 198 |
‘2410’.</p> |
| 199 |
</li> |
| 200 |
</ul> |
| 201 |
</div> |
| 202 |
|
| 203 |
|
| 204 |
<!-- ************************************************** --> |
| 205 |
|
| 206 |
<div id="requirements"> |
| 207 |
<h2>Requirements</h2> |
| 208 |
|
| 209 |
<p>FreeType is written in industry-standard ANSI C and |
| 210 |
should compile easily with any compliant C or C++ |
| 211 |
compiler. We have even taken great care to |
| 212 |
eliminate <em>all warnings</em> when compiling with |
| 213 |
popular compilers like gcc, Visual C++, and Borland |
| 214 |
C++.</p> |
| 215 |
|
| 216 |
<p>Apart from a standard ANSI C library, FreeType |
| 217 |
doesn't have any external dependencies and can be compiled |
| 218 |
and installed on its own on any kind of system. Some |
| 219 |
modules <em>need</em> external libraries (e.g., for |
| 220 |
handling fonts compressed with gzip or bz2), however, they |
| 221 |
are optional and can be disabled.</p> |
| 222 |
</div> |
| 223 |
|
| 224 |
|
| 225 |
<!-- ************************************************** --> |
| 226 |
|
| 227 |
<div id="patents"> |
| 228 |
<h2>Patent Issues</h2> |
| 229 |
|
| 230 |
<p>All patents related to the TrueType bytecode interpreter |
| 231 |
expired in May 2010. All patents related to the ClearType |
| 232 |
color filtering model expired in August 2019.</p> |
| 233 |
|
| 234 |
<p>More information regarding this topic is available at |
| 235 |
our <a href="http://freetype.org/patents.html">patents page</a>.</p> |
| 236 |
</div> |
| 237 |
|
| 238 |
|
| 239 |
<!-- ************************************************** --> |
| 240 |
|
| 241 |
<div class="updated"> |
| 242 |
<p>Last update: 16-Jan-2021</p> |
| 243 |
</div> |
| 244 |
</div> |
| 245 |
</div> |
| 246 |
|
| 247 |
|
| 248 |
<!-- ************************************************** --> |
| 249 |
|
| 250 |
<div class="col2"> |
| 251 |
</div> |
| 252 |
</div> |
| 253 |
</div> |
| 254 |
|
| 255 |
|
| 256 |
<!-- ************************************************** --> |
| 257 |
|
| 258 |
<div id="TOC"> |
| 259 |
<ul> |
| 260 |
<li class="funding"> |
| 261 |
<form action="https://www.paypal.com/cgi-bin/webscr" |
| 262 |
method="post" |
| 263 |
target="_top"> |
| 264 |
<input type="hidden" |
| 265 |
name="cmd" |
| 266 |
value="_s-xclick"> |
| 267 |
<input type="hidden" |
| 268 |
name="hosted_button_id" |
| 269 |
value="SK827YKEALMT4"> |
| 270 |
<input type="image" |
| 271 |
src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" |
| 272 |
name="submit" |
| 273 |
alt="PayPal - The safer, easier way to pay online!"> |
| 274 |
</form> |
| 275 |
</li> |
| 276 |
<li class="primary"> |
| 277 |
<a href="http://freetype.org/index.html">Home</a> |
| 278 |
</li> |
| 279 |
<li class="primary"> |
| 280 |
<a href="http://freetype.org/index.html#news">News</a> |
| 281 |
</li> |
| 282 |
<li class="primary"> |
| 283 |
<a href="index.html" class="current">Overview</a> |
| 284 |
</li> |
| 285 |
<li class="primary"> |
| 286 |
<a href="documentation.html">Documentation</a> |
| 287 |
</li> |
| 288 |
<li class="primary"> |
| 289 |
<a href="http://freetype.org/developer.html">Development</a> |
| 290 |
</li> |
| 291 |
<li class="primary"> |
| 292 |
<a href="http://freetype.org/contact.html" |
| 293 |
class="emphasis">Contact</a> |
| 294 |
</li> |
| 295 |
|
| 296 |
<li> |
| 297 |
<!-- separate primary from secondary entries --> |
| 298 |
</li> |
| 299 |
|
| 300 |
<li class="secondary"> |
| 301 |
<a href="#what-is-freetype">What is FreeType?</a> |
| 302 |
</li> |
| 303 |
<li class="secondary"> |
| 304 |
<a href="#features">Features</a> |
| 305 |
</li> |
| 306 |
<li class="secondary"> |
| 307 |
<a href="#requirements">Requirements</a> |
| 308 |
</li> |
| 309 |
<li class="secondary"> |
| 310 |
<a href="#patents">Patents</a> |
| 311 |
</li> |
| 312 |
</ul> |
| 313 |
</div> |
| 314 |
|
| 315 |
</div> <!-- id="wrapper" --> |
| 316 |
|
| 317 |
<div id="TOC-bottom"> |
| 318 |
</div> |
| 319 |
|
| 320 |
</body> |
| 321 |
</html> |