Skip to content

Commit a095c10

Browse files
authored
Merge pull request #5280 from Tyriar/monospace
Remove courier fonts from defaults
2 parents cc78831 + 1efd52a commit a095c10

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

addons/addon-serialize/src/SerializeAddon.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ describe('SerializeAddon', () => {
222222

223223
it('empty terminal with default options', async () => {
224224
const output = serializeAddon.serializeAsHTML();
225-
assert.equal((output.match(/color: #000000; background-color: #ffffff; font-family: courier-new, courier, monospace; font-size: 15px;/g) || []).length, 1, output);
225+
assert.equal((output.match(/color: #000000; background-color: #ffffff; font-family: monospace; font-size: 15px;/g) || []).length, 1, output);
226226
});
227227

228228
it('empty terminal with custom options', async () => {
@@ -242,7 +242,7 @@ describe('SerializeAddon', () => {
242242
const output = serializeAddon.serializeAsHTML({
243243
includeGlobalBackground: true
244244
});
245-
assert.equal((output.match(/color: #ffffff; background-color: #000000; font-family: courier-new, courier, monospace; font-size: 15px;/g) || []).length, 1, output);
245+
assert.equal((output.match(/color: #ffffff; background-color: #000000; font-family: monospace; font-size: 15px;/g) || []).length, 1, output);
246246
});
247247

248248
it('cells with custom color styling', async () => {

demo/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function createTerminal(): void {
262262
backend: 'conpty',
263263
buildNumber: 22621
264264
} : undefined,
265-
fontFamily: '"Fira Code", courier-new, courier, monospace, "Powerline Extra Symbols"',
265+
fontFamily: '"Fira Code", monospace, "Powerline Extra Symbols"',
266266
theme: xtermjsTheme
267267
} as ITerminalOptions);
268268

src/common/services/OptionsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const DEFAULT_OPTIONS: Readonly<Required<ITerminalOptions>> = {
2121
documentOverride: null,
2222
fastScrollModifier: 'alt',
2323
fastScrollSensitivity: 5,
24-
fontFamily: 'courier-new, courier, monospace',
24+
fontFamily: 'monospace',
2525
fontSize: 15,
2626
fontWeight: 'normal',
2727
fontWeightBold: 'bold',

0 commit comments

Comments
 (0)