Use local font "Ubuntu Regular" for rendering tests

Set local font for all rendering tests including
TextStyles to enhance comparability on different
systems.
This commit is contained in:
Kai Volland
2019-03-21 14:43:54 +01:00
parent c4279ff665
commit 5665da6518
20 changed files with 4848 additions and 10 deletions
@@ -90,7 +90,7 @@ layer2.setStyle(function(feature) {
return new Style({
text: new Text({
text: feature.get('text'),
font: '12px sans-serif'
font: '12px "Ubuntu Regular", sans-serif'
})
});
});
@@ -119,7 +119,7 @@ layer3.setStyle(function(feature) {
}),
text: new Text({
text: feature.get('text'),
font: '12px sans-serif',
font: '12px "Ubuntu Regular", sans-serif',
textBaseline: 'bottom',
offsetY: -5
})
@@ -151,7 +151,7 @@ line.setStyle(new Style({
text: new Text({
placement: 'line',
text: 'east-west',
font: '12px sans-serif'
font: '12px "Ubuntu Regular", sans-serif'
})
}));
source4.addFeature(point);