1 From aaf549ecacc05bd5ddd29bb345cae471ce3ab48c Mon Sep 17 00:00:00 2001
2 From: Marco Cavallini <m.cavallini@koansoftware.com>
3 Date: Thu, 21 Jan 2010 16:46:18 +0100
4 Subject: [PATCH] gui_x11.cpp: Load font fixed when 9x15 fails in GuiCalibratorX11
7 Signed-off-by: Marco Cavallini <m.cavallini@koansoftware.com>
9 gui_x11.cpp | 7 +++++--
10 1 files changed, 5 insertions(+), 2 deletions(-)
12 diff --git a/gui_x11.cpp b/gui_x11.cpp
13 index bc483cd..02ddc73 100644
16 @@ -112,8 +112,11 @@ GuiCalibratorX11::GuiCalibratorX11(Calibrator* calibrator0)
17 // Load font and get font information structure
18 font_info = XLoadQueryFont(display, "9x15");
19 if (font_info == NULL) {
20 - XCloseDisplay(display);
21 - throw std::runtime_error("Unable to open 9x15 font");
22 + font_info = XLoadQueryFont(display, "fixed");
23 + if (font_info == NULL) {
24 + XCloseDisplay(display);
25 + throw std::runtime_error("Unable to open 9x15 neither fixed font");
29 // Compute absolute circle centers