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:
@@ -20,6 +20,7 @@ feature1.setStyle(new Style({
|
||||
stroke: new Stroke({color: 'blue'}),
|
||||
text: new Text({
|
||||
text: 'Hello world',
|
||||
font: '"Ubuntu Regular", sans-serif',
|
||||
placement: 'line',
|
||||
overflow: true
|
||||
})
|
||||
@@ -37,7 +38,7 @@ feature2.setStyle(new Style({
|
||||
textBaseline: 'bottom',
|
||||
textAlign: 'right',
|
||||
placement: 'line',
|
||||
font: 'bold italic 0.8em serif',
|
||||
font: 'bold italic 0.8em "Ubuntu Regular", sans-serif',
|
||||
overflow: true
|
||||
})
|
||||
}));
|
||||
@@ -72,6 +73,7 @@ feature4.setStyle(new Style({
|
||||
stroke: new Stroke({color: 'red'}),
|
||||
text: new Text({
|
||||
text: 'PLEASE OMIT ME IM UGLY',
|
||||
font: '"Ubuntu Regular", sans-serif',
|
||||
offsetX: -10,
|
||||
textAlign: 'start',
|
||||
textBaseline: 'top',
|
||||
@@ -88,6 +90,7 @@ feature5.setStyle(new Style({
|
||||
stroke: new Stroke({color: 'blue'}),
|
||||
text: new Text({
|
||||
text: 'Small text',
|
||||
font: '"Ubuntu Regular", sans-serif',
|
||||
offsetY: 5,
|
||||
scale: 0.7,
|
||||
rotation: 4,
|
||||
@@ -106,6 +109,7 @@ feature6.setStyle(new Style({
|
||||
stroke: new Stroke({color: 'blue'}),
|
||||
text: new Text({
|
||||
text: 'FILL AND STROKE',
|
||||
font: '"Ubuntu Regular", sans-serif',
|
||||
placement: 'line',
|
||||
overflow: true,
|
||||
fill: new Fill({color: '#FFC0CB'}),
|
||||
|
||||
Reference in New Issue
Block a user