<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.1">
+ <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
<meta name="lang:search.tokenizer" content="[\s\-]+">
<link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.0.2">
+ <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
- <title>LZW Streams - FreeType-2.10.1 API Reference</title>
+ <title>LZW Streams - FreeType-2.10.4 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.982221ab.css">
+ <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
- <link rel="stylesheet" href="assets/stylesheets/application-palette.224b79ff.css">
+ <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
- <script src="assets/javascripts/modernizr.1f0bcf2b.js"></script>
+ <script src="assets/javascripts/modernizr.86422ebf.js"></script>
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700|Roboto+Mono">
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
<style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#lzw-streams" tabindex="1" class="md-skip">
+ <a href="#lzw-streams" tabindex="0" class="md-skip">
Skip to content
</a>
<nav class="md-header-nav md-grid">
<div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink">
- <a href="index.html" title="FreeType-2.10.1 API Reference" class="md-header-nav__button md-logo">
+ <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
- <img src="images/favico.ico" width="24" height="24">
+ <img alt="logo" src="images/favico.ico" width="24" height="24">
</a>
</div>
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic">
- FreeType-2.10.1 API Reference
+ FreeType-2.10.4 API Reference
</span>
<span class="md-header-nav__topic">
- LZW Streams
+
+ LZW Streams
+
</span>
</div>
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
+ <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
<label class="md-icon md-search__icon" for="__search"></label>
<button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">

- <main class="md-main">
+ <main class="md-main" role="main">
<div class="md-main__inner md-grid" data-md-component="container">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" data-md-level="0">
<label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="index.html" title="FreeType-2.10.1 API Reference" class="md-nav__button md-logo">
+ <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
- <img src="images/favico.ico" width="48" height="48">
+ <img alt="logo" src="images/favico.ico" width="48" height="48">
</a>
- FreeType-2.10.1 API Reference
+ FreeType-2.10.4 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
- <a href="#synopsis" title="Synopsis" class="md-nav__link">
+ <a href="#synopsis" class="md-nav__link">
Synopsis
</a>
</li>
<li class="md-nav__item">
- <a href="#ft_stream_openlzw" title="FT_Stream_OpenLZW" class="md-nav__link">
+ <a href="#ft_stream_openlzw" class="md-nav__link">
FT_Stream_OpenLZW
</a>
<li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
+ <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
+ TrueTypeGX/AAT Validation
</a>
</li>
<li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
+ <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
+ OpenType Validation
</a>
</li>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
- <a href="#synopsis" title="Synopsis" class="md-nav__link">
+ <a href="#synopsis" class="md-nav__link">
Synopsis
</a>
</li>
<li class="md-nav__item">
- <a href="#ft_stream_openlzw" title="FT_Stream_OpenLZW" class="md-nav__link">
+ <a href="#ft_stream_openlzw" class="md-nav__link">
FT_Stream_OpenLZW
</a>
<hr />
<h1 id="lzw-streams">LZW Streams<a class="headerlink" href="#lzw-streams" title="Permanent link">¶</a></h1>
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">¶</a></h2>
+<p>In certain builds of the library, LZW compression recognition is automatically handled when calling <code><a href="ft2-base_interface.html#ft_new_face">FT_New_Face</a></code> or <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code>. This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it.</p>
+<p>The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance.</p>
<p>This section contains the declaration of LZW-specific functions.</p>
<h2 id="ft_stream_openlzw">FT_Stream_OpenLZW<a class="headerlink" href="#ft_stream_openlzw" title="Permanent link">¶</a></h2>
<p>Defined in FT_LZW_H (freetype/ftlzw.h).</p>
-<div class = "codehilite">
-<pre>
- FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
+<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
<b>FT_Stream_OpenLZW</b>( <a href="ft2-system_interface.html#ft_stream">FT_Stream</a> stream,
<a href="ft2-system_interface.html#ft_stream">FT_Stream</a> source );
-</pre>
-</div>
+</code></pre></div>
<p>Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed <code>*.pcf.Z</code> fonts that come with XFree86.</p>
<h4>input</h4>
<p>The source stream must be opened <em>before</em> calling this function.</p>
<p>Calling the internal function <code>FT_Stream_Close</code> on the new stream will <strong>not</strong> call <code>FT_Stream_Close</code> on the source stream. None of the stream objects will be released to the heap.</p>
-<p>The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream</p>
-<p>In certain builds of the library, LZW compression recognition is automatically handled when calling <code><a href="ft2-base_interface.html#ft_new_face">FT_New_Face</a></code> or <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code>. This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it.</p>
<p>This function may return <code>FT_Err_Unimplemented_Feature</code> if your build of FreeType was not compiled with LZW support.</p>
<hr>
+
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2019 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
powered by
- <a href="https://www.mkdocs.org">MkDocs</a>
+ <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
and
- <a href="https://squidfunk.github.io/mkdocs-material/">
+ <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs</a>
</div>
</div>
- <script src="assets/javascripts/application.d9aa80ab.js"></script>
+ <script src="assets/javascripts/application.c33a9706.js"></script>
- <script>app.initialize({version:"1.0.4",url:{base:"."}})</script>
+ <script>app.initialize({version:"1.1",url:{base:"."}})</script>
<script src="javascripts/extra.js"></script>