rustdoc: Fix broken link to FontFace in components/gfx (#31745)

* rustdoc: Fix fontface broken link error

* Correct link to `Font`

* Reduce the diff a bit

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Oluwatobi Sofela 2024-03-19 14:06:16 +01:00 committed by GitHub
parent 36d9ab8b28
commit d3b03a20b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ impl FontTemplateData {
self.font_data.read().unwrap().as_ref().cloned() self.font_data.read().unwrap().as_ref().cloned()
} }
/// Get a [`FontFace`] for this font if it is a local font or return `None` if it's a /// Get a [`Font`] for this font if it is a local font or return `None` if it's a
/// web font. /// web font.
pub fn get_font(&self) -> Option<Font> { pub fn get_font(&self) -> Option<Font> {
let font_descriptor = match &self.identifier { let font_descriptor = match &self.identifier {