diff --git a/e2e/frame.json b/e2e/frame.json index 9eb75336..d3502638 100644 --- a/e2e/frame.json +++ b/e2e/frame.json @@ -18,5 +18,6 @@ "sentry": { "frame_dsn": null } - } + }, + "assetsPath": "../frameos/assets/copied" } \ No newline at end of file diff --git a/e2e/generated/scene_renderTextPosition.nim b/e2e/generated/scene_renderTextPosition.nim index f54c1c73..d3fc949c 100644 --- a/e2e/generated/scene_renderTextPosition.nim +++ b/e2e/generated/scene_renderTextPosition.nim @@ -204,6 +204,7 @@ proc init*(sceneId: SceneId, frameConfig: FrameConfig, logger: Logger, persisted text: "bananas", fontSize: 24.0, borderWidth: 2, + font: "ComicRelief.ttf", inputImage: none(Image), richText: "disabled", position: "center", @@ -248,6 +249,7 @@ proc init*(sceneId: SceneId, frameConfig: FrameConfig, logger: Logger, persisted text: "ananas", fontSize: 24.0, borderWidth: 0, + font: "FiraGO-ExtraBold.ttf", inputImage: none(Image), richText: "disabled", position: "center", @@ -294,6 +296,7 @@ proc init*(sceneId: SceneId, frameConfig: FrameConfig, logger: Logger, persisted text: "bananas", fontSize: 24.0, borderWidth: 2, + font: "FiraGO-ExtraBold.ttf", inputImage: none(Image), richText: "disabled", position: "center", diff --git a/e2e/generated/scene_renderTextRich.nim b/e2e/generated/scene_renderTextRich.nim index b63630f1..784c7126 100644 --- a/e2e/generated/scene_renderTextRich.nim +++ b/e2e/generated/scene_renderTextRich.nim @@ -81,7 +81,7 @@ proc init*(sceneId: SceneId, frameConfig: FrameConfig, logger: Logger, persisted var context = ExecutionContext(scene: scene, event: "init", payload: state, hasImage: false, loopIndex: 0, loopKey: ".") scene.execNode = (proc(nodeId: NodeId, context: var ExecutionContext) = scene.runNode(nodeId, context)) scene.node1 = render_textApp.App(nodeName: "render/text", nodeId: 1.NodeId, scene: scene.FrameScene, frameConfig: scene.frameConfig, appConfig: render_textApp.AppConfig( - text: "^(64,#FFFF00)This is a great day\n^(32,#00FF00)\nBecause ^(underline)reasons^(no-underline)!", + text: "^(64,#FFFF00)This is a great day\n^(32,#00FF00)\n^(FiraGO-ExtraBold.ttf)Because ^(underline)reasons^(no-underline)!", richText: "basic-caret", borderColor: parseHtmlColor("#ffffff"), fontColor: parseHtmlColor("#8a0a0a"), diff --git a/e2e/scenes/renderTextPosition.json b/e2e/scenes/renderTextPosition.json index 378ceb68..58ed33fa 100644 --- a/e2e/scenes/renderTextPosition.json +++ b/e2e/scenes/renderTextPosition.json @@ -134,7 +134,8 @@ "vAlign": "top", "text": "bananas", "fontSize": "24", - "borderWidth": "2" + "borderWidth": "2", + "font": "ComicRelief.ttf" } }, "type": "app", @@ -203,7 +204,8 @@ "config": { "text": "ananas", "fontSize": "24", - "borderWidth": "0" + "borderWidth": "0", + "font": "FiraGO-ExtraBold.ttf" } }, "type": "app", @@ -263,7 +265,8 @@ "vAlign": "bottom", "text": "bananas", "fontSize": "24", - "borderWidth": "2" + "borderWidth": "2", + "font": "FiraGO-ExtraBold.ttf" } }, "type": "app", diff --git a/e2e/scenes/renderTextRich.json b/e2e/scenes/renderTextRich.json index 9c4fb4d1..41ce1dcf 100644 --- a/e2e/scenes/renderTextRich.json +++ b/e2e/scenes/renderTextRich.json @@ -29,7 +29,7 @@ "data": { "keyword": "render/text", "config": { - "text": "^(64,#FFFF00)This is a great day\n^(32,#00FF00)\nBecause ^(underline)reasons^(no-underline)!", + "text": "^(64,#FFFF00)This is a great day\n^(32,#00FF00)\n^(FiraGO-ExtraBold.ttf)Because ^(underline)reasons^(no-underline)!", "richText": "basic-caret", "borderColor": "#ffffff", "fontColor": "#8a0a0a", diff --git a/e2e/snapshots/renderTextPosition.png b/e2e/snapshots/renderTextPosition.png index 9fc2f3c1..d9a01b44 100644 Binary files a/e2e/snapshots/renderTextPosition.png and b/e2e/snapshots/renderTextPosition.png differ diff --git a/e2e/snapshots/renderTextRich.png b/e2e/snapshots/renderTextRich.png index 433f706c..79dafe1a 100644 Binary files a/e2e/snapshots/renderTextRich.png and b/e2e/snapshots/renderTextRich.png differ