We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › font folder outside of individual "data"
Page Index Toggle Pages: 1
font folder outside of individual "data" (Read 364 times)
font folder outside of individual "data"
Jan 28th, 2009, 7:52pm
 
Basic question, but could not find anything on Discourse - is there a way to store fonts in a central folder, e.g. "fonts" or "data" folder in Documents/Processing?  if not, is this a good idea to suggest on bugs/enhancements?  i know .vlw files very small, but seems silly to have to re-create with every new sketch.  compiler would look first in sketch data folder, then in global data folder, and only for fonts used in sketch.  seems to make sense, given that "libraries" folder is central now.
Re: font folder outside of individual "data&q
Reply #1 - Jan 29th, 2009, 8:19am
 
one way to centrally maintain fonts is this bit of knowledge - fonts can be loaded using absolute path :D  

>PFont font =  loadFont("c:/folder1/folder2/CourierNew36.vlw");
will load the font

Don't know if this is recommended practice.

do you create your own fonts ?
Re: font folder outside of individual "data&a
Reply #2 - Jan 29th, 2009, 8:51am
 
Quote:
Don't know if this is recommended practice.

Not recommended because obviously if it is useful on your computer, it is unusable on somebody else's computer or in an applet.
eforman's idea is interesting because by defining a standard place, it provides a regular way to find these resources when exporting the applet.
It can be usable too for code folder (non-Processing .jar files ie. regular Java libraries) or even, as I suggested elsewhere, for our own hand-coded .pde or .java re-usable classes.
Page Index Toggle Pages: 1