Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Roboto font fallback for arial (#1898)

Oleg Isonencda2c050200f
diff --git a/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts b/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts
index 3dbc3bb28d..891cca3c50 100644
--- a/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts
+++ b/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts
@@ -197,7 +197,7 @@ test("compute inherited styles", () => {
"instanceId": "1",
"value": {
"type": "keyword",
- "value": "Arial, sans-serif",
+ "value": "Arial, Roboto, sans-serif",
},
},
"fontSize": {
diff --git a/packages/fonts/src/constants.ts b/packages/fonts/src/constants.ts
index 595a6be30a..3b851acd30 100644
--- a/packages/fonts/src/constants.ts
+++ b/packages/fonts/src/constants.ts
@@ -1,7 +1,7 @@
import type { FontFormat } from "./schema";
export const SYSTEM_FONTS = new Map([
- ["Arial", ["sans-serif"]],
+ ["Arial", ["Roboto", "sans-serif"]],
["Times New Roman", ["sans"]],
["Courier New", ["monospace"]],
["system-ui", []],
diff --git a/packages/react-sdk/src/css/normalize.ts b/packages/react-sdk/src/css/normalize.ts
index 46603b1b7d..221c802885 100644
--- a/packages/react-sdk/src/css/normalize.ts
+++ b/packages/react-sdk/src/css/normalize.ts
@@ -124,7 +124,7 @@ export const body = [
property: "fontFamily",
value: {
type: "keyword",
- value: "Arial, sans-serif",
+ value: "Arial, Roboto, sans-serif",
},
},
{