Skip to content

Commit

Permalink
tests installing mscorefonts in travis-ci config to use Verdana in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jul 25, 2018
1 parent 2864d52 commit 06d3c51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ addons:
apt:
packages:
- xvfb
- ttf-mscorefonts-installer

install:
- export DISPLAY=':99.0'
Expand Down
2 changes: 1 addition & 1 deletion test/fontExists.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {default as fontExists} from "../src/fontExists.js";

test("fontExists", assert => {

const missing = "Missing", valid = "DejaVuSans";
const missing = "Missing", valid = "Verdana";

assert.equal(valid, fontExists(valid), "single - exists");
assert.equal(false, fontExists(missing), "single - missing");
Expand Down
2 changes: 1 addition & 1 deletion test/textWidth.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {default as textWidth} from "../src/textWidth.js";

test("textWidth", assert => {

const font = "DejaVuSans";
const font = "Verdana";

const base = textWidth("Test", {"font-family": font, "font-size": 14}),
bigger = textWidth("Test", {"font-family": font, "font-size": 28}),
Expand Down
2 changes: 1 addition & 1 deletion test/textWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {default as textWrap} from "../src/textWrap.js";

test("textWrap", assert => {

const font = "DejaVuSans";
const font = "Verdana";

const sentence = "Hello D3plus, please wrap this sentence for me.",
testWrap = textWrap().fontFamily(font).fontSize(14)(sentence);
Expand Down

0 comments on commit 06d3c51

Please sign in to comment.