Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T04:45:24.675Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

font_fallbacks.rs

22 lines · 635 B · rust
1use std::sync::Arc;
2
3use schemars::JsonSchema;
4use serde::{Deserialize, Serialize};
5
6/// The fallback fonts that can be configured for a given font.
7/// Fallback fonts family names are stored here.
8#[derive(Default, Clone, Eq, PartialEq, Hash, Debug, Deserialize, Serialize, JsonSchema)]
9pub struct FontFallbacks(pub Arc<Vec<String>>);
10
11impl FontFallbacks {
12    /// Get the fallback fonts family names
13    pub fn fallback_list(&self) -> &[String] {
14        self.0.as_slice()
15    }
16
17    /// Create a font fallback from a list of strings
18    pub fn from_fonts(fonts: Vec<String>) -> Self {
19        FontFallbacks(Arc::new(fonts))
20    }
21}
22
Served at tenant.openagents/omega Member data and write actions are omitted.