mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
the face is Zen, and it ships from @hanzo/font
One family. Font stacks name Zen and fall back to the native faces, tokens name the role rather than a face, and the packages that used to supply a face now point at @hanzo/font. Self-hosted @font-face blocks are removed rather than renamed: rewriting the family in one would leave a src pointing at a file this repo no longer ships. @hanzo/font carries the binaries and declares the faces, so the local copies go with the declaration that used them. Comments naming a face we no longer use are deleted, not reworded.
This commit is contained in:
@@ -947,7 +947,7 @@ export class ViewModel extends Disposable implements IViewModel {
|
||||
`<div style="`
|
||||
+ `color: ${colorMap[ColorId.DefaultForeground]};`
|
||||
+ `background-color: ${colorMap[ColorId.DefaultBackground]};`
|
||||
+ `font-family: ${fontFamily};`
|
||||
+ `font-family: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif{fontFamily};`
|
||||
+ `font-weight: ${fontInfo.fontWeight};`
|
||||
+ `font-size: ${fontInfo.fontSize}px;`
|
||||
+ `line-height: ${fontInfo.lineHeight}px;`
|
||||
|
||||
@@ -448,14 +448,14 @@
|
||||
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sticky.dirty > .tab-actions .action-label:not(:hover)::before {
|
||||
/* use `pinned-dirty` icon unicode for sticky-dirty indication */
|
||||
content: var(--vscode-icon-pinned-dirty-content);
|
||||
font-family: var(--vscode-icon-pinned-dirty-font-family);
|
||||
font-family: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
|
||||
.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab.dirty > .tab-actions .action-label:not(:hover)::before,
|
||||
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-actions .action-label:not(:hover)::before {
|
||||
/* use `circle-filled` icon unicode for dirty indication */
|
||||
content: var(--vscode-icon-circle-filled-content);
|
||||
font-family: var(--vscode-icon-circle-filled-font-family);
|
||||
font-family: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
|
||||
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active > .tab-actions .action-label,
|
||||
|
||||
@@ -678,9 +678,9 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
|
||||
|
||||
styleSheets.push(`
|
||||
.notebook-editor {
|
||||
--notebook-cell-output-font-size: ${outputFontSize}px;
|
||||
--notebook-cell-input-preview-font-size: ${fontSize}px;
|
||||
--notebook-cell-input-preview-font-family: ${fontFamily};
|
||||
--notebook-cell-output-font-size: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif{outputFontSize}px;
|
||||
--notebook-cell-input-preview-font-size: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif{fontSize}px;
|
||||
--notebook-cell-input-preview-font-family: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif{fontFamily};
|
||||
}
|
||||
`);
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
overscroll-behavior-x: none;
|
||||
background-color: transparent;
|
||||
color: var(--vscode-editor-foreground);
|
||||
font-family: var(--vscode-font-family);
|
||||
font-family: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
font-weight: var(--vscode-font-weight);
|
||||
font-size: var(--vscode-font-size);
|
||||
margin: 0;
|
||||
@@ -122,7 +122,7 @@
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--monaco-monospace-font);
|
||||
font-family: Zen Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
||||
color: var(--vscode-textPreformat-foreground);
|
||||
background-color: var(--vscode-textPreformat-background);
|
||||
padding: 1px 3px;
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
overscroll-behavior-x: none;
|
||||
background-color: transparent;
|
||||
color: var(--vscode-editor-foreground);
|
||||
font-family: var(--vscode-font-family);
|
||||
font-family: Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
font-weight: var(--vscode-font-weight);
|
||||
font-size: var(--vscode-font-size);
|
||||
margin: 0;
|
||||
@@ -128,7 +128,7 @@
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--monaco-monospace-font);
|
||||
font-family: Zen Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
||||
color: var(--vscode-textPreformat-foreground);
|
||||
background-color: var(--vscode-textPreformat-background);
|
||||
padding: 1px 3px;
|
||||
|
||||
Reference in New Issue
Block a user