newbie looking for fonts

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Mon Oct 28 09:37:31 UTC 2002


On Sat, 26 Oct 2002, Ian Piumarta wrote:

> Hi Albert,
> 
> > Where might I find some additional fonts for Squeak 3.2?
> 
> The easiest way is to import your favorite fonts from X11.  You will need
> a means to extract fonts as bdf (bitmap distribution format) files.  If
> you run a font server then `fstobdf' (ditributed with XF86) might work for
> you (mine simply refuses to talk to my font server, ho hum). 

Works for me, but I have to give it a numerical port

	fslsfonts -server localhost:7100
	fstobdf -server localhost:7100 -fn ...

OTOH, a font plugin for X would be nice, too. Andreas' frame work doesn't
fit X's idea of font names terribly well, but from a first glance it's
general enough to be usable:
 
http://isgwww.cs.uni-magdeburg.de/~raab/squeak/goodies/Win32NativeFonts.zip

Andreas, could you explain the non-obvious functions a bit? Like what are
ioFontEmbeddingFlags() and ioGetFontData() supposed to be?

char *ioListFont(int fontIndex);
int ioCreateFont(int fontNameIndex, int fontNameLength, int pixelSize, int flags);
int ioDestroyFont(int fontIndex);
int ioFontWidthOfChar(int fontIndex, int characterIndex);
int ioFontFullWidthOfChar(int fontIndex, int characterIndex, int width[3]);
int ioFontNumKernPairs(int fontIndex);
int ioFontGetKernPair(int fontIndex, int kernIndex, int kernPair[3]);
int ioFontGlyphOfChar(int fontIndex, int characterIndex, 
                     int formBitsIndex, int formWidth, int formHeight, int formDepth);
int ioFontEncoding(int fontIndex);
int ioFontAscent(int fontIndex);
int ioFontDescent(int fontIndex);
int ioFontEmbeddingFlags(int fontIndex);
int ioGetFontDataSize(int fontIndex);
int ioGetFontData(int fontIndex, char *buffer, int bufSize);


-- Bert






More information about the Squeak-dev mailing list