Hi, I encountered problem with XW driver not showing Braille characters. I traced it down to be font problem. The XW driver requests the following fonts from X:
-*-clearlyu-*-r-*-*-17-*-*-*-*-*-iso10646-1 -*-fixed-*-r-*-*-17-*-*-*-*-*-iso10646-1 -*-unifont-*-r-*-*-17-*-*-*-*-*-iso10646-1 -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1 -*-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-1 clearlyu requirement is written in the XW driver readme, but the rest aren't. I had especially trouble with the following fonts: -*-fixed-*-r-*-*-17-*-*-*-*-*-iso10646-1 -*-unifont-*-r-*-*-17-*-*-*-*-*-iso10646-1 There is no fixed 17 font on decent Fedora distro, there are only 16, 18 sizes and it is also not easy to get unifont working. E.g. on Fedora the unifont is not installed by default and even if installed by hand it's disabled from XServer. If enabled manually many apps started to prefer it and the UI started to look ugly. If there is any font missing the line with the Braille characters is not shown in the simulator and the following message is written to the log: "Error while loading unicode font" My question is are all these fonts needed? I used the attached patch to reduce the number of fonts and it seems to work OK out of the box (I tested it with the en_US and cs_CZ locales). I had to only install clearlyu font and ucs-miscfixed-fonts (which is not mentioned in the readme) from the [1] and it shows Braille characters OK thanks & regards Jaroslav [1] http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
diff --git a/Drivers/Braille/XWindow/braille.c b/Drivers/Braille/XWindow/braille.c index 26ca705..ccabdcd 100644 --- a/Drivers/Braille/XWindow/braille.c +++ b/Drivers/Braille/XWindow/braille.c @@ -211,7 +211,7 @@ typedef enum { static int cols,lines; static int input; static char *model = "simple"; -static const char *fontname = "-*-clearlyu-*-r-*-*-17-*-*-*-*-*-iso10646-1,-*-fixed-*-r-*-*-17-*-*-*-*-*-iso10646-1,-*-unifont-*-r-*-*-17-*-*-*-*-*-iso10646-1,-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1,-*-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-1"; +static const char *fontname = "-*-clearlyu-*-r-*-*-17-*-*-*-*-*-iso10646-1,-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1,-*-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-1"; static int xtArgc = 1; static char *xtDefArgv[]= { "brltty", NULL }; static char **xtArgv = xtDefArgv;
_______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@mielke.cc For general information, go to: http://mielke.cc/mailman/listinfo/brltty