font-store: doc links to InstalledFamily

This commit is contained in:
aiongg
2026-11-25 13:53:25 +00:00
parent 3249d50148
commit 6f7a1f8dad
+2 -2
View File
@@ -103,7 +103,7 @@ impl FontStore {
/// Whether the user keeps store fonts in Craft apps only by default. Off by default: the font
/// manager then copies each family it installs into the OS user font folder
/// ([`FontStore::make_available`]), so other apps can use it, unless the user chose otherwise
/// for that family ([`InstalledFamily::available_to_all`]).
/// for that family ([`crate::InstalledFamily::available_to_all`]).
pub fn craft_apps_only(&self) -> bool {
self.settings().craft_apps_only
}
@@ -117,7 +117,7 @@ impl FontStore {
self.change_settings(|s| s.craft_apps_only = on)
}
/// Records the user's choice for the installed family ([`InstalledFamily::available_to_all`]).
/// Records the user's choice for the installed family ([`crate::InstalledFamily::available_to_all`]).
/// It only records it: the caller copies or withdraws the family. [`Error::NotAllowed`] for an
/// agent, [`Error::NotInstalled`] for a family that isn't installed.
pub fn set_available_to_all_choice(&self, source: &str, name: &str, on: bool) -> Result<(), Error> {