Merge pull request #726 from yzhang-gh/master

💄 Choose proper fonts for all 3 OSes
This commit is contained in:
Peter Cottle 2020-08-10 12:27:58 -06:00 committed by GitHub
commit 3c2dcf88f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -240,7 +240,7 @@ GitVisuals.prototype.finishAnimation = function(speed) {
opacity: 0,
'font-weight': 500,
'font-size': '32pt',
'font-family': 'Monaco, Courier, font-monospace',
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace',
stroke: '#000',
'stroke-width': 2,
fill: '#000'

View file

@ -410,7 +410,7 @@ var VisBranch = VisBase.extend({
var text = paper.text(textPos.x, textPos.y, String(name));
text.attr({
'font-size': 14,
'font-family': 'Monaco, Courier, font-monospace',
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace',
opacity: this.getTextOpacity()
});
this.set('text', text);

View file

@ -451,7 +451,7 @@ var VisNode = VisBase.extend({
text.attr({
'font-size': this.getFontSize(this.get('id')),
'font-weight': 'bold',
'font-family': 'Monaco, Courier, font-monospace',
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace',
opacity: this.getOpacity()
});

View file

@ -254,7 +254,7 @@ var VisTag = VisBase.extend({
var text = paper.text(textPos.x, textPos.y, String(name));
text.attr({
'font-size': 14,
'font-family': 'Monaco, Courier, font-monospace',
'font-family': 'Menlo, Monaco, Consolas, \'Droid Sans Mono\', \'Courier New\', monospace',
opacity: this.getTextOpacity(),
'text-anchor': 'start'
});