FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   fixed width fonts
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: fixed width fonts  (Read 2212 times)
Martin

122417302122417302martingomez_listsmg1ph WWW Email
fixed width fonts
« on: Nov 7th, 2002, 6:36am »

-----
FIXED WIDTH FONTS
 
make-your-own-fixed-width-fonts-in-photoshop are supported. but i'm not gonna bother documenting them unless someone asks.
-----
 
used this as reference to make my own...
 
http://acg.media.mit.edu/people/fry/appleII/hack/
 
but i seem to have some probs with raw files...
 
how now brown cow?
 
fry


WWW
Re: fixed width fonts
« Reply #1 on: Nov 7th, 2002, 4:35pm »

the raw file is just a grayscale image, saved as raw. the grayscale levels determine the level of opacity for the font's pixels.  
 
along with the raw file you need a .fbf file, which contains (in the case of the apple2 example)
 
# filename for image
filename = apple2e.raw
 
# width and height of the raw image
image_width = 112
image_height = 64
 
# how many rows and columns of letters
columns = 16
rows = 8
 
# the lefthand offset
left = 1
# the baseline of the font
baseline = 7
# amount of leading space to use for the font
leading = 1
 
# the ascii code of the first character
# (in the upper, lefthand corner of the image)
first_char = 32
# number of characters in the image
char_count = 128
 
 
this is a crappy file format that was thrown together b/c i needed fixed width, screen space only support for bitmapped fonts in a project. it's possible that this will go away (hopefully) to be replaced by a better set of font methods.  
 
text support currently breaks every other release or so, since it hasn't been the top priority (like sound, there is no single "good solution" to the text issues) compared with getting some of the other features working.
 
Pages: 1 

« Previous topic | Next topic »