1
0
Fork 0

Fix NOTO_SANS_BOLD font definition

This is probably a bug in cosmic-text.
This commit is contained in:
Robbert van der Helm 2023-01-17 20:27:02 +01:00
parent 9206b8489d
commit 7e7fea37ee

View file

@ -26,7 +26,9 @@ pub const NOTO_SANS_LIGHT: &str = "Noto Sans Light";
pub const NOTO_SANS_LIGHT_ITALIC: &str = "Noto Sans Light Italic"; pub const NOTO_SANS_LIGHT_ITALIC: &str = "Noto Sans Light Italic";
/// The font name for Noto Sans Bold, needs to be registered using [`register_noto_sans_bold()`] /// The font name for Noto Sans Bold, needs to be registered using [`register_noto_sans_bold()`]
/// first. /// first.
pub const NOTO_SANS_BOLD: &str = "Noto Sans Bold"; // NOTE: I'd expect this to be an alias for Noto Sans Regular but this is what cosmic-text thinks
// the font is called
pub const NOTO_SANS_BOLD: &str = "Noto Sans";
/// The font name for Noto Sans Bold Italic, needs to be registered using /// The font name for Noto Sans Bold Italic, needs to be registered using
/// [`register_noto_sans_bold_italic()`] first. /// [`register_noto_sans_bold_italic()`] first.
pub const NOTO_SANS_BOLD_ITALIC: &str = "Noto Sans Bold Italic"; pub const NOTO_SANS_BOLD_ITALIC: &str = "Noto Sans Bold Italic";