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_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   typography and imageMode()
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: typography and imageMode()  (Read 610 times)
mKoser

WWW Email
typography and imageMode()
« on: Aug 7th, 2003, 12:12am »

hi, dunno if this is a bug or a feature. (never know do ya?)
 
i posted two examples here:
http://www.beyondthree.com/proce55ing/debug/words_norm/
 
http://www.beyondthree.com/proce55ing/debug/words_imagemode/
 
The first one is the 'words' example by REAS from the example folder ... no problems. But when I added Code:
imageMode(CENTER_RADIUS)
the second link was the outcome...?
 
Am I right in guessing the fonts are just a bunch of images (and are treated similarly) ?
 
I found the bug/feature when working on a bigger thing, where my fonts suddenlt started to be totally out of alignment!
 
- mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
benelek

35160983516098 WWW Email
Re: typography and imageMode()
« Reply #1 on: Aug 7th, 2003, 5:20am »

hi Mikkel, both applets seem to be giving "class not found" errors..
 
mKoser

WWW Email
Re: typography and imageMode()
« Reply #2 on: Aug 7th, 2003, 10:12am »

very strange indeed ...!
 
here is the code for the modfied example - please take a look at REAS's example in 'Examples' > 'Typography' > 'Words'... since this is the original version!
 
Code:

// Words
// by REAS <http://www.groupc.net>
 
// The text() function is used for writing words to the screen.
 
// Created 15 January 2003
 
size(200, 200);
background(0);
stroke(153, 153, 0);
 
//
//
//
// THIS IS THE LINE THAT I'VE ADDED, WHICH MAKES THE LETTERS FUNNY!
imageMode(CENTER_RADIUS);
//
//
//
 
// Load the font. Fonts are located within the
// main Proce55ing directory/folder and they
// must be placed within the data directory
// of your sketch for them to load
BFont fontA = loadFont("Meta-Bold.vlw.gz");
 
// Set the font and its size (in units of pixels)
setFont(fontA, 44);
 
// Set the hint() method to SMOOTH_IMAGES
// for better edges on the type
hint(SMOOTH_IMAGES);
 
int y = 15;  // Horizontal position of the type
int l = 35;  // Leading (spaces between lines)
 
line(y, 60, width, 60);
text("Research", y, 60);
 
line(y, 60+l, width, 60+l);
text("Modern", y, 95);
 
line(y, 60+l*2, width, 60+l*2);
text("Typography", y, 130);
 
fill(204, 204, 0);
setFont(fontA, 28);
text("in", 152, 50);
 

 
- mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: typography and imageMode()
« Reply #3 on: Aug 7th, 2003, 3:18pm »

on Aug 7th, 2003, 12:12am, mKoser wrote:
Am I right in guessing the fonts are just a bunch of images (and are treated similarly)

 
p5 fonts were done using a proprietary software developed during the vlw days, which is still used by acg, and i think will still be used by plw. the fonts are actually raw images where each font is a raw image with characters inside.
 
mKoser

WWW Email
Re: typography and imageMode()
« Reply #4 on: Aug 7th, 2003, 4:03pm »

Thanks!
 
...sorry, too many acronyms for me
 
vlw - ?
acg - Aesthetics & Computation Group
plw - ?
 
- Mikkel
« Last Edit: Aug 7th, 2003, 4:04pm by mKoser »  

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: typography and imageMode()
« Reply #5 on: Aug 7th, 2003, 6:42pm »

you're welcome. i've posted an example...
http://proce55ing.net/discourse/yabb/board_Contribution_Respons_ive_action_display_num_1060274250.html
 
<offtopic>
vlw. visible language workshop
plw. physical language workshop
</offtopic>
« Last Edit: Aug 7th, 2003, 6:43pm by Martin »  
fry


WWW
Re: typography and imageMode()
« Reply #6 on: Aug 8th, 2003, 7:13pm »

yeah, uh, whoops. that's a funny bug.  
 
it's a simple fix so i'll take care of it for 59.
 
fry


WWW
Re: typography and imageMode()
« Reply #7 on: Aug 31st, 2003, 10:55pm »

fixed for 0059.  
 
and hopefully we'll get rid of these .vlw fonts sometime soon.
 
elout

12747371274737 WWW
Re: typography and imageMode()
« Reply #8 on: Sep 10th, 2003, 6:08am »

here`s an nice font-feature as well, for creative use!  
 
(found while I was working on http://www.xs4all.nl/~elout/proce55ing/openSrc01/index.html )
 
 
the text-alphachannels can hit hard!
-drawing white text on a white screen-
 
Code:

// - white on white - 10 sept 2003
// elout <http://www.xs4all.nl/~elout/>
 
BFont my_font;  
 
void setup()  
{
  size(600,300);
  noBackground();  
  // make sure the OCR-B.vlw.gz font is in your data folder  
  my_font = loadFont("OCR-B.vlw.gz");  
}
void loop()  
{
  setFont(my_font, random(140));
  text("0I",random(width),random(height));
  setFont(my_font, 200);
  text("0I",180+random(14),180+random(14));
}
 

url -
http://www.xs4all.nl/~elout/proce55ing/whiteonwhite2/index.html
 
Pages: 1 

« Previous topic | Next topic »