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

View File

@@ -20,7 +20,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'hello',
font: '14px sans-serif',
font: '14px "Ubuntu Regular", sans-serif',
scale: 2,
fill: new Fill({
color: 'red'
@@ -39,7 +39,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'upside down',
font: '14px sans-serif',
font: '14px "Ubuntu Regular", sans-serif',
rotation: Math.PI,
stroke: new Stroke({
color: 'red',
@@ -55,6 +55,7 @@ feature = new Feature({
});
feature.setStyle(new Style({
text: new Text({
font: '"Ubuntu Regular", sans-serif',
text: 'rotateWithView',
rotateWithView: true,
stroke: new Stroke({
@@ -71,7 +72,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'hello',
font: '14px sans-serif',
font: '14px "Ubuntu Regular", sans-serif',
padding: [1, 2, 3, 5],
backgroundFill: new Fill({
color: 'rgba(55, 55, 55, 0.25)'
@@ -91,7 +92,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'hello',
font: '14px sans-serif',
font: '14px "Ubuntu Regular", sans-serif',
padding: [1, 2, 3, 5],
backgroundFill: new Fill({
color: 'rgba(55, 55, 55, 0.25)'