Skip to content
Snippets Groups Projects
Commit ecb23d89 authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

Test mit DroidSansMono im Departure

parent b4c2ddf9
Branches
No related tags found
No related merge requests found
favicon.png 100644 → 100755
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
families : ['time-medium', 'time-fat', 'vrr'], families : ['time-medium', 'time-fat', 'vrr'],
urls : ['css/font.css'] urls : ['css/font.css']
}, },
google : {
families : ['Droid Sans Mono'],
},
active : function() { active : function() {
window.fontsReady = true; window.fontsReady = true;
} }
......
...@@ -203,7 +203,8 @@ var resize = function(panel, config, cont) { ...@@ -203,7 +203,8 @@ var resize = function(panel, config, cont) {
var getStringWidth = function(fontSize, string) { var getStringWidth = function(fontSize, string) {
var var
o = $('<div>' + string + '</div>') o = $('<div>' + string + '</div>')
.css({'position': 'absolute', 'float': 'left', 'white-space': 'nowrap', 'visibility': 'hidden', 'font-family': 'display', 'fontSize': fontSize + 'px'}) .css({'position': 'absolute', 'float': 'left', 'white-space': 'nowrap', 'visibility': 'hidden', 'font-family': 'Droid Sans Mono', 'fontSize':
fontSize + 'px'})
.appendTo($('body')), .appendTo($('body')),
w = o.width(); w = o.width();
o.remove(); o.remove();
......
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
font-weight: bold; font-weight: bold;
color: #B8860B; color: #B8860B;
} }
[data-delay], [data-time] {
font-family: Droid Sans Mono;
}
[data-name] { [data-name] {
position: relative; position: relative;
......
/**
* Created by tilman on 26.08.15.
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment