Olof: > I'm having some trouble getting Scite to display fonts properly. Running on > Linux, I have the code.page set to 65001 and want to read utf-8 encoded > files containing Japanese charsets. With fonts set to default, Japanese > characters are simply not displayed (random characters are displayed > instead). However, setting the fonts as follows: > > font.base=font:lucidatypewriter-iso10646-1|kochi gothic-jisx0208.1983-0|ms > gothic-jisx0201.1976-0|baekmuk batang-ksc5601.1987-0|ar pl sungtil > gb-gb2312.1980-0,size:12
There are two systems for displaying characters in Scintilla/SciTE, Pango and X. For GTK+ version 2+ (which is strongly indicated by your UTF8 based locale), Pango should normally be used for international text. In SciTE, this means using fonts like !Sans. This should display most characters correctly but characters without glyphs will appear as boxed hex values. Pango should be able to algorithmically create bold and italicised versions of fonts that do not have explicit versions with these attributes. The font set approach shown above was needed for GTK+ 1.x which did not include Pango and relied on X. While it has worked for me, it is a bit delicate and I don't know how to examine and fix systems using this. Most of the work was done by ActiveState and I expect those responsible are more likely to be reading the scintilla interest mailing list rather than this one. I think that Pango font names like 'Sans' are implemented as sets of fonts and that you can install extra character ranges: there are options on most Linux installers to include additional character set support. This is probably the best direction to try working on. > The font "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso10646-1,-*-kochi > gothic-medium-r-*-*-*-120-*-*-*-*-jisx0208.1983-0,-*-ms > gothic-medium-r-*-*-*-120-*-*-*-*-jisx0201.1976-0,-*-baekmuk > batang-medium-r-*-*-*-120-*-*-*-*-ksc5601.1987-0,-*-ar pl sungtil > gb-medium-r-*-*-*-120-*-*-*-*-gb2312.1980-0" does not support all the > required character sets for the current locale > "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=en_US.utf8;LC_TIME=en_US.utf8;LC_COLLATE=en_US.utf8;LC_MONETARY=en_US.utf8;LC_MESSAGES=en_US.utf8;LC_PAPER=en_US.utf8;LC_NAME=en_US.utf8;LC_ADDRESS=en_US.utf8;LC_TELEPHONE=en_US.utf8;LC_MEASUREMENT=en_US.utf8;LC_IDENTIFICATION=en_US.utf8" > (Missing character set "JISX0201.1976-0") You have -*-ms gothic-medium-r-*-*-*-120-*-*-*-*-jisx0201.1976-0 in the set which should match JISX0201.1976-0. Check whether xfont can see this font. Note that there is a space in the name which could cause trouble as could the capitalisation so these are worth fiddling. Neil _______________________________________________ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest