diff --git a/HACKING.md b/HACKING.md index 89be48fcf61fa48e95665bb06f01b3222ffadaae..c0af3615be20a92475097c86e09198ea21c110d9 100644 --- a/HACKING.md +++ b/HACKING.md @@ -642,9 +642,14 @@ to [`doc/libadwaita.toml.in`](./doc/libadwaita.toml.in). #### Regenerating Screenshots -Make sure your system has Cantarell and Noto Sans Mono fonts installed on your +Make sure your system has Adwaita Sans and Adwaita Mono fonts installed on your system, otherwise the screenshots may have wrong fonts. +Make sure your system document and monospace fonts are set to: + +- `org.gnome.desktop.interface` `document-font-name`: `Adwaita Sans 11` +- `org.gnome.desktop.interface` `monospace-font-name`: `Adwaita Mono 11` + To regenerate all screenshots, run: ```c diff --git a/doc/css-variables.md b/doc/css-variables.md index bb1c58d719ecd76a3a6908687c54561bc6b15044..54ced9d7b29c8895f8c7fed6d603e436f5319d75 100644 --- a/doc/css-variables.md +++ b/doc/css-variables.md @@ -995,8 +995,8 @@ Document font should be used in articles, messages and other content. Name | Example Value -------------------------------- | ------------- ---document-font-family | Sans ---document-font-size | 10pt +--document-font-family | Adwaita Sans +--document-font-size | 11pt ## Monospace Font @@ -1007,8 +1007,8 @@ style class. Name | Example Value -------------------------------- | ------------- ---monospace-font-family | Monospace ---monospace-font-size | 10pt +--monospace-font-family | Adwaita Mono +--monospace-font-size | 11pt # Helpers diff --git a/src/adw-style-manager.c b/src/adw-style-manager.c index 3038460f1c965a327048a040a098a7e31648409d..53c2872371c1e6a9a4d13d6e77116fe5e886997f 100644 --- a/src/adw-style-manager.c +++ b/src/adw-style-manager.c @@ -785,7 +785,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass) * The system document font. * * The font is in the same format as [property@Gtk.Settings:gtk-font-name], - * e.g. "Sans 10". + * e.g. "Adwaita Sans 11". * * Since: 1.7 */ @@ -800,7 +800,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass) * The system monospace font. * * The font is in the same format as [property@Gtk.Settings:gtk-font-name], - * e.g. "Monospace 10". + * e.g. "Adwaita Mono 11". * * Since: 1.7 */ @@ -1135,7 +1135,7 @@ adw_style_manager_get_accent_color_rgba (AdwStyleManager *self) * Gets the system document font. * * The font is in the same format as [property@Gtk.Settings:gtk-font-name], - * e.g. "Sans 10". + * e.g. "Adwaita Sans 11". * * Returns: the system document font * @@ -1159,7 +1159,7 @@ adw_style_manager_get_document_font_name (AdwStyleManager *self) * Gets the system monospace font. * * The font is in the same format as [property@Gtk.Settings:gtk-font-name], - * e.g. "Monospace 10". + * e.g. "Adwaita Mono 11". * * Returns: the system monospace font *