mirror of
https://github.com/andre482/O-tie.git
synced 2026-07-22 07:44:11 +00:00
Fix screenshot font falling back to serif in headless Chromium
Set an explicit sans-serif font-family on the standalone render page; the Obsidian --font-interface stack lists fonts absent in headless Chromium, so text was defaulting to Times. Regenerate README assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
8a376a87a8
commit
5fd02b6d3d
3 changed files with 5 additions and 1 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 225 KiB After Width: | Height: | Size: 221 KiB |
|
|
@ -218,7 +218,11 @@ function pageHtml(layout, barriersById) {
|
|||
const nodes = layout.nodes.map((n) => renderNodeHtml(n, barriersById)).join("");
|
||||
return `<!doctype html><html><head><meta charset="utf-8"><style>
|
||||
${stylesCss}
|
||||
html,body{margin:0;padding:0;background:#ffffff}
|
||||
html,body{
|
||||
margin:0;padding:0;background:#ffffff;
|
||||
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
|
||||
-webkit-font-smoothing:antialiased;
|
||||
}
|
||||
.shot-frame{
|
||||
display:inline-block;padding:28px;
|
||||
background-color:#ffffff;
|
||||
|
|
|
|||
Loading…
Reference in a new issue