From 33067e61e3f5a914eb9ca318a37e1bf04129cb3e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 3 Jan 2025 21:08:30 +0200 Subject: [PATCH] feat(client): add more monospace system fonts --- src/routes/api/fonts.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/routes/api/fonts.ts b/src/routes/api/fonts.ts index 9e2b5b621..d62ecb225 100644 --- a/src/routes/api/fonts.ts +++ b/src/routes/api/fonts.ts @@ -3,8 +3,8 @@ import optionService from "../../services/options.js"; import { OptionMap } from '../../services/options_interface.js'; const SYSTEM_SANS_SERIF = [ - "-apple-system", - "BlinkMacSystemFont", + "system-ui", + "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Cantarell", "Ubuntu", @@ -12,11 +12,17 @@ const SYSTEM_SANS_SERIF = [ "Helvetica", "Arial", "sans-serif", - "Apple Color Emoji", - "Segoe UI Emoji" + "Apple Color Emoji", "Segoe UI Emoji" ].join(","); const SYSTEM_MONOSPACE = [ + "ui-monospace", + "SFMono-Regular", "SF Mono", + "Consolas", + "Source Code Pro", + "Ubuntu Mono", + "Menlo", + "Liberation Mono", "monospace" ].join(",");