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
   Software Bugs
(Moderator: fry)
   create font doesn't work for most fonts
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: create font doesn't work for most fonts  (Read 777 times)
metaphorz


create font doesn't work for most fonts
« on: Oct 18th, 2004, 3:38am »

Platform: XP SP2, Processing 0069
 
With my latest tests into text() and fonts, I
tried to create a few fonts (inside of 0069) with
Sketch->Create_Font, and most of the fonts do
not appear correctly in the preview window. One
can generate the font, but it displays as a default
sans serif font instead of the actual font. I searched
through the board for anything pointing to this
issue, but couldn't find it.
 
A review of my fonts folder C:\WINNT\FONTS shows
that, for example, 20thCenturyFont is seen first
in the directory listing. This is not displayed
correctly, or generated, in Create_Font. I'd say
about 1/3 of the fonts show up correctly.
 
In one of the boards, there was a reference to
an "All characters option". Where is this? I
didn't see it in the interface or the preferences
files.
 
-pf
 
fry


WWW
Re: create font doesn't work for most fonts
« Reply #1 on: Oct 19th, 2004, 7:58pm »

this has already been fixed for 70 and higher. i think the font will export properly, but it doesn't always show the change in the window in 69. java's font loading seemed to change slightly somewhere in between those releases so things broke.  
 
"all characters", if you don't see it in 69, was added for 70. i think when i made that post i couldn't remember when it went in. it's only needed for fonts where you need the entire unicode charset, or a much larger set--i.e. japanese. "create font" should properly export most roman characters (even though they aren't all included in the fonts included with p5).
 
metaphorz


Re: create font doesn't work for most fonts
« Reply #2 on: Oct 19th, 2004, 10:13pm »

Hmmm.. Actually, for the few I tested, not
only did it not correctly display in the preview
window, it also did not display when used
with text(), but I confess to not having
tested this exhaustively.
 
For example, just now, I created a sketch,
created the BookAntiqua font, copied  
the Bfont example, and modified it
to:
 
BFont metaBold;  
// The font "Meta-Bold.vlw.gz" must be located in the  
// current sketch's "data" directory to load successfully  
metaBold = loadFont("BookAntiqua.vlw");  
textFont(metaBold, 88 );  
text("Word", 15, 50 );  
 
...................................
 
What displays is clearly the default sans  
serif font, but when you double click on  
the BookAntiqua font file in C:\windows\fonts,
it is a serif font. Processing (0069) is either  
not generating the right font, or not displaying
it correctly. Gzipping the .vlw file, and referencing
this in loadFont, yields the same output.
« Last Edit: Oct 19th, 2004, 10:14pm by metaphorz »  
fry


WWW
Re: create font doesn't work for most fonts
« Reply #3 on: Oct 20th, 2004, 1:34am »

nuts, that's a bummer. so maybe it's broken in 69 but works ok in 68?  
 
it's definitely fixed for 70+ so once we get to beta everyone will have happy fonts again.
 
metaphorz


Re: create font doesn't work for most fonts
« Reply #4 on: Oct 20th, 2004, 4:33pm »


0068 exhibits the same problem.
 
 
Pages: 1 

« Previous topic | Next topic »