GtkFontSelection 0.3




I've put a newer version of the GtkFontSelection widget at:

	http://www.comp.lancs.ac.uk/~damon/fontsel/index.html



I've added an option to disable scaled bitmap fonts (which also works with
the TrueType font server xfstt by the way).

Unfortunately X sometimes lists a bitmap font with sizes which don't exist
which messes this up a bit. For example, fangsong ti is listed at 12 points,
but this is the only entry I have for the font:

gb16fs.pcf.gz -isas-fangsong
ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0

So when you select the 12 point font you have to wait for X to scale it.

The unreal 12 point font isn't listed with `xlsfonts`, so maybe my
XListFonts
call is wrong - it currently uses this:

  xfontnames = XListFonts (GDK_DISPLAY(), "-*-*-*-*-*-*-*-*-*-*-*-*-*-*",
			   MAX_FONTS, &num_fonts);



Also, X doesn't always return the font that matches:

XListFonts returned:
	-sony-fixed-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0
But for this request:
	-sony-fixed-medium-r-normal-*-*-150-*-*-c-*-jisx0201.1976-0
it returns this (with the wrong size of 120):
	-Sony-Fixed-Medium-R-Normal--16-120-100-100-C-80-JISX0201.1976-0

(In fact the original font doesn't exist, once again.)


I've also added registry & encoding to the filters page, stopped it
flickering
when fonts are selected, and fixed a few bugs.

The dialog is set to auto-shrink, but this means that the user can't really
resize it. I don't know what would be best here.


BUGS
====

Sometimes the preview text disappears (usually after a non-european font is
selected.) You have to do a Ctrl-a to see it again.




Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]