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)
   Font Symbol.vlw.gz will not load
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Font Symbol.vlw.gz will not load  (Read 538 times)
metaphorz


Font Symbol.vlw.gz will not load
« on: Oct 18th, 2004, 1:29am »

Just remembered to create a new topic per
bug, so I've taken this out of the first
topic and made it a new topic:
 
....................
 
Tbis comes from the same student who noticed  
the problem with trying "x,y,z" for positioning
text ( using 0068 ). When "Symbol.vlw.gz" was put
in the "data" directory, the following fails
in the IDE. However, other fonts seem to be
loaded correctly, such as Meta-Bold.vlw.gz. Is  
there something peculiar about
Symbol.vlw.gz ?
 
 
BFont metaBold;  
// The font "Meta-Bold.vlw.gz" must be located in the  
// current sketch's "data" directory to load successfully  
metaBold = loadFont("Symbol.vlw.gz");  
// metaBold = loadFont("Meta-Bold.vlw.gz");  
textFont(metaBold, 44);  
text("word", 15, 50);
« Last Edit: Oct 19th, 2004, 4:55pm by metaphorz »  
fry


WWW
Re: Font Symbol.vlw.gz will not load
« Reply #1 on: Oct 19th, 2004, 8:02pm »

thanks a bunch for using separate posts.. it *really really* helps us.
 
if symbol isn't loading properly, it's possible that it's broken. you might try re-generating it using "Create Font". i've been doing a lot of work on the font stuff for 70+ and have been finding and fixing a lot of the bugs that you're running into here--which probably includes this one.
 
metaphorz


Re: Font Symbol.vlw.gz will not load
« Reply #2 on: Oct 19th, 2004, 10:18pm »

Just tried this - regenerating "Symbol". The  
output I get from the preview matches what  
I get from text(): a horizontal set of square  
outlines, where the bitmaps are supposed to be  
drawn. No visible symbols, but at least I am
not getting a "loadFont" error as before.
 
« Last Edit: Oct 19th, 2004, 10:19pm by metaphorz »  
fry


WWW
Re: Font Symbol.vlw.gz will not load
« Reply #3 on: Oct 20th, 2004, 1:33am »

ah, ok.. so this is an interesting problem..  
 
i think it's because we're using the unicode encoding for the font. so basically, if you use the unicode chars (rather than 'a', 'b', 'c' etc) for the symbol font, those chars will show up properly. however, you'll also have to check the "all characters" designation in the font builder (again, 70+ only) since it won't include the characters as boxes type of stuff.
 
odd that it's working this way though.. i'm curious as to why java wouldn't be doing the regular operating system thing for the font, though i guess java tries to be more unicode-savvy, and so perhaps it's actually causing trouble in this case.  
 
i'll make a note to look into it further, and see how it goes. if you're doing a lot of text stuff, you might try and see if there's still room on the pre-beta list (described in the last status report), since i've been doing a ton of work on text & fonts recently.
 
Pages: 1 

« Previous topic | Next topic »