41 lines
24 KiB
HTML
41 lines
24 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A high-level, safe, zero-allocation font parser for:"><title>ttf_parser - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ttf_parser" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../ttf_parser/index.html">ttf_<wbr>parser</a><span class="version">0.25.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#features" title="Features">Features</a></li><li><a href="#safety" title="Safety">Safety</a></li></ul><h3><a href="#modules">Crate Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>ttf_parser</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/ttf_parser/lib.rs.html#1-2416">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A high-level, safe, zero-allocation font parser for:</p>
|
||
<ul>
|
||
<li><a href="https://docs.microsoft.com/en-us/typography/truetype/">TrueType</a>,</li>
|
||
<li><a href="https://docs.microsoft.com/en-us/typography/opentype/spec/">OpenType</a>, and</li>
|
||
<li><a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6AATIntro.html">AAT</a>
|
||
fonts.</li>
|
||
</ul>
|
||
<p>Font parsing starts with a <a href="struct.Face.html" title="struct ttf_parser::Face"><code>Face</code></a>.</p>
|
||
<h3 id="features"><a class="doc-anchor" href="#features">§</a>Features</h3>
|
||
<ul>
|
||
<li>A high-level API for most common properties, hiding all parsing and data resolving logic.</li>
|
||
<li>A low-level, but safe API to access TrueType tables data.</li>
|
||
<li>Highly configurable. You can disable most of the features, reducing binary size.
|
||
You can also parse TrueType tables separately, without loading the whole font/face.</li>
|
||
<li>Zero heap allocations.</li>
|
||
<li>Zero unsafe.</li>
|
||
<li>Zero dependencies.</li>
|
||
<li><code>no_std</code>/WASM compatible.</li>
|
||
<li>Fast.</li>
|
||
<li>Stateless. All parsing methods are immutable.</li>
|
||
<li>Simple and maintainable code (no magic numbers).</li>
|
||
</ul>
|
||
<h3 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h3>
|
||
<ul>
|
||
<li>The library must not panic. Any panic considered as a critical bug and should be reported.</li>
|
||
<li>The library forbids unsafe code.</li>
|
||
<li>No heap allocations, so crash due to OOM is not possible.</li>
|
||
<li>All recursive methods have a depth limit.</li>
|
||
<li>Technically, should use less than 64KiB of stack in worst case scenario.</li>
|
||
<li>Most of arithmetic operations are checked.</li>
|
||
<li>Most of numeric casts are checked.</li>
|
||
</ul>
|
||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="ankr/index.html" title="mod ttf_parser::ankr">ankr</a></div><div class="desc docblock-short">An <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ankr.html">Anchor Point Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="apple_layout/index.html" title="mod ttf_parser::apple_layout">apple_<wbr>layout</a></div><div class="desc docblock-short">This module contains
|
||
<a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6AATIntro.html">Apple Advanced Typography Layout</a>
|
||
supplementary tables implementation.</div></li><li><div class="item-name"><a class="mod" href="avar/index.html" title="mod ttf_parser::avar">avar</a></div><div class="desc docblock-short">An <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/avar">Axis Variations Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="cbdt/index.html" title="mod ttf_parser::cbdt">cbdt</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cbdt">Color Bitmap Data Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="cblc/index.html" title="mod ttf_parser::cblc">cblc</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cblc">Color Bitmap Location Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="cff/index.html" title="mod ttf_parser::cff">cff</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cff">Compact Font Format Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="cff2/index.html" title="mod ttf_parser::cff2">cff2</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cff2">Compact Font Format 2 Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="cmap/index.html" title="mod ttf_parser::cmap">cmap</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cmap">Character to Glyph Index Mapping Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="colr/index.html" title="mod ttf_parser::colr">colr</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/colr">Color Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="cpal/index.html" title="mod ttf_parser::cpal">cpal</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cpal">Color Palette Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="feat/index.html" title="mod ttf_parser::feat">feat</a></div><div class="desc docblock-short">A <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6feat.html">Feature Name Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="fvar/index.html" title="mod ttf_parser::fvar">fvar</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/fvar">Font Variations Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="gdef/index.html" title="mod ttf_parser::gdef">gdef</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/gdef">Glyph Definition Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="glyf/index.html" title="mod ttf_parser::glyf">glyf</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/glyf">Glyph Data Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="gpos/index.html" title="mod ttf_parser::gpos">gpos</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/gpos">Glyph Positioning Table</a>
|
||
implementation.</div></li><li><div class="item-name"><a class="mod" href="gsub/index.html" title="mod ttf_parser::gsub">gsub</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/gsub">Glyph Substitution Table</a>
|
||
implementation.</div></li><li><div class="item-name"><a class="mod" href="gvar/index.html" title="mod ttf_parser::gvar">gvar</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/gvar">Glyph Variations Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="head/index.html" title="mod ttf_parser::head">head</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/head">Font Header Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="hhea/index.html" title="mod ttf_parser::hhea">hhea</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/hhea">Horizontal Header Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="hmtx/index.html" title="mod ttf_parser::hmtx">hmtx</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/hmtx">Horizontal/Vertical Metrics Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="hvar/index.html" title="mod ttf_parser::hvar">hvar</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/hvar">Horizontal Metrics Variations Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="kern/index.html" title="mod ttf_parser::kern">kern</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/kern">Kerning Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="kerx/index.html" title="mod ttf_parser::kerx">kerx</a></div><div class="desc docblock-short">An <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6kerx.html">Extended Kerning Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="loca/index.html" title="mod ttf_parser::loca">loca</a></div><div class="desc docblock-short">An <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/loca">Index to Location Table</a>
|
||
implementation.</div></li><li><div class="item-name"><a class="mod" href="math/index.html" title="mod ttf_parser::math">math</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/math">Math Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="maxp/index.html" title="mod ttf_parser::maxp">maxp</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/maxp">Maximum Profile Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="morx/index.html" title="mod ttf_parser::morx">morx</a></div><div class="desc docblock-short">An <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6morx.html">Extended Glyph Metamorphosis Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="mvar/index.html" title="mod ttf_parser::mvar">mvar</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/mvar">Metrics Variations Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="name/index.html" title="mod ttf_parser::name">name</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/name">Naming Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="name_id/index.html" title="mod ttf_parser::name_id">name_id</a></div><div class="desc docblock-short">A list of <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids">name ID</a>’s.</div></li><li><div class="item-name"><a class="mod" href="opentype_layout/index.html" title="mod ttf_parser::opentype_layout">opentype_<wbr>layout</a></div><div class="desc docblock-short">This module contains
|
||
<a href="https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#overview">OpenType Layout</a>
|
||
supplementary tables implementation.</div></li><li><div class="item-name"><a class="mod" href="os2/index.html" title="mod ttf_parser::os2">os2</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2">OS/2 and Windows Metrics Table</a>
|
||
implementation.</div></li><li><div class="item-name"><a class="mod" href="post/index.html" title="mod ttf_parser::post">post</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/post">PostScript Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="sbix/index.html" title="mod ttf_parser::sbix">sbix</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/sbix">Standard Bitmap Graphics Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="stat/index.html" title="mod ttf_parser::stat">stat</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/stat">Style Attributes Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="svg/index.html" title="mod ttf_parser::svg">svg</a></div><div class="desc docblock-short">An <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/svg">SVG Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="trak/index.html" title="mod ttf_parser::trak">trak</a></div><div class="desc docblock-short">A <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6trak.html">Tracking Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="vhea/index.html" title="mod ttf_parser::vhea">vhea</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/vhea">Vertical Header Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="vorg/index.html" title="mod ttf_parser::vorg">vorg</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/vorg">Vertical Origin Table</a> implementation.</div></li><li><div class="item-name"><a class="mod" href="vvar/index.html" title="mod ttf_parser::vvar">vvar</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/hvar">Vertical Metrics Variations Table</a> implementation.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Face.html" title="struct ttf_parser::Face">Face</a></div><div class="desc docblock-short">A font face.</div></li><li><div class="item-name"><a class="struct" href="struct.FaceTables.html" title="struct ttf_parser::FaceTables">Face<wbr>Tables</a></div><div class="desc docblock-short">Parsed face tables.</div></li><li><div class="item-name"><a class="struct" href="struct.Fixed.html" title="struct ttf_parser::Fixed">Fixed</a></div><div class="desc docblock-short">A 32-bit signed fixed-point number (16.16).</div></li><li><div class="item-name"><a class="struct" href="struct.GlyphId.html" title="struct ttf_parser::GlyphId">GlyphId</a></div><div class="desc docblock-short">A type-safe wrapper for glyph ID.</div></li><li><div class="item-name"><a class="struct" href="struct.LazyArray16.html" title="struct ttf_parser::LazyArray16">Lazy<wbr>Array16</a></div><div class="desc docblock-short">A slice-like container that converts internal binary data only on access.</div></li><li><div class="item-name"><a class="struct" href="struct.LazyArray32.html" title="struct ttf_parser::LazyArray32">Lazy<wbr>Array32</a></div><div class="desc docblock-short">A slice-like container that converts internal binary data only on access.</div></li><li><div class="item-name"><a class="struct" href="struct.LazyArrayIter16.html" title="struct ttf_parser::LazyArrayIter16">Lazy<wbr>Array<wbr>Iter16</a></div><div class="desc docblock-short">An iterator over <code>LazyArray16</code>.</div></li><li><div class="item-name"><a class="struct" href="struct.LazyArrayIter32.html" title="struct ttf_parser::LazyArrayIter32">Lazy<wbr>Array<wbr>Iter32</a></div><div class="desc docblock-short">An iterator over <code>LazyArray32</code>.</div></li><li><div class="item-name"><a class="struct" href="struct.LineMetrics.html" title="struct ttf_parser::LineMetrics">Line<wbr>Metrics</a></div><div class="desc docblock-short">A line metrics.</div></li><li><div class="item-name"><a class="struct" href="struct.NormalizedCoordinate.html" title="struct ttf_parser::NormalizedCoordinate">Normalized<wbr>Coordinate</a></div><div class="desc docblock-short">A variation coordinate in a normalized coordinate system.</div></li><li><div class="item-name"><a class="struct" href="struct.PhantomPoints.html" title="struct ttf_parser::PhantomPoints">Phantom<wbr>Points</a></div><div class="desc docblock-short">Phantom points.</div></li><li><div class="item-name"><a class="struct" href="struct.PointF.html" title="struct ttf_parser::PointF">PointF</a></div><div class="desc docblock-short">A float point.</div></li><li><div class="item-name"><a class="struct" href="struct.RasterGlyphImage.html" title="struct ttf_parser::RasterGlyphImage">Raster<wbr>Glyph<wbr>Image</a></div><div class="desc docblock-short">A glyph’s raster image.</div></li><li><div class="item-name"><a class="struct" href="struct.RawFace.html" title="struct ttf_parser::RawFace">RawFace</a></div><div class="desc docblock-short">A raw font face.</div></li><li><div class="item-name"><a class="struct" href="struct.RawFaceTables.html" title="struct ttf_parser::RawFaceTables">RawFace<wbr>Tables</a></div><div class="desc docblock-short">A list of all supported tables as raw data.</div></li><li><div class="item-name"><a class="struct" href="struct.Rect.html" title="struct ttf_parser::Rect">Rect</a></div><div class="desc docblock-short">A rectangle.</div></li><li><div class="item-name"><a class="struct" href="struct.RectF.html" title="struct ttf_parser::RectF">RectF</a></div><div class="desc docblock-short">A rectangle described by the left-lower and upper-right points.</div></li><li><div class="item-name"><a class="struct" href="struct.RgbaColor.html" title="struct ttf_parser::RgbaColor">Rgba<wbr>Color</a></div><div class="desc docblock-short">A RGBA color in the sRGB color space.</div></li><li><div class="item-name"><a class="struct" href="struct.ScriptMetrics.html" title="struct ttf_parser::ScriptMetrics">Script<wbr>Metrics</a></div><div class="desc docblock-short">A script metrics used by subscript and superscript.</div></li><li><div class="item-name"><a class="struct" href="struct.TableRecord.html" title="struct ttf_parser::TableRecord">Table<wbr>Record</a></div><div class="desc docblock-short">A raw table record.</div></li><li><div class="item-name"><a class="struct" href="struct.Tag.html" title="struct ttf_parser::Tag">Tag</a></div><div class="desc docblock-short">A 4-byte tag.</div></li><li><div class="item-name"><a class="struct" href="struct.Transform.html" title="struct ttf_parser::Transform">Transform</a></div><div class="desc docblock-short">An affine transform.</div></li><li><div class="item-name"><a class="struct" href="struct.UnicodeRanges.html" title="struct ttf_parser::UnicodeRanges">Unicode<wbr>Ranges</a></div><div class="desc docblock-short"><a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2#ur">Unicode Ranges</a>.</div></li><li><div class="item-name"><a class="struct" href="struct.Variation.html" title="struct ttf_parser::Variation">Variation</a></div><div class="desc docblock-short">A font variation value.</div></li><li><div class="item-name"><a class="struct" href="struct.VariationAxis.html" title="struct ttf_parser::VariationAxis">Variation<wbr>Axis</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/fvar#variationaxisrecord">variation axis</a>.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.CFFError.html" title="enum ttf_parser::CFFError">CFFError</a></div><div class="desc docblock-short">A list of errors that can occur during a CFF glyph outlining.</div></li><li><div class="item-name"><a class="enum" href="enum.FaceParsingError.html" title="enum ttf_parser::FaceParsingError">Face<wbr>Parsing<wbr>Error</a></div><div class="desc docblock-short">A list of font face parsing errors.</div></li><li><div class="item-name"><a class="enum" href="enum.Language.html" title="enum ttf_parser::Language">Language</a></div><div class="desc docblock-short">A <a href="name/struct.Name.html" title="struct ttf_parser::name::Name"><code>Name</code></a> language.</div></li><li><div class="item-name"><a class="enum" href="enum.Permissions.html" title="enum ttf_parser::Permissions">Permissions</a></div><div class="desc docblock-short">Face <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2#fst">permissions</a>.</div></li><li><div class="item-name"><a class="enum" href="enum.PlatformId.html" title="enum ttf_parser::PlatformId">Platform<wbr>Id</a></div><div class="desc docblock-short">A <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/name#platform-ids">platform ID</a>.</div></li><li><div class="item-name"><a class="enum" href="enum.RasterImageFormat.html" title="enum ttf_parser::RasterImageFormat">Raster<wbr>Image<wbr>Format</a></div><div class="desc docblock-short">A glyph raster image format.</div></li><li><div class="item-name"><a class="enum" href="enum.Style.html" title="enum ttf_parser::Style">Style</a></div><div class="desc docblock-short">A face style.</div></li><li><div class="item-name"><a class="enum" href="enum.Weight.html" title="enum ttf_parser::Weight">Weight</a></div><div class="desc docblock-short">A face <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass">weight</a>.</div></li><li><div class="item-name"><a class="enum" href="enum.Width.html" title="enum ttf_parser::Width">Width</a></div><div class="desc docblock-short">A face <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswidthclass">width</a>.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.FromData.html" title="trait ttf_parser::FromData">From<wbr>Data</a></div><div class="desc docblock-short">A trait for parsing raw binary data of fixed size.</div></li><li><div class="item-name"><a class="trait" href="trait.OutlineBuilder.html" title="trait ttf_parser::OutlineBuilder">Outline<wbr>Builder</a></div><div class="desc docblock-short">A trait for glyph outline construction.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.fonts_in_collection.html" title="fn ttf_parser::fonts_in_collection">fonts_<wbr>in_<wbr>collection</a></div><div class="desc docblock-short">Returns the number of fonts stored in a TrueType font collection.</div></li></ul></section></div></main></body></html> |