💄 choose proper fonts for all 3 OSes

This commit is contained in:
yzhang 2020-08-10 11:18:28 +08:00
parent 7ed6ad9d76
commit 188bda5964
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'
});