16 lines
12 KiB
HTML
16 lines
12 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This crate provide parsing fontconfig file but not yet complete all features"><title>fontconfig_parser - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="fontconfig_parser" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../fontconfig_parser/index.html">fontconfig_<wbr>parser</a><span class="version">0.5.7</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#structs">Crate 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="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>fontconfig_parser</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/fontconfig_parser/lib.rs.html#1-42">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This crate provide parsing fontconfig file but not yet complete all features</p>
|
||
<p>see <a href="https://www.freedesktop.org/software/fontconfig/fontconfig-user.html">https://www.freedesktop.org/software/fontconfig/fontconfig-user.html</a> for more detail infomation of fontconfig file</p>
|
||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>fontconfig_parser::FontConfig;
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>config = FontConfig::default();
|
||
|
||
config.merge_config(<span class="string">"/etc/fonts/fonts.conf"</span>).unwrap();</code></pre></div>
|
||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Alias.html" title="struct fontconfig_parser::Alias">Alias</a></div><div class="desc docblock-short">Alias elements provide a shorthand notation for the set of common match operations needed to substitute one font family for another. They contain a <family> element followed by optional <prefer>, <accept> and <default> elements. Fonts matching the <family> element are edited to prepend the list of <prefer>ed families before the matching <family>, append the <accept>able families after the matching <family> and append the <default> families to the end of the family list.</div></li><li><div class="item-name"><a class="struct" href="struct.CacheDir.html" title="struct fontconfig_parser::CacheDir">Cache<wbr>Dir</a></div></li><li><div class="item-name"><a class="struct" href="struct.Config.html" title="struct fontconfig_parser::Config">Config</a></div></li><li><div class="item-name"><a class="struct" href="struct.Dir.html" title="struct fontconfig_parser::Dir">Dir</a></div></li><li><div class="item-name"><a class="struct" href="struct.DirData.html" title="struct fontconfig_parser::DirData">DirData</a></div><div class="desc docblock-short">Final dir data</div></li><li><div class="item-name"><a class="struct" href="struct.Edit.html" title="struct fontconfig_parser::Edit">Edit</a></div></li><li><div class="item-name"><a class="struct" href="struct.FontConfig.html" title="struct fontconfig_parser::FontConfig">Font<wbr>Config</a></div></li><li><div class="item-name"><a class="struct" href="struct.Include.html" title="struct fontconfig_parser::Include">Include</a></div></li><li><div class="item-name"><a class="struct" href="struct.Match.html" title="struct fontconfig_parser::Match">Match</a></div></li><li><div class="item-name"><a class="struct" href="struct.RemapDir.html" title="struct fontconfig_parser::RemapDir">Remap<wbr>Dir</a></div><div class="desc docblock-short">This element contains a directory name where will be mapped as the path ‘as-path’ in cached information. This is useful if the directory name is an alias (via a bind mount or symlink) to another directory in the system for which cached font information is likely to exist.
|
||
‘salt’ property affects to determine cache filename as same as <a href="struct.Dir.html" title="struct fontconfig_parser::Dir"><code>Dir</code></a> element.</div></li><li><div class="item-name"><a class="struct" href="struct.RemapDirData.html" title="struct fontconfig_parser::RemapDirData">Remap<wbr>DirData</a></div><div class="desc docblock-short">Final remap-dirs data</div></li><li><div class="item-name"><a class="struct" href="struct.SelectFont.html" title="struct fontconfig_parser::SelectFont">Select<wbr>Font</a></div></li><li><div class="item-name"><a class="struct" href="struct.Test.html" title="struct fontconfig_parser::Test">Test</a></div><div class="desc docblock-short">This element contains a single value which is compared with the target (‘pattern’, ‘font’, ‘scan’ or ‘default’) property “property” (substitute any of the property names seen above).
|
||
‘compare’ can be one of “eq”, “not_eq”, “less”, “less_eq”, “more”, “more_eq”, “contains” or “not_contains”.
|
||
‘qual’ may either be the default, “any”, in which case the match succeeds if any value associated with the property matches the test value,
|
||
or “all”, in which case all of the values associated with the property must match the test value. ‘ignore-blanks’ takes a boolean value.
|
||
if ‘ignore-blanks’ is set “true”, any blanks in the string will be ignored on its comparison. this takes effects only when compare=“eq” or compare=“not_eq”.
|
||
When used in a <match target="font"> element, the target= attribute in the <test> element selects between matching the original pattern or the font.
|
||
“default” selects whichever target the outer <match> element has selected.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.BinaryOp.html" title="enum fontconfig_parser::BinaryOp">Binary<wbr>Op</a></div></li><li><div class="item-name"><a class="enum" href="enum.ConfigPart.html" title="enum fontconfig_parser::ConfigPart">Config<wbr>Part</a></div></li><li><div class="item-name"><a class="enum" href="enum.Constant.html" title="enum fontconfig_parser::Constant">Constant</a></div></li><li><div class="item-name"><a class="enum" href="enum.DirPrefix.html" title="enum fontconfig_parser::DirPrefix">DirPrefix</a></div></li><li><div class="item-name"><a class="enum" href="enum.EditBinding.html" title="enum fontconfig_parser::EditBinding">Edit<wbr>Binding</a></div></li><li><div class="item-name"><a class="enum" href="enum.EditMode.html" title="enum fontconfig_parser::EditMode">Edit<wbr>Mode</a></div></li><li><div class="item-name"><a class="enum" href="enum.Error.html" title="enum fontconfig_parser::Error">Error</a></div></li><li><div class="item-name"><a class="enum" href="enum.Expression.html" title="enum fontconfig_parser::Expression">Expression</a></div></li><li><div class="item-name"><a class="enum" href="enum.FontMatch.html" title="enum fontconfig_parser::FontMatch">Font<wbr>Match</a></div></li><li><div class="item-name"><a class="enum" href="enum.IntOrRange.html" title="enum fontconfig_parser::IntOrRange">IntOr<wbr>Range</a></div></li><li><div class="item-name"><a class="enum" href="enum.ListOp.html" title="enum fontconfig_parser::ListOp">ListOp</a></div></li><li><div class="item-name"><a class="enum" href="enum.MatchTarget.html" title="enum fontconfig_parser::MatchTarget">Match<wbr>Target</a></div></li><li><div class="item-name"><a class="enum" href="enum.PrefixBehavior.html" title="enum fontconfig_parser::PrefixBehavior">Prefix<wbr>Behavior</a></div></li><li><div class="item-name"><a class="enum" href="enum.Property.html" title="enum fontconfig_parser::Property">Property</a></div></li><li><div class="item-name"><a class="enum" href="enum.PropertyKind.html" title="enum fontconfig_parser::PropertyKind">Property<wbr>Kind</a></div></li><li><div class="item-name"><a class="enum" href="enum.PropertyTarget.html" title="enum fontconfig_parser::PropertyTarget">Property<wbr>Target</a></div></li><li><div class="item-name"><a class="enum" href="enum.TernaryOp.html" title="enum fontconfig_parser::TernaryOp">Ternary<wbr>Op</a></div></li><li><div class="item-name"><a class="enum" href="enum.TestCompare.html" title="enum fontconfig_parser::TestCompare">Test<wbr>Compare</a></div></li><li><div class="item-name"><a class="enum" href="enum.TestQual.html" title="enum fontconfig_parser::TestQual">Test<wbr>Qual</a></div></li><li><div class="item-name"><a class="enum" href="enum.TestTarget.html" title="enum fontconfig_parser::TestTarget">Test<wbr>Target</a></div></li><li><div class="item-name"><a class="enum" href="enum.UnaryOp.html" title="enum fontconfig_parser::UnaryOp">UnaryOp</a></div></li><li><div class="item-name"><a class="enum" href="enum.Value.html" title="enum fontconfig_parser::Value">Value</a></div><div class="desc docblock-short">Runtime typed fontconfig value</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.parse_config_parts.html" title="fn fontconfig_parser::parse_config_parts">parse_<wbr>config_<wbr>parts</a></div><div class="desc docblock-short">Parse as raw config parts use this when you want custom handling config file</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.Bool.html" title="type fontconfig_parser::Bool">Bool</a></div></li><li><div class="item-name"><a class="type" href="type.CharSet.html" title="type fontconfig_parser::CharSet">CharSet</a></div></li><li><div class="item-name"><a class="type" href="type.Double.html" title="type fontconfig_parser::Double">Double</a></div></li><li><div class="item-name"><a class="type" href="type.Int.html" title="type fontconfig_parser::Int">Int</a></div></li><li><div class="item-name"><a class="type" href="type.Result.html" title="type fontconfig_parser::Result">Result</a></div></li></ul></section></div></main></body></html> |