diff --git a/src/test/ci/fontconfig/30-metric-aliases.conf b/src/test/ci/fontconfig/30-metric-aliases.conf
new file mode 100644
index 00000000000..f7d278f245f
--- /dev/null
+++ b/src/test/ci/fontconfig/30-metric-aliases.conf
@@ -0,0 +1,503 @@
+
+
+
+
+
+
+
+
+
+
+ Nimbus Sans L
+
+ Helvetica
+
+
+
+
+ TeX Gyre Heros
+
+ Helvetica
+
+
+
+
+ TeX Gyre Heros Cn
+
+ Helvetica Condensed
+
+
+
+
+ Nimbus Roman No9 L
+
+ Times
+
+
+
+
+
+
+ Nimbus Mono L
+
+ Courier
+
+
+
+
+ TeX Gyre Cursor
+
+ Courier
+
+
+
+
+ Avant Garde
+
+ ITC Avant Garde Gothic
+
+
+
+
+ URW Gothic L
+
+ ITC Avant Garde Gothic
+
+
+
+
+ TeX Gyre Adventor
+
+ ITC Avant Garde Gothic
+
+
+
+
+ Bookman
+
+ ITC Bookman
+
+
+
+
+ URW Bookman L
+
+ ITC Bookman
+
+
+
+
+ TeX Gyre Bonum
+
+ ITC Bookman
+
+
+
+
+ Bookman Old Style
+
+ ITC Bookman
+
+
+
+
+ Zapf Chancery
+
+ ITC Zapf Chancery
+
+
+
+
+ URW Chancery L
+
+ ITC Zapf Chancery
+
+
+
+
+ TeX Gyre Chorus
+
+ ITC Zapf Chancery
+
+
+
+
+ URW Palladio L
+
+ Palatino
+
+
+
+
+ TeX Gyre Pagella
+
+ Palatino
+
+
+
+
+ Palatino Linotype
+
+ Palatino
+
+
+
+
+ Century Schoolbook L
+
+ New Century Schoolbook
+
+
+
+
+ TeX Gyre Schola
+
+ New Century Schoolbook
+
+
+
+
+ Century Schoolbook
+
+ New Century Schoolbook
+
+
+
+
+
+
+ Arimo
+
+ Arial
+
+
+
+
+ Liberation Sans
+
+ Arial
+
+
+
+
+ Liberation Sans Narrow
+
+ Arial Narrow
+
+
+
+
+ Albany
+
+ Arial
+
+
+
+
+ Albany AMT
+
+ Arial
+
+
+
+
+ Tinos
+
+ Times New Roman
+
+
+
+
+ Liberation Serif
+
+ Times New Roman
+
+
+
+
+ Thorndale
+
+ Times New Roman
+
+
+
+
+ Thorndale AMT
+
+ Times New Roman
+
+
+
+
+ Cousine
+
+ Courier New
+
+
+
+
+ Liberation Mono
+
+ Courier New
+
+
+
+
+ Cumberland
+
+ Courier New
+
+
+
+
+ Cumberland AMT
+
+ Courier New
+
+
+
+
+ Gelasio
+
+ Georgia
+
+
+
+
+
+
+
+
+
+ Helvetica
+
+ Arial
+
+
+
+
+ Helvetica Condensed
+
+ Arial Narrow
+
+
+
+
+ Times
+
+ Times New Roman
+
+
+
+
+ Courier
+
+ Courier New
+
+
+
+
+
+
+ Arial
+
+ Helvetica
+
+
+
+
+ Arial Narrow
+
+ Helvetica Condensed
+
+
+
+
+ Times New Roman
+
+ Times
+
+
+
+
+ Courier New
+
+ Courier
+
+
+
+
+
+
+
+
+
+ Helvetica
+
+ TeX Gyre Heros
+ Nimbus Sans L
+
+
+
+
+ Helvetica Condensed
+
+ TeX Gyre Heros Cn
+
+
+
+
+ Times
+
+
+ Nimbus Roman No9 L
+
+
+
+
+ Courier
+
+ TeX Gyre Cursor
+ Nimbus Mono L
+
+
+
+
+ ITC Avant Garde Gothic
+
+ TeX Gyre Adventor
+ URW Gothic L
+
+
+
+
+ ITC Bookman
+
+ Bookman Old Style
+ TeX Gyre Bonum
+ URW Bookman L
+
+
+
+
+ ITC Zapf Chancery
+
+ TeX Gyre Chorus
+ URW Chancery L
+
+
+
+
+ Palatino
+
+ Palatino Linotype
+ TeX Gyre Pagella
+ URW Palladio L
+
+
+
+
+ New Century Schoolbook
+
+ Century Schoolbook
+ TeX Gyre Schola
+ Century Schoolbook L
+
+
+
+
+
+ Arial
+
+ Arimo
+ Liberation Sans
+ Albany
+ Albany AMT
+
+
+
+
+ Arial Narrow
+
+ Liberation Sans Narrow
+
+
+
+
+ Times New Roman
+
+ Tinos
+ Liberation Serif
+ Thorndale
+ Thorndale AMT
+
+
+
+
+ Courier New
+
+ Cousine
+ Liberation Mono
+ Cumberland
+ Cumberland AMT
+
+
+
+
+ Georgia
+
+ Gelasio
+
+
+
+
diff --git a/src/test/ci/fontconfig/40-nonlatin.conf b/src/test/ci/fontconfig/40-nonlatin.conf
new file mode 100644
index 00000000000..b1f9885fc49
--- /dev/null
+++ b/src/test/ci/fontconfig/40-nonlatin.conf
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
+ Nazli
+ serif
+
+
+ Lotoos
+ serif
+
+
+ Mitra
+ serif
+
+
+ Ferdosi
+ serif
+
+
+ Badr
+ serif
+
+
+ Zar
+ serif
+
+
+ Titr
+ serif
+
+
+ Jadid
+ serif
+
+
+ Kochi Mincho
+ serif
+
+
+ AR PL SungtiL GB
+ serif
+
+
+ AR PL Mingti2L Big5
+ serif
+
+
+ MS 明朝
+ serif
+
+
+ NanumMyeongjo
+ serif
+
+
+ NanumMyeongjo
+ serif
+
+
+ UnBatang
+ serif
+
+
+ Baekmuk Batang
+ serif
+
+
+ MgOpen Canonica
+ serif
+
+
+ Sazanami Mincho
+ serif
+
+
+ AR PL ZenKai Uni
+ serif
+
+
+ ZYSong18030
+ serif
+
+
+ FreeSerif
+ serif
+
+
+ Baekmuk Gulim
+ sans-serif
+
+
+ SimSun
+ serif
+
+
+
+ Arshia
+ sans-serif
+
+
+ Elham
+ sans-serif
+
+
+ Farnaz
+ sans-serif
+
+
+ Nasim
+ sans-serif
+
+
+ Sina
+ sans-serif
+
+
+ Roya
+ sans-serif
+
+
+ Koodak
+ sans-serif
+
+
+ Terafik
+ sans-serif
+
+
+ Kochi Gothic
+ sans-serif
+
+
+ AR PL KaitiM GB
+ sans-serif
+
+
+ AR PL KaitiM Big5
+ sans-serif
+
+
+ MS ゴシック
+ sans-serif
+
+
+ NanumGothic
+ sans-serif
+
+
+ UnDotum
+ sans-serif
+
+
+ Baekmuk Dotum
+ sans-serif
+
+
+ MgOpen Modata
+ sans-serif
+
+
+ MgOpen Moderna
+ sans-serif
+
+
+ Sazanami Gothic
+ sans-serif
+
+
+ AR PL ShanHeiSun Uni
+ sans-serif
+
+
+ ZYSong18030
+ sans-serif
+
+
+ FreeSans
+ sans-serif
+
+
+
+ NSimSun
+ monospace
+
+
+ ZYSong18030
+ monospace
+
+
+ NanumGothicCoding
+ monospace
+
+
+ FreeMono
+ monospace
+
+
+
+
+ Homa
+ fantasy
+
+
+ Kamran
+ fantasy
+
+
+ Fantezi
+ fantasy
+
+
+ Tabassom
+ fantasy
+
+
+
+
+ IranNastaliq
+ cursive
+
+
+ Nafees Nastaleeq
+ cursive
+
+
+
diff --git a/src/test/ci/fontconfig/45-latin.conf b/src/test/ci/fontconfig/45-latin.conf
new file mode 100644
index 00000000000..aa62ed42e7f
--- /dev/null
+++ b/src/test/ci/fontconfig/45-latin.conf
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+ Bitstream Vera Serif
+ serif
+
+
+ DejaVu Serif
+ serif
+
+
+ Liberation Serif
+ serif
+
+
+ Times New Roman
+ serif
+
+
+ Times
+ serif
+
+
+ Nimbus Roman No9 L
+ serif
+
+
+ Luxi Serif
+ serif
+
+
+ Thorndale AMT
+ serif
+
+
+ Thorndale
+ serif
+
+
+ Georgia
+ serif
+
+
+ Garamond
+ serif
+
+
+ Palatino Linotype
+ serif
+
+
+ Trebuchet MS
+ serif
+
+
+
+ Bitstream Vera Sans
+ sans-serif
+
+
+ DejaVu Sans
+ sans-serif
+
+
+ Liberation Sans
+ sans-serif
+
+
+ Arial
+ sans-serif
+
+
+ Helvetica
+ sans-serif
+
+
+ Verdana
+ sans-serif
+
+
+ Albany AMT
+ sans-serif
+
+
+ Albany
+ sans-serif
+
+
+ Nimbus Sans L
+ sans-serif
+
+
+ Luxi Sans
+ sans-serif
+
+
+
+ Bitstream Vera Sans Mono
+ monospace
+
+
+ DejaVu Sans Mono
+ monospace
+
+
+ Liberation Mono
+ monospace
+
+
+ Inconsolata
+ monospace
+
+
+ Courier New
+ monospace
+
+
+ Courier
+ monospace
+
+
+ Andale Mono
+ monospace
+
+
+ Luxi Mono
+ monospace
+
+
+ Cumberland AMT
+ monospace
+
+
+ Cumberland
+ monospace
+
+
+ Nimbus Mono L
+ monospace
+
+
+
+ Impact
+ fantasy
+
+
+ Copperplate Gothic Std
+ fantasy
+
+
+ Cooper Std
+ fantasy
+
+
+ Bauhaus Std
+ fantasy
+
+
+
+ ITC Zapf Chancery Std
+ cursive
+
+
+ Zapfino
+ cursive
+
+
+ Comic Sans MS
+ cursive
+
+
+
diff --git a/src/test/ci/fontconfig/53-monospace-lcd-filter.conf b/src/test/ci/fontconfig/53-monospace-lcd-filter.conf
new file mode 100644
index 00000000000..eec3e1329d7
--- /dev/null
+++ b/src/test/ci/fontconfig/53-monospace-lcd-filter.conf
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+ DejaVu Sans Mono
+
+
+ Bitstream Vera Sans Mono
+
+
+ 12.0
+
+
+
+ lcdlegacy
+
+
+ hintfull
+
+
+
diff --git a/travis.linux.before_script.sh b/travis.linux.before_script.sh
index fcad87aed04..ae878510ba6 100755
--- a/travis.linux.before_script.sh
+++ b/travis.linux.before_script.sh
@@ -1 +1,4 @@
/usr/bin/Xorg :1 -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg.log -config ./src/test/ci/xorg.conf &
+
+# Patch the broken font config files on ubuntu 12.04 lts - this should be removed when travis moves to ubuntu 14.04 lts
+sudo cp src/test/ci/fontconfig/* /etc/fonts/conf.avail/