Squeak Class Documentation category index | class index  
 
BDFFontReader
  category: Graphics-Text
  superclass: CrLfFileStream
  subclasses:

I am a conversion utility for reading X11 Bitmap Distribution Format fonts. My code is derived from the multilingual Squeak changeset written by OHSHIMA Yoshiki (ohshima@is.titech.ac.jp), although all support for fonts with more than 256 glyphs has been ripped out. See http://www.is.titech.ac.jp/~ohshima/squeak/squeak-multilingual-e.html .

My class methods contain tools for fetching BDF source files from a well-known archive site, batch conversion to Squeak's .sf2 format, and installation of these fonts as TextStyles. Also, the legal notices for the standard 75dpi fonts I process this way are included as "x11FontLegalNotices'.

instance methods
  as yet unclassified
  errorFileFormat
errorUnsupported
getLine
initialize
read
readAttributes
readOneCharacter

class methods
  documentation
  gettingAndInstallingTheFonts
x11FontLegalNotices

  file creation
  convertFilesNamed:toFamilyNamed:inDirectoryNamed:

  resource download
  convertX11FontsToStrike2
downloadFonts
installX11Fonts

instance methods
  as yet unclassified top  
 

errorFileFormat


 

errorUnsupported


 

getLine


 

initialize


 

read


 

readAttributes

I don't handle double-quotes correctly, but it works


 

readOneCharacter


class methods
  documentation top  
 

gettingAndInstallingTheFonts

Download the 1.3M of BDF font source files from x.org:

BDFFontReader downloadFonts.

Convert them to .sf2 StrikeFont files:

BDFFontReader convertX11FontsToStrike2.

Install them into the system as TextStyles:

BDFFontReader installX11Fonts.

Read the legal notices in 'BDFFontReader x11FontLegalNotices' before
redistributing images containing these fonts.


 

x11FontLegalNotices


  file creation top  
 

convertFilesNamed:toFamilyNamed:inDirectoryNamed:

BDFFontReader convertFilesNamed: 'helvR' toFamilyNamed: 'Helvetica' inDirectoryNamed: ''


  resource download top  
 

convertX11FontsToStrike2

BDFFontReader convertX11FontsToStrike2


 

downloadFonts

BDFFontReader downloadFonts


 

installX11Fonts

BDFFontReader installX11Fonts