Files
phy/owned_ttf_parser/index.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

19 lines
25 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="Extends ttf_parser with owned version of `Face`: `OwnedFace`."><title>owned_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="owned_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="../owned_ttf_parser/index.html">owned_<wbr>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="#example" title="Example">Example</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>owned_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/owned_ttf_parser/lib.rs.html#1-26">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extends <a href="https://docs.rs/ttf-parser">ttf_parser</a> with owned version of
<a href="struct.Face.html"><code>Face</code></a>: <a href="struct.OwnedFace.html"><code>OwnedFace</code></a>.</p>
<p>Re-exports <code>ttf_parser::*</code>.</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>owned_ttf_parser::{AsFaceRef, Face, OwnedFace};
<span class="kw">let </span>owned_face = OwnedFace::from_vec(owned_font_data, <span class="number">0</span>).unwrap();
<span class="kw">let </span>face_ref: <span class="kw-2">&amp;</span>Face&lt;<span class="lifetime">'_</span>&gt; = owned_face.as_face_ref();
<span class="macro">assert_eq!</span>(face_ref.ascender(), <span class="number">2254</span>);</code></pre></div>
</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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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.OwnedFace.html" title="struct owned_ttf_parser::OwnedFace">Owned<wbr>Face</a></div><div class="desc docblock-short">An owned version of font <a href="struct.Face.html"><code>Face</code></a>.</div></li><li><div class="item-name"><a class="struct" href="struct.PhantomPoints.html" title="struct owned_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 owned_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.PreParsedSubtables.html" title="struct owned_ttf_parser::PreParsedSubtables">PreParsed<wbr>Subtables</a></div><div class="desc docblock-short">A <code>Face</code> with cmap &amp; kern subtables parsed once on initialization.</div></li><li><div class="item-name"><a class="struct" href="struct.RasterGlyphImage.html" title="struct owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_ttf_parser::Language">Language</a></div><div class="desc docblock-short">A <a href="name/struct.Name.html" title="struct owned_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 owned_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 owned_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 owned_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 owned_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 owned_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 owned_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.AsFaceRef.html" title="trait owned_ttf_parser::AsFaceRef">AsFace<wbr>Ref</a></div><div class="desc docblock-short">Used to perform a cheap conversion to a <a href="struct.Face.html"><code>Face</code></a> reference.</div></li><li><div class="item-name"><a class="trait" href="trait.FaceMut.html" title="trait owned_ttf_parser::FaceMut">FaceMut</a></div><div class="desc docblock-short">Trait exposing mutable operations on a <a href="struct.Face.html" title="struct owned_ttf_parser::Face"><code>ttf_parser::Face</code></a>.</div></li><li><div class="item-name"><a class="trait" href="trait.FromData.html" title="trait owned_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 owned_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 owned_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>