Sorry, I guess I misunderstood the question a bit.
As far as I know, its not possible to bundle resources and then let the user of your library open them "normally" using loadFont(), loadImage(), etc, since PApplet only knows to look for files in a few places (see createInputRaw() in the source code).
The solution depends on what you are trying to do with your library. Do you need the font so you can use it from inside the library or do you simply want to make it available?
In both cases, you can create a PFont object "by hand" if you have access to the vlw file. (basically provide the functionality of loadFont) You can do that from the URL object that the classloader gives you (exception handling not included!):
Code:ClassLoader cl = MyClass.class.getClassLoader();
URL res = cl.getResource("myfont.vlw");
InputStream stream = res.openStream();
PFont font = new PFont(stream);
From there you can use the font, or if you need to make it available to users, just add a factory method to your class containing the code above:
Code:
class MyLib {
public PFont createMyLibFont();
}
If you have more than one font, either make many methods or pass the font name as an argument.
Bottom line is: you can package assets with your lib, but if you want to pass them onto the user, you'll have to provide your own methods to open the files and create the appropriate Processing objects.
d.