Skip to content

Commit

Permalink
Apply font size and family in xterm
Browse files Browse the repository at this point in the history
Mostly fixes #21
  • Loading branch information
sorenisanerd committed Jul 4, 2021
1 parent 603c650 commit f157dbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/src/xterm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class Xterm {
Object.keys(value).forEach((key) => {
if (key == "EnableWebGL" && key) {
this.term.loadAddon(new WebglAddon());
} else if (key == "font-size") {
this.term.setOption("fontSize", value[key])
} else if (key == "font-family") {
this.term.setOption("fontFamily", value[key])
}
});
};
Expand Down

0 comments on commit f157dbe

Please sign in to comment.