deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,3 @@
|
|||
<!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="Primary attributes typically used for font classification and selection."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module attribute</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>attribute</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Primary attributes typically used for font classification and selection.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Attributes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute::Attributes">Attributes</a></dt><dd>Stretch, style and weight attributes of a font.</dd><dt><a class="struct" href="struct.Stretch.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute::Stretch">Stretch</a></dt><dd>Visual width of a font– a relative change from the normal aspect
|
||||
ratio, typically in the range 0.5 to 2.0.</dd><dt><a class="struct" href="struct.Weight.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute::Weight">Weight</a></dt><dd>Visual weight class of a font, typically on a scale from 1.0 to 1000.0.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Style.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute::Style">Style</a></dt><dd>Visual style or ‘slope’ of a font.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Style"],"struct":["Attributes","Stretch","Weight"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Bitmap strikes and glyphs."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module bitmap</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>bitmap</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Bitmap strikes and glyphs.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.BitmapGlyph.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapGlyph">Bitmap<wbr>Glyph</a></dt><dd>An embedded bitmap glyph.</dd><dt><a class="struct" href="struct.BitmapStrike.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapStrike">Bitmap<wbr>Strike</a></dt><dd>Set of embedded bitmap glyphs of a specific size.</dd><dt><a class="struct" href="struct.BitmapStrikes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapStrikes">Bitmap<wbr>Strikes</a></dt><dd>Set of strikes, each containing embedded bitmaps of a single size.</dd><dt><a class="struct" href="struct.MaskData.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::MaskData">Mask<wbr>Data</a></dt><dd>A single channel alpha mask.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.BitmapData.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapData">Bitmap<wbr>Data</a></dt><dd>Data content of a bitmap.</dd><dt><a class="enum" href="enum.BitmapFormat.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapFormat">Bitmap<wbr>Format</a></dt><dd>The format (or table) containing the data backing a set of bitmap strikes.</dd><dt><a class="enum" href="enum.Origin.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::Origin">Origin</a></dt><dd>The origin point for drawing a bitmap glyph.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["BitmapData","BitmapFormat","Origin"],"struct":["BitmapGlyph","BitmapStrike","BitmapStrikes","MaskData"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,16 @@
|
|||
<!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="Mapping of characters (codepoints, not graphemes) to nominal glyph identifiers."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module charmap</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>charmap</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Mapping of characters (codepoints, not graphemes) to nominal glyph identifiers.</p>
|
||||
<p>If you have never run into character to glyph mapping before
|
||||
<a href="https://rsheeter.github.io/font101/#glyph-ids-and-the-cmap-table">Glyph IDs and the ‘cmap’ table</a>
|
||||
might be informative.</p>
|
||||
<p>The functionality in this module provides a 1-to-1 mapping from Unicode
|
||||
characters (or <a href="http://unicode.org/faq/vs.html">Unicode variation sequences</a>) to
|
||||
nominal or “default” internal glyph identifiers for a given font.
|
||||
This is a necessary first step, but generally insufficient for proper layout of
|
||||
<a href="https://en.wikipedia.org/wiki/Complex_text_layout">complex text</a> or even
|
||||
simple text containing diacritics and ligatures.</p>
|
||||
<p>Comprehensive mapping of characters to positioned glyphs requires a process called
|
||||
shaping. For more detail, see: <a href="https://harfbuzz.github.io/why-do-i-need-a-shaping-engine.html">Why do I need a shaping engine?</a></p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Charmap.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::Charmap">Charmap</a></dt><dd>Mapping of characters to nominal glyph identifiers.</dd><dt><a class="struct" href="struct.MappingIndex.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::MappingIndex">Mapping<wbr>Index</a></dt><dd>Cacheable indices of selected mapping tables for materializing a character
|
||||
map.</dd><dt><a class="struct" href="struct.Mappings.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::Mappings">Mappings</a></dt><dd>Iterator over all mappings of character to nominal glyph identifier
|
||||
in a character map.</dd><dt><a class="struct" href="struct.VariantMappings.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::VariantMappings">Variant<wbr>Mappings</a></dt><dd>Iterator over all mappings of character and variation selector to
|
||||
nominal glyph identifier in a character map.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.MapVariant.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::MapVariant">MapVariant</a></dt><dd>Result of mapping a codepoint with a variation selector.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["MapVariant"],"struct":["Charmap","MappingIndex","Mappings","VariantMappings"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,20 @@
|
|||
<!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="Drawing color glyphs."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module color</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a><ul><li><a href="#retrieve-the-clip-box-of-a-colrv1-glyph-if-it-has-one" title="Retrieve the clip box of a COLRv1 glyph if it has one:">Retrieve the clip box of a COLRv1 glyph if it has one:</a></li><li><a href="#paint-a-colrv1-glyph-given-a-font-and-a-glyph-id-and-a-colorpainter-implementation" title="Paint a COLRv1 glyph given a font, and a glyph id and a `ColorPainter` implementation:">Paint a COLRv1 glyph given a font, and a glyph id and a <code>ColorPainter</code> implementation:</a></li></ul></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><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></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>color</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Drawing color glyphs.</p>
|
||||
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2><h3 id="retrieve-the-clip-box-of-a-colrv1-glyph-if-it-has-one"><a class="doc-anchor" href="#retrieve-the-clip-box-of-a-colrv1-glyph-if-it-has-one">§</a>Retrieve the clip box of a COLRv1 glyph if it has one:</h3>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">match </span>font.color_glyphs()
|
||||
.get_with_format(glyph_id, ColorGlyphFormat::ColrV1)
|
||||
.expect(<span class="string">"Glyph not found."</span>)
|
||||
.bounding_box(<span class="kw-2">&</span>Location::default(), size)
|
||||
{
|
||||
<span class="prelude-val">Some</span>(bounding_box) => {
|
||||
<span class="macro">println!</span>(<span class="string">"Bounding box is {:?}"</span>, bounding_box);
|
||||
}
|
||||
<span class="prelude-val">None </span>=> {
|
||||
<span class="macro">println!</span>(<span class="string">"Glyph has no clip box."</span>);
|
||||
}
|
||||
}</code></pre></div>
|
||||
<h3 id="paint-a-colrv1-glyph-given-a-font-and-a-glyph-id-and-a-colorpainter-implementation"><a class="doc-anchor" href="#paint-a-colrv1-glyph-given-a-font-and-a-glyph-id-and-a-colorpainter-implementation">§</a>Paint a COLRv1 glyph given a font, and a glyph id and a <a href="trait.ColorPainter.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter"><code>ColorPainter</code></a> implementation:</h3>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>color_glyph = font.color_glyphs()
|
||||
.get_with_format(glyph_id, ColorGlyphFormat::ColrV1)
|
||||
.expect(<span class="string">"Glyph not found"</span>);
|
||||
color_glyph.paint(<span class="kw-2">&</span>Location::default(), color_painter_impl)</code></pre></div>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Color.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Color">Color</a></dt><dd><a href="https://learn.microsoft.com/en-us/typography/opentype/spec/cpal#palette-entries-and-color-records">CPAL (Color Record)</a> record</dd><dt><a class="struct" href="struct.ColorGlyph.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorGlyph">Color<wbr>Glyph</a></dt><dd>A representation of a color glyph that can be painted through a sequence of <a href="trait.ColorPainter.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter"><code>ColorPainter</code></a> callbacks.</dd><dt><a class="struct" href="struct.ColorGlyphCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorGlyphCollection">Color<wbr>Glyph<wbr>Collection</a></dt><dd>Collection of color glyphs.</dd><dt><a class="struct" href="struct.ColorPalette.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPalette">Color<wbr>Palette</a></dt><dd>A single color palette.</dd><dt><a class="struct" href="struct.ColorPalettes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPalettes">Color<wbr>Palettes</a></dt><dd>Collection of color palettes for color glyphs.</dd><dt><a class="struct" href="struct.ColorStop.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorStop">Color<wbr>Stop</a></dt><dd>A color stop of a gradient.</dd><dt><a class="struct" href="struct.Transform.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Transform">Transform</a></dt><dd>A transformation matrix to be applied to the drawing canvas.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Brush.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Brush">Brush</a></dt><dd>A fill type of a COLRv1 glyph (solid fill or various gradient types).</dd><dt><a class="enum" href="enum.ColorGlyphFormat.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorGlyphFormat">Color<wbr>Glyph<wbr>Format</a></dt><dd>Distinguishes available color glyph formats.</dd><dt><a class="enum" href="enum.CompositeMode.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::CompositeMode">Composite<wbr>Mode</a></dt><dd><a href="https://learn.microsoft.com/en-us/typography/opentype/spec/colr#format-32-paintcomposite">CompositeMode</a> enumeration</dd><dt><a class="enum" href="enum.Extend.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Extend">Extend</a></dt><dd><a href="https://learn.microsoft.com/en-us/typography/opentype/spec/colr#color-references-colorstop-and-colorline">Extend</a> enumeration</dd><dt><a class="enum" href="enum.PaintCachedColorGlyph.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::PaintCachedColorGlyph">Paint<wbr>Cached<wbr>Color<wbr>Glyph</a></dt><dd>Signals success of request to draw a COLRv1 sub glyph from cache.</dd><dt><a class="enum" href="enum.PaintError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::PaintError">Paint<wbr>Error</a></dt><dd>An error during drawing a COLR glyph.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.ColorPainter.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter">Color<wbr>Painter</a></dt><dd>A group of required painting callbacks to be provided by the client.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Brush","ColorGlyphFormat","CompositeMode","Extend","PaintCachedColorGlyph","PaintError"],"struct":["Color","ColorGlyph","ColorGlyphCollection","ColorPalette","ColorPalettes","ColorStop","Transform"],"trait":["ColorPainter"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,72 @@
|
|||
<!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 group of required painting callbacks to be provided by the client."><title>ColorPainter in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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 trait"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Color<wbr>Painter</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.fill" title="fill">fill</a></li><li><a href="#tymethod.pop_clip" title="pop_clip">pop_clip</a></li><li><a href="#tymethod.pop_transform" title="pop_transform">pop_transform</a></li><li><a href="#tymethod.push_clip_box" title="push_clip_box">push_clip_box</a></li><li><a href="#tymethod.push_clip_glyph" title="push_clip_glyph">push_clip_glyph</a></li><li><a href="#tymethod.push_layer" title="push_layer">push_layer</a></li><li><a href="#tymethod.push_transform" title="push_transform">push_transform</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.fill_glyph" title="fill_glyph">fill_glyph</a></li><li><a href="#method.paint_cached_color_glyph" title="paint_cached_color_glyph">paint_cached_color_glyph</a></li><li><a href="#method.pop_layer" title="pop_layer">pop_layer</a></li><li><a href="#method.pop_layer_with_mode" title="pop_layer_with_mode">pop_layer_with_mode</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>color</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a>::<wbr><a href="index.html">color</a></div><h1>Trait <span class="trait">ColorPainter</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait ColorPainter {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.push_transform" class="fn">push_transform</a>(&mut self, transform: <a class="struct" href="struct.Transform.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Transform">Transform</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.pop_transform" class="fn">pop_transform</a>(&mut self);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.push_clip_glyph" class="fn">push_clip_glyph</a>(&mut self, glyph_id: <a class="struct" href="../struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphId">GlyphId</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.push_clip_box" class="fn">push_clip_box</a>(&mut self, clip_box: <a class="struct" href="../raw/types/struct.BoundingBox.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::types::BoundingBox">BoundingBox</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.pop_clip" class="fn">pop_clip</a>(&mut self);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.fill" class="fn">fill</a>(&mut self, brush: <a class="enum" href="enum.Brush.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Brush">Brush</a><'_>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.push_layer" class="fn">push_layer</a>(&mut self, composite_mode: <a class="enum" href="enum.CompositeMode.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::CompositeMode">CompositeMode</a>);
|
||||
|
||||
// Provided methods
|
||||
fn <a href="#method.fill_glyph" class="fn">fill_glyph</a>(
|
||||
&mut self,
|
||||
glyph_id: <a class="struct" href="../struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphId">GlyphId</a>,
|
||||
brush_transform: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Transform.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Transform">Transform</a>>,
|
||||
brush: <a class="enum" href="enum.Brush.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Brush">Brush</a><'_>,
|
||||
) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.paint_cached_color_glyph" class="fn">paint_cached_color_glyph</a>(
|
||||
&mut self,
|
||||
_glyph: <a class="struct" href="../struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphId">GlyphId</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.PaintCachedColorGlyph.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::PaintCachedColorGlyph">PaintCachedColorGlyph</a>, <a class="enum" href="enum.PaintError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::PaintError">PaintError</a>> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.pop_layer" class="fn">pop_layer</a>(&mut self) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.pop_layer_with_mode" class="fn">pop_layer_with_mode</a>(&mut self, _composite_mode: <a class="enum" href="enum.CompositeMode.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::CompositeMode">CompositeMode</a>) { ... }
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A group of required painting callbacks to be provided by the client.</p>
|
||||
<p>Each callback is executing a particular drawing or canvas transformation
|
||||
operation. The trait’s callback functions are invoked when
|
||||
<a href="struct.ColorGlyph.html#method.paint" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorGlyph::paint"><code>paint</code></a> is called with a <a href="trait.ColorPainter.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter"><code>ColorPainter</code></a> trait
|
||||
object. The documentation for each function describes what actions are to be
|
||||
executed using the client side 2D graphics API, usually by performing some
|
||||
kind of canvas operation.</p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.push_transform" class="method"><h4 class="code-header">fn <a href="#tymethod.push_transform" class="fn">push_transform</a>(&mut self, transform: <a class="struct" href="struct.Transform.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Transform">Transform</a>)</h4></section></summary><div class="docblock"><p>Push the specified transform by concatenating it to the current
|
||||
transformation matrix.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.pop_transform" class="method"><h4 class="code-header">fn <a href="#tymethod.pop_transform" class="fn">pop_transform</a>(&mut self)</h4></section></summary><div class="docblock"><p>Restore the transformation matrix to the state before the previous
|
||||
<a href="trait.ColorPainter.html#tymethod.push_transform" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::push_transform"><code>push_transform</code></a> call.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.push_clip_glyph" class="method"><h4 class="code-header">fn <a href="#tymethod.push_clip_glyph" class="fn">push_clip_glyph</a>(&mut self, glyph_id: <a class="struct" href="../struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphId">GlyphId</a>)</h4></section></summary><div class="docblock"><p>Apply a clip path in the shape of glyph specified by <code>glyph_id</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.push_clip_box" class="method"><h4 class="code-header">fn <a href="#tymethod.push_clip_box" class="fn">push_clip_box</a>(&mut self, clip_box: <a class="struct" href="../raw/types/struct.BoundingBox.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::types::BoundingBox">BoundingBox</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>)</h4></section></summary><div class="docblock"><p>Apply a clip rectangle specified by <code>clip_rect</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.pop_clip" class="method"><h4 class="code-header">fn <a href="#tymethod.pop_clip" class="fn">pop_clip</a>(&mut self)</h4></section></summary><div class="docblock"><p>Restore the clip state to the state before a previous
|
||||
<a href="trait.ColorPainter.html#tymethod.push_clip_glyph" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::push_clip_glyph"><code>push_clip_glyph</code></a> or
|
||||
<a href="trait.ColorPainter.html#tymethod.push_clip_box" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::push_clip_box"><code>push_clip_box</code></a> call.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.fill" class="method"><h4 class="code-header">fn <a href="#tymethod.fill" class="fn">fill</a>(&mut self, brush: <a class="enum" href="enum.Brush.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Brush">Brush</a><'_>)</h4></section></summary><div class="docblock"><p>Fill the current clip area with the specified gradient fill.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.push_layer" class="method"><h4 class="code-header">fn <a href="#tymethod.push_layer" class="fn">push_layer</a>(&mut self, composite_mode: <a class="enum" href="enum.CompositeMode.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::CompositeMode">CompositeMode</a>)</h4></section></summary><div class="docblock"><p>Open a new layer, and merge the layer down using <code>composite_mode</code> when
|
||||
<a href="trait.ColorPainter.html#method.pop_layer" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::pop_layer"><code>pop_layer</code></a> is called, signalling that this layer is done drawing.</p>
|
||||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.fill_glyph" class="method"><h4 class="code-header">fn <a href="#method.fill_glyph" class="fn">fill_glyph</a>(
|
||||
&mut self,
|
||||
glyph_id: <a class="struct" href="../struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphId">GlyphId</a>,
|
||||
brush_transform: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Transform.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Transform">Transform</a>>,
|
||||
brush: <a class="enum" href="enum.Brush.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Brush">Brush</a><'_>,
|
||||
)</h4></section></summary><div class="docblock"><p>Combined clip and fill operation.</p>
|
||||
<p>Apply the clip path determined by the specified <code>glyph_id</code>, then fill it
|
||||
with the specified <a href="enum.Brush.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::Brush"><code>brush</code></a>, applying the <code>_brush_transform</code>
|
||||
transformation matrix to the brush. The default implementation works
|
||||
based on existing methods in this trait. It is recommended for clients
|
||||
to override the default implementaition with a custom combined clip and
|
||||
fill operation. In this way overriding likely results in performance
|
||||
gains depending on performance characteristics of the 2D graphics stack
|
||||
that these calls are mapped to.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.paint_cached_color_glyph" class="method"><h4 class="code-header">fn <a href="#method.paint_cached_color_glyph" class="fn">paint_cached_color_glyph</a>(
|
||||
&mut self,
|
||||
_glyph: <a class="struct" href="../struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphId">GlyphId</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.PaintCachedColorGlyph.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::PaintCachedColorGlyph">PaintCachedColorGlyph</a>, <a class="enum" href="enum.PaintError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::PaintError">PaintError</a>></h4></section></summary><div class="docblock"><p>Optionally implement this method: Draw an unscaled COLRv1 glyph given
|
||||
the current transformation matrix (as accumulated by
|
||||
<a href="trait.ColorPainter.html#tymethod.push_transform" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::push_transform"><code>push_transform</code></a> calls).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.pop_layer" class="method"><h4 class="code-header">fn <a href="#method.pop_layer" class="fn">pop_layer</a>(&mut self)</h4></section></summary><div class="docblock"><p>Merge the pushed layer down using <code>composite_mode</code> passed to the matching
|
||||
<a href="trait.ColorPainter.html#tymethod.push_layer" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::push_layer"><code>push_layer</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.pop_layer_with_mode" class="method"><h4 class="code-header">fn <a href="#method.pop_layer_with_mode" class="fn">pop_layer_with_mode</a>(&mut self, _composite_mode: <a class="enum" href="enum.CompositeMode.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::CompositeMode">CompositeMode</a>)</h4></section></summary><div class="docblock"><p>Alternative version of <a href="trait.ColorPainter.html#tymethod.push_layer" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::push_layer"><code>push_layer</code></a> where the
|
||||
<code>composite_mode</code> is also passed to the method. This is useful for
|
||||
graphics libraries that need the compositing mode at layer pop time
|
||||
and do not want to manually track the mode.</p>
|
||||
<p>Only one of <a href="trait.ColorPainter.html#method.pop_layer" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::pop_layer"><code>pop_layer</code></a> or this method
|
||||
need to be implemented. By default, this simply calls
|
||||
<a href="trait.ColorPainter.html#method.pop_layer" title="method cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPainter::pop_layer"><code>pop_layer</code></a>.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../../../../../trait.impl/skrifa/color/trait.ColorPainter.js" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Basic representation of an in-memory font resource."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::font - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module font</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>font</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Basic representation of an in-memory font resource.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.FontRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::font::FontRef">FontRef</a></dt><dd>Reference to an in-memory font.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["FontRef"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Helpers for selecting a font size and location in variation space."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module instance</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>instance</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Helpers for selecting a font size and location in variation space.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Location.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Location">Location</a></dt><dd>Ordered sequence of normalized variation coordinates.</dd><dt><a class="struct" href="struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef">Location<wbr>Ref</a></dt><dd>Reference to an ordered sequence of normalized variation coordinates.</dd><dt><a class="struct" href="struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Size">Size</a></dt><dd>Font size in pixels per em units.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.NormalizedCoord.html" title="type cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::NormalizedCoord">Normalized<wbr>Coord</a></dt><dd>Type for a normalized variation coordinate.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Location","LocationRef","Size"],"type":["NormalizedCoord"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Type for a normalized variation coordinate."><title>NormalizedCoord in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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 type"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Normalized<wbr>Coord</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>instance</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a>::<wbr><a href="index.html">instance</a></div><h1>Type Alias <span class="type">NormalizedCoord</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type NormalizedCoord = <a class="struct" href="../raw/types/struct.F2Dot14.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::types::F2Dot14">F2Dot14</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Type for a normalized variation coordinate.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct NormalizedCoord(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../../../../../../type.impl/cosmic/iced/daemon/program/graphics/text/cosmic_text/skrifa/raw/types/struct.F2Dot14.js" data-self-path="cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::NormalizedCoord" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<!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="Global font and glyph specific metrics."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module metrics</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#selecting-an-instance" title="Selecting an “instance”">Selecting an “instance”</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>metrics</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Global font and glyph specific metrics.</p>
|
||||
<p>Metrics are various measurements that define positioning and layout
|
||||
characteristics for a font. They come in two flavors:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Global metrics: these are applicable to all glyphs in a font and generally
|
||||
define values that are used for the layout of a collection of glyphs. For example,
|
||||
the ascent, descent and leading values determine the position of the baseline where
|
||||
a glyph should be rendered as well as the suggested spacing above and below it.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Glyph metrics: these apply to single glyphs. For example, the advance
|
||||
width value describes the distance between two consecutive glyphs on a line.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 id="selecting-an-instance"><a class="doc-anchor" href="#selecting-an-instance">§</a>Selecting an “instance”</h4>
|
||||
<p>Both global and glyph specific metrics accept two additional pieces of information
|
||||
to select the desired instance of a font:</p>
|
||||
<ul>
|
||||
<li>Size: represented by the <a href="../instance/struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Size">Size</a> type, this determines the scaling factor that is
|
||||
applied to all metrics.</li>
|
||||
<li>Normalized variation coordinates: represented by the <a href="../instance/struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef">LocationRef</a> type,
|
||||
these define the position in design space for a variable font. For a non-variable
|
||||
font, these coordinates are ignored and you can pass <a href="../instance/struct.LocationRef.html#method.default" title="associated function cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef::default">LocationRef::default()</a>
|
||||
as an argument for this parameter.</li>
|
||||
</ul>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Decoration.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::Decoration">Decoration</a></dt><dd>Metrics for a text decoration.</dd><dt><a class="struct" href="struct.GlyphMetrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::GlyphMetrics">Glyph<wbr>Metrics</a></dt><dd>Glyph specific metrics.</dd><dt><a class="struct" href="struct.Metrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::Metrics">Metrics</a></dt><dd>Metrics that apply to all glyphs in a font.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.BoundingBox.html" title="type cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::BoundingBox">Bounding<wbr>Box</a></dt><dd>Type for a bounding box with single precision floating point coordinates.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Decoration","GlyphMetrics","Metrics"],"type":["BoundingBox"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,14 @@
|
|||
<!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="Type for a bounding box with single precision floating point coordinates."><title>BoundingBox in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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 type"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Bounding<wbr>Box</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x_max" title="x_max">x_max</a></li><li><a href="#structfield.x_min" title="x_min">x_min</a></li><li><a href="#structfield.y_max" title="y_max">y_max</a></li><li><a href="#structfield.y_min" title="y_min">y_min</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>metrics</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a>::<wbr><a href="index.html">metrics</a></div><h1>Type Alias <span class="type">BoundingBox</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type BoundingBox = <a class="struct" href="../raw/types/struct.BoundingBox.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::types::BoundingBox">BoundingBox</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Type for a bounding box with single precision floating point coordinates.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct BoundingBox {
|
||||
pub x_min: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
pub y_min: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
pub x_max: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
pub y_max: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x_min" class="structfield section-header"><a href="#structfield.x_min" class="anchor field">§</a><code>x_min: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span><div class="docblock"><p>Minimum extent in the x direction– the left side of a region.</p>
|
||||
</div><span id="structfield.y_min" class="structfield section-header"><a href="#structfield.y_min" class="anchor field">§</a><code>y_min: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span><div class="docblock"><p>Minimum extent in the y direction. In a Y-up coordinate system,
|
||||
which is used by fonts, this represents the bottom of a region.</p>
|
||||
</div><span id="structfield.x_max" class="structfield section-header"><a href="#structfield.x_max" class="anchor field">§</a><code>x_max: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span><div class="docblock"><p>Maximum extent in the x direction– the right side of a region.</p>
|
||||
</div><span id="structfield.y_max" class="structfield section-header"><a href="#structfield.y_max" class="anchor field">§</a><code>y_max: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code></span><div class="docblock"><p>Maximum extend in the y direction. In a Y-up coordinate system,
|
||||
which is used by fonts, this represents the top of the
|
||||
region.</p>
|
||||
</div><script src="../../../../../../../../../type.impl/cosmic/iced/daemon/program/graphics/text/cosmic_text/skrifa/raw/types/struct.BoundingBox.js" data-self-path="cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::BoundingBox" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Error types associated with outlines."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../" data-static-root-path="../../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module error</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>outline</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../../index.html">program</a>::<wbr><a href="../../../../../index.html">graphics</a>::<wbr><a href="../../../../index.html">text</a>::<wbr><a href="../../../index.html">cosmic_text</a>::<wbr><a href="../../index.html">skrifa</a>::<wbr><a href="../index.html">outline</a></div><h1>Module <span>error</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Error types associated with outlines.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.HintError.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error::HintError">Hint<wbr>Error</a></dt><dd>Hinting error with additional context.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.CffError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error::CffError">CffError</a></dt><dd>Errors that are specific to PostScript processing.</dd><dt><a class="enum" href="enum.DrawError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error::DrawError">Draw<wbr>Error</a></dt><dd>Errors that may occur when drawing glyphs.</dd><dt><a class="enum" href="enum.ReadError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error::ReadError">Read<wbr>Error</a></dt><dd>An error that occurs when reading font data</dd><dt><a class="enum" href="enum.ToPathError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error::ToPathError">ToPath<wbr>Error</a></dt><dd>Errors that can occur when converting an outline to a path.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["CffError","DrawError","ReadError","ToPathError"],"struct":["HintError"]};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,75 @@
|
|||
<!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="Loading, scaling and hinting of glyph outlines."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module outline</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#drawing-a-glyph" title="Drawing a glyph">Drawing a glyph</a></li></ul><h3><a href="#modules">Module 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></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>outline</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Loading, scaling and hinting of glyph outlines.</p>
|
||||
<p>This module provides support for retrieving (optionally scaled and hinted)
|
||||
glyph outlines in the form of vector paths.</p>
|
||||
<h2 id="drawing-a-glyph"><a class="doc-anchor" href="#drawing-a-glyph">§</a>Drawing a glyph</h2>
|
||||
<p>Generating SVG <a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#path_commands">path commands</a>
|
||||
for a character (this assumes a local variable <code>font</code> of type <a href="../struct.FontRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::FontRef"><code>FontRef</code></a>):</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>skrifa::{
|
||||
instance::{LocationRef, Size},
|
||||
outline::{DrawSettings, OutlinePen},
|
||||
FontRef, MetadataProvider,
|
||||
};
|
||||
|
||||
<span class="comment">// First, grab the set of outline glyphs from the font.
|
||||
</span><span class="kw">let </span>outlines = font.outline_glyphs();
|
||||
|
||||
<span class="comment">// Find the glyph identifier for our character.
|
||||
</span><span class="kw">let </span>glyph_id = font.charmap().map(<span class="string">'Q'</span>).unwrap();
|
||||
|
||||
<span class="comment">// Grab the outline glyph.
|
||||
</span><span class="kw">let </span>glyph = outlines.get(glyph_id).unwrap();
|
||||
|
||||
<span class="comment">// Define how we want the glyph to be drawn. This creates
|
||||
// settings for an instance without hinting at a size of
|
||||
// 16px with no variations applied.
|
||||
</span><span class="kw">let </span>settings = DrawSettings::unhinted(Size::new(<span class="number">16.0</span>), LocationRef::default());
|
||||
|
||||
<span class="comment">// Alternatively, we can apply variations like so:
|
||||
</span><span class="kw">let </span>var_location = font.axes().location(<span class="kw-2">&</span>[(<span class="string">"wght"</span>, <span class="number">650.0</span>), (<span class="string">"wdth"</span>, <span class="number">100.0</span>)]);
|
||||
<span class="kw">let </span>settings = DrawSettings::unhinted(Size::new(<span class="number">16.0</span>), <span class="kw-2">&</span>var_location);
|
||||
|
||||
<span class="comment">// At this point, we need a "sink" to receive the resulting path. This
|
||||
// is done by creating an implementation of the OutlinePen trait.
|
||||
|
||||
// Let's make one that generates SVG path data.
|
||||
</span><span class="attr">#[derive(Default)]
|
||||
</span><span class="kw">struct </span>SvgPath(String);
|
||||
|
||||
<span class="comment">// Implement the OutlinePen trait for this type. This emits the appropriate
|
||||
// SVG path commands for each element type.
|
||||
</span><span class="kw">impl </span>OutlinePen <span class="kw">for </span>SvgPath {
|
||||
<span class="kw">fn </span>move_to(<span class="kw-2">&mut </span><span class="self">self</span>, x: f32, y: f32) {
|
||||
<span class="self">self</span>.<span class="number">0</span>.push_str(<span class="kw-2">&</span><span class="macro">format!</span>(<span class="string">"M{x:.1},{y:.1} "</span>));
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>line_to(<span class="kw-2">&mut </span><span class="self">self</span>, x: f32, y: f32) {
|
||||
<span class="self">self</span>.<span class="number">0</span>.push_str(<span class="kw-2">&</span><span class="macro">format!</span>(<span class="string">"L{x:.1},{y:.1} "</span>));
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>quad_to(<span class="kw-2">&mut </span><span class="self">self</span>, cx0: f32, cy0: f32, x: f32, y: f32) {
|
||||
<span class="self">self</span>.<span class="number">0
|
||||
</span>.push_str(<span class="kw-2">&</span><span class="macro">format!</span>(<span class="string">"Q{cx0:.1},{cy0:.1} {x:.1},{y:.1} "</span>));
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>curve_to(<span class="kw-2">&mut </span><span class="self">self</span>, cx0: f32, cy0: f32, cx1: f32, cy1: f32, x: f32, y: f32) {
|
||||
<span class="self">self</span>.<span class="number">0</span>.push_str(<span class="kw-2">&</span><span class="macro">format!</span>(
|
||||
<span class="string">"C{cx0:.1},{cy0:.1} {cx1:.1},{cy1:.1} {x:.1},{y:.1} "
|
||||
</span>));
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>close(<span class="kw-2">&mut </span><span class="self">self</span>) {
|
||||
<span class="self">self</span>.<span class="number">0</span>.push_str(<span class="string">"Z "</span>);
|
||||
}
|
||||
}
|
||||
<span class="comment">// Now, construct an instance of our pen.
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>svg_path = SvgPath::default();
|
||||
|
||||
<span class="comment">// And draw the glyph!
|
||||
</span>glyph.draw(settings, <span class="kw-2">&mut </span>svg_path).unwrap();
|
||||
|
||||
<span class="comment">// See what we've drawn.
|
||||
</span><span class="macro">println!</span>(<span class="string">"{}"</span>, svg_path.<span class="number">0</span>);</code></pre></div>
|
||||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="error/index.html" title="mod cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::error">error</a></dt><dd>Error types associated with outlines.</dd><dt><a class="mod" href="pen/index.html" title="mod cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen">pen</a></dt><dd>Types for collecting the output when drawing a glyph outline.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.AdjustedMetrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::AdjustedMetrics">Adjusted<wbr>Metrics</a></dt><dd>Information and adjusted metrics generated while drawing an outline glyph.</dd><dt><a class="struct" href="struct.DrawSettings.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::DrawSettings">Draw<wbr>Settings</a></dt><dd>Options that define how a <a href="../struct.OutlineGlyph.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::OutlineGlyph">glyph</a> is drawn to a
|
||||
<a href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">pen</a>.</dd><dt><a class="struct" href="struct.GlyphStyles.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::GlyphStyles">Glyph<wbr>Styles</a></dt><dd>Set of derived glyph styles that are used for automatic hinting.</dd><dt><a class="struct" href="struct.HintingInstance.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::HintingInstance">Hinting<wbr>Instance</a></dt><dd>Hinting instance that uses information embedded in the font to perform
|
||||
grid-fitting.</dd><dt><a class="struct" href="struct.HintingOptions.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::HintingOptions">Hinting<wbr>Options</a></dt><dd>Configuration settings for a hinting instance.</dd><dt><a class="struct" href="struct.OutlineGlyph.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlineGlyph">Outline<wbr>Glyph</a></dt><dd>A scalable glyph outline.</dd><dt><a class="struct" href="struct.OutlineGlyphCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlineGlyphCollection">Outline<wbr>Glyph<wbr>Collection</a></dt><dd>Collection of scalable glyph outlines.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.DrawError.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::DrawError">Draw<wbr>Error</a></dt><dd>Errors that may occur when drawing glyphs.</dd><dt><a class="enum" href="enum.Engine.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::Engine">Engine</a></dt><dd>Specifies the backend to use when applying hints.</dd><dt><a class="enum" href="enum.Hinting.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::Hinting">Hinting</a></dt><dd>Specifies the hinting strategy for memory size calculations.</dd><dt><a class="enum" href="enum.OutlineGlyphFormat.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlineGlyphFormat">Outline<wbr>Glyph<wbr>Format</a></dt><dd>Source format for an outline glyph.</dd><dt><a class="enum" href="enum.SmoothMode.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::SmoothMode">Smooth<wbr>Mode</a></dt><dd>Mode selector for a smooth hinting target.</dd><dt><a class="enum" href="enum.Target.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::Target">Target</a></dt><dd>Defines the target settings for hinting.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">Outline<wbr>Pen</a></dt><dd>Interface for accepting a sequence of path commands.</dd></dl></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Types for collecting the output when drawing a glyph outline."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../" data-static-root-path="../../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module pen</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><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></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>outline</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../../index.html">program</a>::<wbr><a href="../../../../../index.html">graphics</a>::<wbr><a href="../../../../index.html">text</a>::<wbr><a href="../../../index.html">cosmic_text</a>::<wbr><a href="../../index.html">skrifa</a>::<wbr><a href="../index.html">outline</a></div><h1>Module <span>pen</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Types for collecting the output when drawing a glyph outline.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ControlBoundsPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::ControlBoundsPen">Control<wbr>Bounds<wbr>Pen</a></dt><dd>Pen that generates the control bounds of a glyph outline.</dd><dt><a class="struct" href="struct.NullPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::NullPen">NullPen</a></dt><dd>Pen that drops all drawing output into the ether.</dd><dt><a class="struct" href="struct.SvgPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::SvgPen">SvgPen</a></dt><dd>Pen that generates SVG style path data.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.PathElement.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::PathElement">Path<wbr>Element</a></dt><dd>Single element of a path.</dd><dt><a class="enum" href="enum.PathStyle.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::PathStyle">Path<wbr>Style</a></dt><dd>Style for path conversion.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::OutlinePen">Outline<wbr>Pen</a></dt><dd>Interface for accepting a sequence of path commands.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["PathElement","PathStyle"],"struct":["ControlBoundsPen","NullPen","SvgPen"],"trait":["OutlinePen"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,24 @@
|
|||
<!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="Interface for accepting a sequence of path commands."><title>OutlinePen in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../" data-static-root-path="../../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../static.files/noscript-32bb7600.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 trait"><!--[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="../../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Outline<wbr>Pen</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.close" title="close">close</a></li><li><a href="#tymethod.curve_to" title="curve_to">curve_to</a></li><li><a href="#tymethod.line_to" title="line_to">line_to</a></li><li><a href="#tymethod.move_to" title="move_to">move_to</a></li><li><a href="#tymethod.quad_to" title="quad_to">quad_to</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>outline::<wbr>pen</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../../index.html">program</a>::<wbr><a href="../../../../../index.html">graphics</a>::<wbr><a href="../../../../index.html">text</a>::<wbr><a href="../../../index.html">cosmic_text</a>::<wbr><a href="../../index.html">skrifa</a>::<wbr><a href="../index.html">outline</a>::<wbr><a href="index.html">pen</a></div><h1>Trait <span class="trait">OutlinePen</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait OutlinePen {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.move_to" class="fn">move_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.line_to" class="fn">line_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.quad_to" class="fn">quad_to</a>(&mut self, cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.curve_to" class="fn">curve_to</a>(
|
||||
&mut self,
|
||||
cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
cx1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
cy1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.close" class="fn">close</a>(&mut self);
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Interface for accepting a sequence of path commands.</p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.move_to" class="method"><h4 class="code-header">fn <a href="#tymethod.move_to" class="fn">move_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a command to begin a new subpath at (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.line_to" class="fn">line_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a line segment from the current point to (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.quad_to" class="method"><h4 class="code-header">fn <a href="#tymethod.quad_to" class="fn">quad_to</a>(&mut self, cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a quadratic bezier segment from the current point with a control
|
||||
point at (cx0, cy0) and ending at (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.curve_to" class="method"><h4 class="code-header">fn <a href="#tymethod.curve_to" class="fn">curve_to</a>(&mut self, cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cx1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a cubic bezier segment from the current point with control
|
||||
points at (cx0, cy0) and (cx1, cy1) and ending at (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.close" class="method"><h4 class="code-header">fn <a href="#tymethod.close" class="fn">close</a>(&mut self)</h4></section></summary><div class="docblock"><p>Emit a command to close the current subpath.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-OutlinePen-for-Vec%3CPathElement%3E" class="impl"><a href="#impl-OutlinePen-for-Vec%3CPathElement%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="../../../../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="enum" href="enum.PathElement.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::PathElement">PathElement</a>></h3></section><section id="impl-OutlinePen-for-ControlBoundsPen" class="impl"><a href="#impl-OutlinePen-for-ControlBoundsPen" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="struct.ControlBoundsPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::ControlBoundsPen">ControlBoundsPen</a></h3></section><section id="impl-OutlinePen-for-NullPen" class="impl"><a href="#impl-OutlinePen-for-NullPen" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="struct.NullPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::NullPen">NullPen</a></h3></section><section id="impl-OutlinePen-for-SvgPen" class="impl"><a href="#impl-OutlinePen-for-SvgPen" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="struct.SvgPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::SvgPen">SvgPen</a></h3></section></div><script src="../../../../../../../../../../trait.impl/skrifa/outline/pen/trait.OutlinePen.js" data-ignore-extern-crates="alloc,skrifa" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["DrawError","Engine","Hinting","OutlineGlyphFormat","SmoothMode","Target"],"mod":["error","pen"],"struct":["AdjustedMetrics","DrawSettings","GlyphStyles","HintingInstance","HintingOptions","OutlineGlyph","OutlineGlyphCollection"],"trait":["OutlinePen"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,24 @@
|
|||
<!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="Interface for accepting a sequence of path commands."><title>OutlinePen in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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 trait"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Outline<wbr>Pen</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.close" title="close">close</a></li><li><a href="#tymethod.curve_to" title="curve_to">curve_to</a></li><li><a href="#tymethod.line_to" title="line_to">line_to</a></li><li><a href="#tymethod.move_to" title="move_to">move_to</a></li><li><a href="#tymethod.quad_to" title="quad_to">quad_to</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>outline</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a>::<wbr><a href="index.html">outline</a></div><h1>Trait <span class="trait">OutlinePen</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait OutlinePen {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.move_to" class="fn">move_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.line_to" class="fn">line_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.quad_to" class="fn">quad_to</a>(&mut self, cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.curve_to" class="fn">curve_to</a>(
|
||||
&mut self,
|
||||
cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
cx1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
cy1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.close" class="fn">close</a>(&mut self);
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Interface for accepting a sequence of path commands.</p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.move_to" class="method"><h4 class="code-header">fn <a href="#tymethod.move_to" class="fn">move_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a command to begin a new subpath at (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.line_to" class="fn">line_to</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a line segment from the current point to (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.quad_to" class="method"><h4 class="code-header">fn <a href="#tymethod.quad_to" class="fn">quad_to</a>(&mut self, cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a quadratic bezier segment from the current point with a control
|
||||
point at (cx0, cy0) and ending at (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.curve_to" class="method"><h4 class="code-header">fn <a href="#tymethod.curve_to" class="fn">curve_to</a>(&mut self, cx0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cx1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, cy1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Emit a cubic bezier segment from the current point with control
|
||||
points at (cx0, cy0) and (cx1, cy1) and ending at (x, y).</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.close" class="method"><h4 class="code-header">fn <a href="#tymethod.close" class="fn">close</a>(&mut self)</h4></section></summary><div class="docblock"><p>Emit a command to close the current subpath.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-OutlinePen-for-Vec%3CPathElement%3E" class="impl"><a href="#impl-OutlinePen-for-Vec%3CPathElement%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="../../../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="enum" href="pen/enum.PathElement.html" title="enum cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::PathElement">PathElement</a>></h3></section><section id="impl-OutlinePen-for-ControlBoundsPen" class="impl"><a href="#impl-OutlinePen-for-ControlBoundsPen" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="pen/struct.ControlBoundsPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::ControlBoundsPen">ControlBoundsPen</a></h3></section><section id="impl-OutlinePen-for-NullPen" class="impl"><a href="#impl-OutlinePen-for-NullPen" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="pen/struct.NullPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::NullPen">NullPen</a></h3></section><section id="impl-OutlinePen-for-SvgPen" class="impl"><a href="#impl-OutlinePen-for-SvgPen" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.OutlinePen.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::OutlinePen">OutlinePen</a> for <a class="struct" href="pen/struct.SvgPen.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::outline::pen::SvgPen">SvgPen</a></h3></section></div><script src="../../../../../../../../../trait.impl/skrifa/outline/pen/trait.OutlinePen.js" data-ignore-extern-crates="alloc,skrifa" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Useful collection of common types suitable for glob importing."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module prelude</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a></div><h1>Module <span>prelude</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Useful collection of common types suitable for glob importing.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.FontRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::FontRef">FontRef</a></dt><dd>Reference to an in-memory font.</dd><dt><a class="struct" href="struct.GlyphId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::GlyphId">GlyphId</a></dt><dd>A 32-bit glyph identifier.</dd><dt><a class="struct" href="struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::LocationRef">Location<wbr>Ref</a></dt><dd>Reference to an ordered sequence of normalized variation coordinates.</dd><dt><a class="struct" href="struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::Size">Size</a></dt><dd>Font size in pixels per em units.</dd><dt><a class="struct" href="struct.Tag.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::Tag">Tag</a></dt><dd>An OpenType tag.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.MetadataProvider.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::MetadataProvider">Metadata<wbr>Provider</a></dt><dd>Interface for types that can provide font metadata.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.NormalizedCoord.html" title="type cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude::NormalizedCoord">Normalized<wbr>Coord</a></dt><dd>Type for a normalized variation coordinate.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["FontRef","GlyphId","LocationRef","Size","Tag"],"trait":["MetadataProvider"],"type":["NormalizedCoord"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,47 @@
|
|||
<!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="Interface for types that can provide font metadata."><title>MetadataProvider in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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 trait"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Metadata<wbr>Provider</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.attributes" title="attributes">attributes</a></li><li><a href="#tymethod.axes" title="axes">axes</a></li><li><a href="#tymethod.bitmap_strikes" title="bitmap_strikes">bitmap_strikes</a></li><li><a href="#tymethod.charmap" title="charmap">charmap</a></li><li><a href="#tymethod.color_glyphs" title="color_glyphs">color_glyphs</a></li><li><a href="#tymethod.color_palettes" title="color_palettes">color_palettes</a></li><li><a href="#tymethod.glyph_metrics" title="glyph_metrics">glyph_metrics</a></li><li><a href="#tymethod.glyph_names" title="glyph_names">glyph_names</a></li><li><a href="#tymethod.localized_strings" title="localized_strings">localized_strings</a></li><li><a href="#tymethod.metrics" title="metrics">metrics</a></li><li><a href="#tymethod.named_instances" title="named_instances">named_instances</a></li><li><a href="#tymethod.outline_glyphs" title="outline_glyphs">outline_glyphs</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>prelude</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a>::<wbr><a href="index.html">prelude</a></div><h1>Trait <span class="trait">MetadataProvider</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait MetadataProvider<'a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.attributes" class="fn">attributes</a>(&self) -> <a class="struct" href="../attribute/struct.Attributes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute::Attributes">Attributes</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.axes" class="fn">axes</a>(&self) -> <a class="struct" href="../struct.AxisCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::AxisCollection">AxisCollection</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.named_instances" class="fn">named_instances</a>(&self) -> <a class="struct" href="../struct.NamedInstanceCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::NamedInstanceCollection">NamedInstanceCollection</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.localized_strings" class="fn">localized_strings</a>(&self, id: <a class="struct" href="../string/struct.StringId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::StringId">NameId</a>) -> <a class="struct" href="../string/struct.LocalizedStrings.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::LocalizedStrings">LocalizedStrings</a><'a> <a href="#" class="tooltip" data-notable-ty="LocalizedStrings<'a>">ⓘ</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.glyph_names" class="fn">glyph_names</a>(&self) -> <a class="struct" href="../struct.GlyphNames.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphNames">GlyphNames</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.metrics" class="fn">metrics</a>(
|
||||
&self,
|
||||
size: <a class="struct" href="../instance/struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Size">Size</a>,
|
||||
location: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../instance/struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef">LocationRef</a><'a>>,
|
||||
) -> <a class="struct" href="../metrics/struct.Metrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::Metrics">Metrics</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.glyph_metrics" class="fn">glyph_metrics</a>(
|
||||
&self,
|
||||
size: <a class="struct" href="../instance/struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Size">Size</a>,
|
||||
location: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../instance/struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef">LocationRef</a><'a>>,
|
||||
) -> <a class="struct" href="../metrics/struct.GlyphMetrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::GlyphMetrics">GlyphMetrics</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.charmap" class="fn">charmap</a>(&self) -> <a class="struct" href="../charmap/struct.Charmap.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::Charmap">Charmap</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.outline_glyphs" class="fn">outline_glyphs</a>(&self) -> <a class="struct" href="../struct.OutlineGlyphCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::OutlineGlyphCollection">OutlineGlyphCollection</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.color_glyphs" class="fn">color_glyphs</a>(&self) -> <a class="struct" href="../color/struct.ColorGlyphCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorGlyphCollection">ColorGlyphCollection</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.color_palettes" class="fn">color_palettes</a>(&self) -> <a class="struct" href="../color/struct.ColorPalettes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPalettes">ColorPalettes</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.bitmap_strikes" class="fn">bitmap_strikes</a>(&self) -> <a class="struct" href="../bitmap/struct.BitmapStrikes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapStrikes">BitmapStrikes</a><'a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Interface for types that can provide font metadata.</p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.attributes" class="method"><h4 class="code-header">fn <a href="#tymethod.attributes" class="fn">attributes</a>(&self) -> <a class="struct" href="../attribute/struct.Attributes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::attribute::Attributes">Attributes</a></h4></section></summary><div class="docblock"><p>Returns the primary attributes for font classification– stretch,
|
||||
style and weight.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.axes" class="method"><h4 class="code-header">fn <a href="#tymethod.axes" class="fn">axes</a>(&self) -> <a class="struct" href="../struct.AxisCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::AxisCollection">AxisCollection</a><'a></h4></section></summary><div class="docblock"><p>Returns the collection of variation axes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.named_instances" class="method"><h4 class="code-header">fn <a href="#tymethod.named_instances" class="fn">named_instances</a>(&self) -> <a class="struct" href="../struct.NamedInstanceCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::NamedInstanceCollection">NamedInstanceCollection</a><'a></h4></section></summary><div class="docblock"><p>Returns the collection of named variation instances.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.localized_strings" class="method"><h4 class="code-header">fn <a href="#tymethod.localized_strings" class="fn">localized_strings</a>(&self, id: <a class="struct" href="../string/struct.StringId.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::StringId">NameId</a>) -> <a class="struct" href="../string/struct.LocalizedStrings.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::LocalizedStrings">LocalizedStrings</a><'a> <a href="#" class="tooltip" data-notable-ty="LocalizedStrings<'a>">ⓘ</a></h4></section></summary><div class="docblock"><p>Returns an iterator over the collection of localized strings for the
|
||||
given informational string identifier.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.glyph_names" class="method"><h4 class="code-header">fn <a href="#tymethod.glyph_names" class="fn">glyph_names</a>(&self) -> <a class="struct" href="../struct.GlyphNames.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::GlyphNames">GlyphNames</a><'a></h4></section></summary><div class="docblock"><p>Returns the mapping from glyph identifiers to names.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.metrics" class="method"><h4 class="code-header">fn <a href="#tymethod.metrics" class="fn">metrics</a>(&self, size: <a class="struct" href="../instance/struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Size">Size</a>, location: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../instance/struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef">LocationRef</a><'a>>) -> <a class="struct" href="../metrics/struct.Metrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::Metrics">Metrics</a></h4></section></summary><div class="docblock"><p>Returns the global font metrics for the specified size and location in
|
||||
normalized variation space.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.glyph_metrics" class="method"><h4 class="code-header">fn <a href="#tymethod.glyph_metrics" class="fn">glyph_metrics</a>(
|
||||
&self,
|
||||
size: <a class="struct" href="../instance/struct.Size.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::Size">Size</a>,
|
||||
location: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../instance/struct.LocationRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::LocationRef">LocationRef</a><'a>>,
|
||||
) -> <a class="struct" href="../metrics/struct.GlyphMetrics.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::metrics::GlyphMetrics">GlyphMetrics</a><'a></h4></section></summary><div class="docblock"><p>Returns the glyph specific metrics for the specified size and location
|
||||
in normalized variation space.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.charmap" class="method"><h4 class="code-header">fn <a href="#tymethod.charmap" class="fn">charmap</a>(&self) -> <a class="struct" href="../charmap/struct.Charmap.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::charmap::Charmap">Charmap</a><'a></h4></section></summary><div class="docblock"><p>Returns the character to nominal glyph identifier mapping.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.outline_glyphs" class="method"><h4 class="code-header">fn <a href="#tymethod.outline_glyphs" class="fn">outline_glyphs</a>(&self) -> <a class="struct" href="../struct.OutlineGlyphCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::OutlineGlyphCollection">OutlineGlyphCollection</a><'a></h4></section></summary><div class="docblock"><p>Returns the collection of scalable glyph outlines.</p>
|
||||
<p>If the font contains multiple outline sources, this method prioritizes
|
||||
<code>glyf</code>, <code>CFF2</code> and <code>CFF</code> in that order. To select a specific outline
|
||||
source, use the <a href="../struct.OutlineGlyphCollection.html#method.with_format" title="associated function cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::OutlineGlyphCollection::with_format"><code>OutlineGlyphCollection::with_format</code></a> method.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.color_glyphs" class="method"><h4 class="code-header">fn <a href="#tymethod.color_glyphs" class="fn">color_glyphs</a>(&self) -> <a class="struct" href="../color/struct.ColorGlyphCollection.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorGlyphCollection">ColorGlyphCollection</a><'a></h4></section></summary><div class="docblock"><p>Returns a collection of paintable color glyphs.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.color_palettes" class="method"><h4 class="code-header">fn <a href="#tymethod.color_palettes" class="fn">color_palettes</a>(&self) -> <a class="struct" href="../color/struct.ColorPalettes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::color::ColorPalettes">ColorPalettes</a><'a></h4></section></summary><div class="docblock"><p>Returns a collection of color palettes for color glyphs.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.bitmap_strikes" class="method"><h4 class="code-header">fn <a href="#tymethod.bitmap_strikes" class="fn">bitmap_strikes</a>(&self) -> <a class="struct" href="../bitmap/struct.BitmapStrikes.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::bitmap::BitmapStrikes">BitmapStrikes</a><'a></h4></section></summary><div class="docblock"><p>Returns a collection of bitmap strikes.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-MetadataProvider%3C'a%3E-for-FontRef%3C'a%3E" class="impl"><a href="#impl-MetadataProvider%3C'a%3E-for-FontRef%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="../trait.MetadataProvider.html" title="trait cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::MetadataProvider">MetadataProvider</a><'a> for <a class="struct" href="../struct.FontRef.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::FontRef">FontRef</a><'a></h3></section></div><script src="../../../../../../../../../trait.impl/skrifa/provider/trait.MetadataProvider.js" data-ignore-extern-crates="read_fonts" async></script><script type="text/json" id="notable-traits-data">{"LocalizedStrings<'a>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../string/struct.LocalizedStrings.html\" title=\"struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::LocalizedStrings\">LocalizedStrings</a><'a></code></h3><pre><code><div class=\"where\">impl<'a> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../string/struct.LocalizedStrings.html\" title=\"struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::LocalizedStrings\">LocalizedStrings</a><'a></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"struct\" href=\"../string/struct.LocalizedString.html\" title=\"struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::string::LocalizedString\">LocalizedString</a><'a>;</div>"}</script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Type for a normalized variation coordinate."><title>NormalizedCoord in cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::prelude - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../" data-static-root-path="../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../static.files/noscript-32bb7600.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 type"><!--[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="../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Normalized<wbr>Coord</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>prelude</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../index.html">program</a>::<wbr><a href="../../../../index.html">graphics</a>::<wbr><a href="../../../index.html">text</a>::<wbr><a href="../../index.html">cosmic_text</a>::<wbr><a href="../index.html">skrifa</a>::<wbr><a href="index.html">prelude</a></div><h1>Type Alias <span class="type">NormalizedCoord</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type NormalizedCoord = <a class="struct" href="../raw/types/struct.F2Dot14.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::types::F2Dot14">F2Dot14</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Type for a normalized variation coordinate.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct NormalizedCoord(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../../../../../../type.impl/cosmic/iced/daemon/program/graphics/text/cosmic_text/skrifa/raw/types/struct.F2Dot14.js" data-self-path="cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::instance::NormalizedCoord" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Custom array types"><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::array - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../" data-static-root-path="../../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module array</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>raw</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../../index.html">program</a>::<wbr><a href="../../../../../index.html">graphics</a>::<wbr><a href="../../../../index.html">text</a>::<wbr><a href="../../../index.html">cosmic_text</a>::<wbr><a href="../../index.html">skrifa</a>::<wbr><a href="../index.html">raw</a></div><h1>Module <span>array</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Custom array types</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ComputedArray.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::array::ComputedArray">Computed<wbr>Array</a></dt><dd>An array whose items size is not known at compile time.</dd><dt><a class="struct" href="struct.VarLenArray.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::array::VarLenArray">VarLen<wbr>Array</a></dt><dd>An array of items of non-uniform length.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["ComputedArray","VarLenArray"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Data structures useful for font work."><title>cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::collections - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../" data-static-root-path="../../../../../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../static.files/noscript-32bb7600.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"><!--[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="../../../../../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module collections</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>text::<wbr>cosmic_<wbr>text::<wbr>skrifa::<wbr>raw</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../../../../../index.html">cosmic</a>::<wbr><a href="../../../../../../../../index.html">iced</a>::<wbr><a href="../../../../../../../index.html">daemon</a>::<wbr><a href="../../../../../../index.html">program</a>::<wbr><a href="../../../../../index.html">graphics</a>::<wbr><a href="../../../../index.html">text</a>::<wbr><a href="../../../index.html">cosmic_text</a>::<wbr><a href="../../index.html">skrifa</a>::<wbr><a href="../index.html">raw</a></div><h1>Module <span>collections</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Data structures useful for font work.</p>
|
||||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="int_set/index.html" title="mod cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::collections::int_set">int_set</a></dt><dd>A fast, efficient, sparse, & ordered unsigned integer (u32) bit set which is invertible.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.IntSet.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::collections::IntSet">IntSet</a></dt><dd>A fast & efficient invertible ordered set for small (up to 32-bit) unsigned integer types.</dd><dt><a class="struct" href="struct.RangeSet.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::collections::RangeSet">Range<wbr>Set</a></dt><dd>A set of disjoint ranges over numeric types.</dd><dt><a class="struct" href="struct.U32Set.html" title="struct cosmic::iced::daemon::program::graphics::text::cosmic_text::skrifa::raw::collections::U32Set">U32Set</a></dt><dd>A fast, efficient, sparse, & ordered <code>u32</code> set.</dd></dl></section></div></main></body></html>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue